diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-05-10 04:03:37 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-05-10 04:03:37 +0000 |
commit | 37627eb57118108d35b251aafdd156f03ff9d443 (patch) | |
tree | c163252ff550bdb1e98bae018a59c502230b714b /src/port/crypt.c | |
parent | cb8b1299a3532130c6a8d3ca3ad6a36fc242b66b (diff) |
Remove HPUX 9 rint() test.
Cleanup new crypt() source code.
Diffstat (limited to 'src/port/crypt.c')
-rw-r--r-- | src/port/crypt.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/port/crypt.c b/src/port/crypt.c index 08664dcf4e2..a76a0934e49 100644 --- a/src/port/crypt.c +++ b/src/port/crypt.c @@ -53,7 +53,10 @@ __RCSID("$NetBSD: crypt.c,v 1.18 2001/03/01 14:37:35 wiz Exp $"); #include <unistd.h> #include <windows.h> -#include "crypt.h" +static int des_setkey(const char *key); +static int des_cipher(const char *in, char *out, long salt, int num_iter); +static int setkey(const char *key); +static int encrypt(char *block, int flag); /* * UNIX password, and DES, encryption. @@ -473,7 +476,6 @@ static C_block CF6464[64/CHUNKBITS][1<<CHUNKBITS]; static C_block constdatablock; /* encryption constant */ -POWERGRES_TLS static char cryptresult[1+4+4+11+1]; /* encrypted result */ extern char *__md5crypt(const char *, const char *); /* XXX */ @@ -604,7 +606,7 @@ static volatile int des_ready = 0; /* * Set up the key schedule from the key. */ -int +static int des_setkey(key) const char *key; { @@ -636,7 +638,7 @@ des_setkey(key) * NOTE: the performance of this routine is critically dependent on your * compiler and machine architecture. */ -int +static int des_cipher(in, out, salt, num_iter) const char *in; char *out; @@ -958,7 +960,7 @@ setkey(key) /* * "encrypt" routine (for backwards compatibility) */ -int +static int encrypt(block, flag) char *block; int flag; |