diff options
author | 2014-03-23 23:20:12 +0000 | |
---|---|---|
committer | 2014-03-23 23:20:12 +0000 | |
commit | 60bc2a0fc6384f2b1904bfeaf9351f27a89350ba (patch) | |
tree | 339b4d0e91420d0bac9cae033cc88445d2b1a62a /lib/libc/crypt/bcrypt.c | |
parent | minimal change to implementation of bcrypt to not require static globals. (diff) | |
download | wireguard-openbsd-60bc2a0fc6384f2b1904bfeaf9351f27a89350ba.tar.xz wireguard-openbsd-60bc2a0fc6384f2b1904bfeaf9351f27a89350ba.zip |
two functions don't need to be exported
Diffstat (limited to 'lib/libc/crypt/bcrypt.c')
-rw-r--r-- | lib/libc/crypt/bcrypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c index 29ea4550c95..7070cb73755 100644 --- a/lib/libc/crypt/bcrypt.c +++ b/lib/libc/crypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt.c,v 1.32 2014/03/23 23:19:21 tedu Exp $ */ +/* $OpenBSD: bcrypt.c,v 1.33 2014/03/23 23:20:12 tedu Exp $ */ /* * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> @@ -58,7 +58,7 @@ static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *); /* * Generates a salt for this version of crypt. */ -int +static int bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen) { uint8_t csalt[BCRYPT_MAXSALT]; @@ -82,7 +82,7 @@ bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen) /* * the core bcrypt function */ -int +static int bcrypt_hashpass(const char *key, const char *salt, char *encrypted, size_t encryptedlen) { |