diff options
author | tedu <> | 2014-05-03 17:12:53 +0000 |
---|---|---|
committer | tedu <> | 2014-05-03 17:12:53 +0000 |
commit | cb04d30c05610743da724641e6957b123d2269a1 (patch) | |
tree | 14288204a566c8f71c2360419d4f82a804e836b5 /src/lib | |
parent | 77a8ee84e97122ed58ad5a8b08ad73fe5c38d929 (diff) | |
download | openbsd-cb04d30c05610743da724641e6957b123d2269a1.tar.gz openbsd-cb04d30c05610743da724641e6957b123d2269a1.tar.bz2 openbsd-cb04d30c05610743da724641e6957b123d2269a1.zip |
now that 5.5 has been released with compatibility for 2b hashes,
switch to generating them by default. prodded by deraadt and sthen
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index 8c6d50c0a6..4656ca656b 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bcrypt.c,v 1.40 2014/05/03 16:33:35 tedu Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.41 2014/05/03 17:12:53 tedu Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 4 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
@@ -73,7 +73,7 @@ bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen) | |||
73 | else if (log_rounds > 31) | 73 | else if (log_rounds > 31) |
74 | log_rounds = 31; | 74 | log_rounds = 31; |
75 | 75 | ||
76 | snprintf(salt, saltbuflen, "$2a$%2.2u$", log_rounds); | 76 | snprintf(salt, saltbuflen, "$2b$%2.2u$", log_rounds); |
77 | encode_base64(salt + 7, csalt, sizeof(csalt)); | 77 | encode_base64(salt + 7, csalt, sizeof(csalt)); |
78 | 78 | ||
79 | return 0; | 79 | return 0; |