summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2024-01-22 19:26:55 +0000
committerderaadt <>2024-01-22 19:26:55 +0000
commit89f19af6362020b7e29fb996f27bc58c7d872ef3 (patch)
tree349b599e187eac10f654300f67afc99d92868112
parente82acb33a446a6ade45998717541cc8cc30ea514 (diff)
downloadopenbsd-89f19af6362020b7e29fb996f27bc58c7d872ef3.tar.gz
openbsd-89f19af6362020b7e29fb996f27bc58c7d872ef3.tar.bz2
openbsd-89f19af6362020b7e29fb996f27bc58c7d872ef3.zip
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
-rw-r--r--src/lib/libc/crypt/cryptutil.c4
1 files changed, 2 insertions, 2 deletions
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 @@
1/* $OpenBSD: cryptutil.c,v 1.12 2015/09/13 15:33:48 guenther Exp $ */ 1/* $OpenBSD: cryptutil.c,v 1.13 2024/01/22 19:26:55 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4 * 4 *
@@ -54,7 +54,7 @@ int
54crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen) 54crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen)
55{ 55{
56 int rv = -1; 56 int rv = -1;
57 const char *defaultpref = "blowfish,8"; 57 const char *defaultpref = "bcrypt,8";
58 const char *errstr; 58 const char *errstr;
59 const char *choices[] = { "blowfish", "bcrypt" }; 59 const char *choices[] = { "blowfish", "bcrypt" };
60 size_t maxchoice = sizeof(choices) / sizeof(choices[0]); 60 size_t maxchoice = sizeof(choices) / sizeof(choices[0]);