From b82392a2c8d94b90ed313cfcc8fc5802e2ffb098 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 2 Apr 2006 04:13:09 +0000 Subject: oops, to64() is shared. --- usr.bin/passwd/pwd_gensalt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/passwd/pwd_gensalt.c') diff --git a/usr.bin/passwd/pwd_gensalt.c b/usr.bin/passwd/pwd_gensalt.c index 38777334047..3e4800792fe 100644 --- a/usr.bin/passwd/pwd_gensalt.c +++ b/usr.bin/passwd/pwd_gensalt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd_gensalt.c,v 1.24 2006/04/02 01:00:18 deraadt Exp $ */ +/* $OpenBSD: pwd_gensalt.c,v 1.25 2006/04/02 04:13:08 deraadt Exp $ */ /* * Copyright 1997 Niels Provos @@ -41,9 +41,9 @@ #include #include -static void to64(char *, u_int32_t, int n); -char *bcrypt_gensalt(u_int8_t); -int pwd_gensalt(char *, int, login_cap_t *, char); +void to64(char *, u_int32_t, int n); +char *bcrypt_gensalt(u_int8_t); +int pwd_gensalt(char *, int, login_cap_t *, char); #define YPCIPHER_DEF "old" #define LOCALCIPHER_DEF "blowfish,6" @@ -132,7 +132,7 @@ pwd_gensalt(char *salt, int saltlen, login_cap_t *lc, char type) static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; -static void +void to64(char *s, u_int32_t v, int n) { while (--n >= 0) { -- cgit v1.2.3