Set current certificate to selected certificate.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 15 Feb 2017 15:28:56 +0000 (15:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 15 Feb 2017 15:33:15 +0000 (15:33 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2637)

ssl/t1_lib.c

index 3e00cdbfd03f89e100d7f44c40817460d4333f1c..6aa4decfe13ba9d415222b4b3214f51b874ea565 100644 (file)
@@ -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;
 }