From 9ce7c80ad260138e286fadfbd0b5906fdc5bfb7a Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 5 Jun 1990 11:09:33 +0000 Subject: [PATCH] remove static locals git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1006 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/cksum.c | 6 +++--- src/lib/crypto/des/enc_dec.c | 8 ++++---- src/lib/crypto/des/key_sched.c | 2 +- src/lib/crypto/des/string2key.c | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/crypto/des/cksum.c b/src/lib/crypto/des/cksum.c index 37a796460..8bf4db224 100644 --- a/src/lib/crypto/des/cksum.c +++ b/src/lib/crypto/des/cksum.c @@ -61,9 +61,9 @@ mit_des_cbc_cksum(in,out,length,key,iv) unsigned long *ivec = (unsigned long *) iv; unsigned long i,j; - static unsigned long t_input[2]; - static unsigned long t_output[8]; - static unsigned char *t_in_p; + unsigned long t_input[2]; + unsigned long t_output[8]; + unsigned char *t_in_p; t_in_p = (unsigned char *) t_input; #ifdef MUSTALIGN diff --git a/src/lib/crypto/des/enc_dec.c b/src/lib/crypto/des/enc_dec.c index 93ef361ee..c236258be 100644 --- a/src/lib/crypto/des/enc_dec.c +++ b/src/lib/crypto/des/enc_dec.c @@ -237,10 +237,10 @@ mit_des_cbc_encrypt(in,out,length,key,iv,encrypt) register unsigned long *ivec = (unsigned long *) iv; unsigned long i,j; - static unsigned long t_input[2]; - static unsigned long t_output[2]; - static unsigned char *t_in_p; - static unsigned long xor_0, xor_1; + unsigned long t_input[2]; + unsigned long t_output[2]; + unsigned char *t_in_p; + unsigned long xor_0, xor_1; t_in_p = (unsigned char *) t_input; if (encrypt) { diff --git a/src/lib/crypto/des/key_sched.c b/src/lib/crypto/des/key_sched.c index c14d1de6a..cf7157c2a 100644 --- a/src/lib/crypto/des/key_sched.c +++ b/src/lib/crypto/des/key_sched.c @@ -58,7 +58,7 @@ mit_des_key_sched(k,schedule) register i, j, n; /* i = r10, j = r9, n = r8 */ register unsigned int temp; /* r7 */ register char *p_char; /* r6 */ - static key k_char; + key k_char; i = 8; n = 0; p_char = k_char; diff --git a/src/lib/crypto/des/string2key.c b/src/lib/crypto/des/string2key.c index 21e9b3478..71e536310 100644 --- a/src/lib/crypto/des/string2key.c +++ b/src/lib/crypto/des/string2key.c @@ -60,11 +60,11 @@ OLDDECLARG(krb5_principal, princ) register unsigned temp,i; register int j; register long length; - static unsigned char *k_p; - static int forward; + unsigned char *k_p; + int forward; register char *p_char; - static char k_char[64]; - static mit_des_key_schedule key_sked; + char k_char[64]; + mit_des_key_schedule key_sked; #define min(A, B) ((A) < (B) ? (A): (B)) -- 2.26.2