]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
libmisc/salt.c: Use int pointer for YESCRYPT_salt_cost(). 358/head
authorBjörn Esser <besser82@fedoraproject.org>
Sat, 12 Jun 2021 17:05:07 +0000 (19:05 +0200)
committerBjörn Esser <besser82@fedoraproject.org>
Tue, 22 Jun 2021 16:51:59 +0000 (18:51 +0200)
The corresponding functions for the other hash methods all take
a pointer to an integer value as the only paramater, so this
particular function should do so as well.

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
libmisc/salt.c

index c35c679783359490c57e13923498901584991b40..1bfa015b2d60a5339f051caa4510aff0867c3e4b 100644 (file)
@@ -34,7 +34,7 @@ static /*@observer@*/const char *BCRYPT_salt_rounds (/*@null@*/int *prefered_rou
 #endif /* USE_BCRYPT */
 #ifdef USE_YESCRYPT
 static /*@observer@*/const char *gensalt_yescrypt (void);
-static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/long *prefered_rounds);
+static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/int *prefered_cost);
 #endif /* USE_YESCRYPT */
 
 #ifndef HAVE_L64A
@@ -277,7 +277,7 @@ static /*@observer@*/const char *gensalt_bcrypt (void)
 /*
  * Return a salt prefix specifying the cost for the YESCRYPT method.
  */
-static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/long *prefered_cost)
+static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/int *prefered_cost)
 {
        static char cost_prefix[5];
        long cost;