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 3e00cdb..6aa4dec 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;
 }