summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortedu <>2016-06-26 21:04:08 +0000
committertedu <>2016-06-26 21:04:08 +0000
commitd33e996eb7c6b7d4569a9accf40b58698657f85e (patch)
tree238947be7a321f1c28b831e5c7b03e910404c1ed /src
parent9c7ce0e373193152baa3074a5e6ec4a358cc48f9 (diff)
downloadopenbsd-d33e996eb7c6b7d4569a9accf40b58698657f85e.tar.gz
openbsd-d33e996eb7c6b7d4569a9accf40b58698657f85e.tar.bz2
openbsd-d33e996eb7c6b7d4569a9accf40b58698657f85e.zip
increase the minimum for auto rounds to 6. that was the previous low bound
for login.conf, and we don't want to go lower.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/crypt/bcrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c
index a8c1b9e7c8..940daf233e 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.55 2015/09/13 15:33:48 guenther Exp $ */ 1/* $OpenBSD: bcrypt.c,v 1.56 2016/06/26 21:04:08 tedu Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 4 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
@@ -261,7 +261,7 @@ _bcrypt_autorounds(void)
261 duration *= 2; 261 duration *= 2;
262 } 262 }
263 /* too slow? speed it up. */ 263 /* too slow? speed it up. */
264 while (r > 4 && duration > 120000) { 264 while (r > 6 && duration > 120000) {
265 r -= 1; 265 r -= 1;
266 duration /= 2; 266 duration /= 2;
267 } 267 }