diff options
author | markm <markm@FreeBSD.org> | 2001-11-30 21:06:38 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-11-30 21:06:38 +0000 |
commit | 19fd256fae7c15fbb63128196d5550a72c559ea8 (patch) | |
tree | 1caab024c94078fe45902c1c2f8f58e5bdb7d4f4 /crypto/telnet/libtelnet/pk.h | |
parent | e92874bd103e4d5462fd2c0013b77afc3d52df05 (diff) | |
download | FreeBSD-src-19fd256fae7c15fbb63128196d5550a72c559ea8.zip FreeBSD-src-19fd256fae7c15fbb63128196d5550a72c559ea8.tar.gz |
Very large style makeover.
1) ANSIfy.
2) Clean up ifdefs so that
a) ones that never/always apply are appropriately either
fully removed, or just the #if junk is removed.
b) change #if defined(FOO) for appropiate values of FOO.
(currently AUTHENTICATION and ENCRYPTION)
3) WARNS=2 fixing
4) GC other unused stuff
This code can now be unifdef(1)ed to make non-crypto telnet.
Diffstat (limited to 'crypto/telnet/libtelnet/pk.h')
-rw-r--r-- | crypto/telnet/libtelnet/pk.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/crypto/telnet/libtelnet/pk.h b/crypto/telnet/libtelnet/pk.h index b0bbe57..555d8eb 100644 --- a/crypto/telnet/libtelnet/pk.h +++ b/crypto/telnet/libtelnet/pk.h @@ -32,23 +32,11 @@ /* header for the des routines that we will use */ typedef unsigned char byte, DesData[ 8], IdeaData[16]; -#if 0 -typedef unsigned long word, DesKeys[32]; -#else #define DesKeys des_key_schedule -#endif #define DES_DECRYPT 0 #define DES_ENCRYPT 1 -#if 0 -extern void des_fixup_key_parity(); /* (DesData *key) */ -extern int des_key_sched(); /* (DesData *key, DesKeys *m) */ -extern int des_ecb_encrypt(); /* (DesData *src, *dst, DesKeys *m, int mode) */ -extern int des_cbc_encrypt(); /* (char *src, *dst, int length, - DesKeys *m, DesData *init, int mode) */ -#endif - /* public key routines */ /* functions: genkeys(char *public, char *secret) @@ -69,4 +57,3 @@ extern void common_key(char *secret, char *public, IdeaData *common, DesData *deskey); extern void pk_encode(char *in, char *out, DesData *deskey); extern void pk_decode(char *in, char *out, DesData *deskey); - |