From: Dr. Stephen Henson Date: Wed, 15 Feb 2017 15:28:56 +0000 (+0000) Subject: Set current certificate to selected certificate. X-Git-Tag: OpenSSL_1_1_1-pre1~2389 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59088e43b13da40beb09728bc142964e482b5a8f;p=openssl Set current certificate to selected certificate. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2637) --- diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 3e00cdbfd0..6aa4decfe1 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -2444,6 +2444,7 @@ int tls_choose_sigalg(SSL *s, int *al) } } s->s3->tmp.cert = &s->cert->pkeys[idx]; + s->cert->key = s->s3->tmp.cert; s->s3->tmp.sigalg = lu; return 1; }