From 89f19af6362020b7e29fb996f27bc58c7d872ef3 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 22 Jan 2024 19:26:55 +0000 Subject: make login.conf(5) and crypt_newhash(3) and the underlying code consistant regarding bcrypt,a instead of blowfish,a. "blowfish" is a historical alias which we don't need to document as firmly as "bcrypt". report about difficult manual page discovery from ataraxia937 ok millert --- src/lib/libc/crypt/cryptutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/crypt/cryptutil.c b/src/lib/libc/crypt/cryptutil.c index f48ba1af2c..f5fdb29589 100644 --- a/src/lib/libc/crypt/cryptutil.c +++ b/src/lib/libc/crypt/cryptutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptutil.c,v 1.12 2015/09/13 15:33:48 guenther Exp $ */ +/* $OpenBSD: cryptutil.c,v 1.13 2024/01/22 19:26:55 deraadt Exp $ */ /* * Copyright (c) 2014 Ted Unangst * @@ -54,7 +54,7 @@ int crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen) { int rv = -1; - const char *defaultpref = "blowfish,8"; + const char *defaultpref = "bcrypt,8"; const char *errstr; const char *choices[] = { "blowfish", "bcrypt" }; size_t maxchoice = sizeof(choices) / sizeof(choices[0]); -- cgit v1.2.3-55-g6feb