From: Ezra Peisach Date: Wed, 28 Jun 2000 16:59:15 +0000 (+0000) Subject: des.c, des3.c: Remove unused variables X-Git-Tag: krb5-1.3-alpha1~2082 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d2ecd1dff069235657c9df4b6c0334927e6a36c;p=krb5.git des.c, des3.c: Remove unused variables git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12447 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/enc_provider/ChangeLog b/src/lib/crypto/enc_provider/ChangeLog index 8862eb247..f95a62210 100644 --- a/src/lib/crypto/enc_provider/ChangeLog +++ b/src/lib/crypto/enc_provider/ChangeLog @@ -1,3 +1,7 @@ +2000-06-28 Ezra Peisach + + * des.c, des3.c: Remove unused variables. + 2000-01-21 Ken Raeburn * des.c (mit_des_zeroblock): Now const, and using C default diff --git a/src/lib/crypto/enc_provider/des.c b/src/lib/crypto/enc_provider/des.c index 2a4af9032..d4cc729a6 100644 --- a/src/lib/crypto/enc_provider/des.c +++ b/src/lib/crypto/enc_provider/des.c @@ -48,7 +48,6 @@ k5_des_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec, krb5_const krb5_data *input, krb5_data *output, int encrypt) { mit_des_key_schedule schedule; - int ret; /* key->enctype was checked by the caller */ @@ -61,7 +60,7 @@ k5_des_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec, if (input->length != output->length) return(KRB5_BAD_MSIZE); - switch (ret = mit_des_key_sched(key->contents, schedule)) { + switch (mit_des_key_sched(key->contents, schedule)) { case -1: return(KRB5DES_BAD_KEYPAR); case -2: diff --git a/src/lib/crypto/enc_provider/des3.c b/src/lib/crypto/enc_provider/des3.c index d8ce569df..92b5491d1 100644 --- a/src/lib/crypto/enc_provider/des3.c +++ b/src/lib/crypto/enc_provider/des3.c @@ -47,7 +47,6 @@ k5_des3_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec, krb5_const krb5_data *input, krb5_data *output, int encrypt) { mit_des3_key_schedule schedule; - int ret; /* key->enctype was checked by the caller */ @@ -60,7 +59,7 @@ k5_des3_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec, if (input->length != output->length) return(KRB5_BAD_MSIZE); - switch (ret = mit_des3_key_sched(*(mit_des3_cblock *)key->contents, + switch (mit_des3_key_sched(*(mit_des3_cblock *)key->contents, schedule)) { case -1: return(KRB5DES_BAD_KEYPAR);