From dbad169019598981174ff46c7a9bf58373b0e53a Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 30 Jul 2001 23:57:25 +0000 Subject: Really add the EVP and all of the DES changes. --- ssl/s2_srvr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ssl/s2_srvr.c') diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c index cc9f591427..3bd83793b7 100644 --- a/ssl/s2_srvr.c +++ b/ssl/s2_srvr.c @@ -910,6 +910,7 @@ static int request_certificate(SSL *s) EVP_MD_CTX ctx; EVP_PKEY *pkey=NULL; + EVP_MD_CTX_init(&ctx); EVP_VerifyInit(&ctx,s->ctx->rsa_md5); EVP_VerifyUpdate(&ctx,s->s2->key_material, (unsigned int)s->s2->key_material_length); @@ -931,7 +932,7 @@ static int request_certificate(SSL *s) if (pkey == NULL) goto end; i=EVP_VerifyFinal(&ctx,p,s->s2->tmp.rlen,pkey); EVP_PKEY_free(pkey); - memset(&ctx,0,sizeof(ctx)); + EVP_MD_CTX_cleanup(&ctx); if (i) { -- cgit v1.2.1