]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fixed default case when no -s was specified
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 4 May 2001 13:08:52 +0000 (13:08 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 4 May 2001 13:08:52 +0000 (13:08 +0000)
src/crypt.c

index e574d8551a829d102610adaa76502da0756a25eb..e802f98e9a771e7c63b5a906d6109590cca86bda 100644 (file)
@@ -70,8 +70,10 @@ int crypt, salt;
     
     salt = info.salt;
     
-    if(info.crypt==NULL) crypt = SRPSHA1_CRYPT;
-    else {
+    if(info.crypt==NULL) {
+       crypt = SRPSHA1_CRYPT;
+       salt = 16;
+    } else {
        if (strcasecmp( info.crypt, "bcrypt")==0) {
                crypt = BLOWFISH_CRYPT;
                if (salt==0) salt = 6; /* cost is 6 */