summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-05-03 17:12:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-05-03 17:12:54 +0000
commitc710f7f7c61e03427ecc9d726b843007c4820082 (patch)
tree5be05fee0ff87ede93e10698a8558a748ff25708
parent507fc9884795a195b8afae8e1d1d1b4b69c79c16 (diff)
now that 5.5 has been released with compatibility for 2b hashes,
switch to generating them by default. prodded by deraadt and sthen
-rw-r--r--lib/libc/crypt/bcrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c
index 8c6d50c0a61..4656ca656b9 100644
--- a/lib/libc/crypt/bcrypt.c
+++ b/lib/libc/crypt/bcrypt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcrypt.c,v 1.40 2014/05/03 16:33:35 tedu Exp $ */
+/* $OpenBSD: bcrypt.c,v 1.41 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, "$2a$%2.2u$", log_rounds);
+ snprintf(salt, saltbuflen, "$2b$%2.2u$", log_rounds);
encode_base64(salt + 7, csalt, sizeof(csalt));
return 0;