From 62391009757751f11deb63fb9ed07fab5976c86c Mon Sep 17 00:00:00 2001 From: pst Date: Wed, 7 Sep 1994 07:16:52 +0000 Subject: Remove static in front of declarations for des_setkey and des_cipher so that linking against -lcrypt (-ldescrypt) will give us the good versions instead of the stubs in libc. (These changes need to be made to the non-US version of libdescrypt too!) Allow building and support for bdes program. A bit more work still needs to be done on secure telnet. Submitted by: pst --- secure/lib/libcrypt/crypt-des.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'secure/lib/libcrypt/crypt-des.c') diff --git a/secure/lib/libcrypt/crypt-des.c b/secure/lib/libcrypt/crypt-des.c index 50199ce2..22f665c 100644 --- a/secure/lib/libcrypt/crypt-des.c +++ b/secure/lib/libcrypt/crypt-des.c @@ -32,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: crypt.c,v 1.4 1994/05/01 08:16:38 g89r4222 Exp $ + * $Id: crypt.c,v 1.2 1994/08/08 17:28:52 csgr Exp $ * * This is an original implementation of the DES and the crypt(3) interfaces * by David Burren . @@ -362,7 +362,7 @@ setup_salt(long salt) } } -static int +int des_setkey(const char *key) { u_long k0, k1, rawkey0, rawkey1; @@ -559,7 +559,7 @@ do_des( u_long l_in, u_long r_in, u_long *l_out, u_long *r_out, int count) return(0); } -static int +int des_cipher(const char *in, char *out, long salt, int count) { u_long l_out, r_out, rawl, rawr; -- cgit v1.1