From: Lutz Jänicke Date: Tue, 24 Dec 2002 21:55:57 +0000 (+0000) Subject: Some more adjustments X-Git-Tag: OpenSSL_0_9_7a~86^2~64 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=ea8e0cc7c20c47ef9e0149d6202cf2c3142a5526 Some more adjustments Submitted by: Jeffrey Altman , "Kenneth R. Robinette" --- diff --git a/ssl/kssl.c b/ssl/kssl.c index 2b82ef60f7..327b92f33b 100644 --- a/ssl/kssl.c +++ b/ssl/kssl.c @@ -1961,7 +1961,7 @@ krb5_error_code kssl_check_authent( const EVP_CIPHER *enc = NULL; unsigned char iv[EVP_MAX_IV_LENGTH]; unsigned char *p, *unenc_authent; - int padl, outl, unencbufsize; + int outl, unencbufsize; struct tm tm_time, *tm_l, *tm_g; time_t now, tl, tg, tr, tz_offset; @@ -2033,7 +2033,7 @@ krb5_error_code kssl_check_authent( if (!EVP_CipherInit(&ciph_ctx,enc,kssl_ctx->key,iv,0)) { kssl_err_set(kssl_err, SSL_R_KRB5_S_INIT, - "EVP_DecryptInit_ex error decrypting authenticator.\n"); + "EVP_CipherInit error decrypting authenticator.\n"); krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; goto err; } @@ -2094,6 +2094,7 @@ krb5_error_code kssl_check_authent( if (auth) KRB5_AUTHENT_free((KRB5_AUTHENT *) auth); if (dec_authent) KRB5_ENCDATA_free(dec_authent); if (unenc_authent) free(unenc_authent); + EVP_CIPHER_CTX_cleanup(&ciph_ctx); return krb5rc; }