Set current certificate to selected certificate.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2637)
This commit is contained in:
Dr. Stephen Henson 2017-02-15 15:28:56 +00:00
parent 399976c7ba
commit 59088e43b1

View 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;
}