artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1363119
)
now that 5.5 has been released with compatibility for 2b hashes,
author
tedu
<tedu@openbsd.org>
Sat, 3 May 2014 17:12:53 +0000
(17:12 +0000)
committer
tedu
<tedu@openbsd.org>
Sat, 3 May 2014 17:12:53 +0000
(17:12 +0000)
switch to generating them by default. prodded by deraadt and sthen
lib/libc/crypt/bcrypt.c
patch
|
blob
|
history
diff --git
a/lib/libc/crypt/bcrypt.c
b/lib/libc/crypt/bcrypt.c
index
8c6d50c
..
4656ca6
100644
(file)
--- a/
lib/libc/crypt/bcrypt.c
+++ b/
lib/libc/crypt/bcrypt.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: bcrypt.c,v 1.4
0 2014/05/03 16:33:35
tedu Exp $ */
+/* $OpenBSD: bcrypt.c,v 1.4
1 2014/05/03 17:12:53
tedu Exp $ */
/*
* Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
@@
-73,7
+73,7
@@
bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen)
else if (log_rounds > 31)
log_rounds = 31;
- snprintf(salt, saltbuflen, "$2
a
$%2.2u$", log_rounds);
+ snprintf(salt, saltbuflen, "$2
b
$%2.2u$", log_rounds);
encode_base64(salt + 7, csalt, sizeof(csalt));
return 0;