Minor enhancement to PR#2836 fix. Instead of modifying SSL_get_certificate
authorDr. Stephen Henson <steve@openssl.org>
Fri, 21 Sep 2012 14:01:59 +0000 (14:01 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 21 Sep 2012 14:01:59 +0000 (14:01 +0000)
commit353e845120045f87ca0bc850d345caa0f853d70d
tree2cad6aed1cf3080479e14e1df1cc428f19a00d31
parentd1451f18d9f447ccd26f2c80aad9750756727915
Minor enhancement to PR#2836 fix. Instead of modifying SSL_get_certificate
change the current certificate (in s->cert->key) to the one used and then
SSL_get_certificate and SSL_get_privatekey will automatically work.

Note for 1.0.1 and earlier also includes backport of the function
ssl_get_server_send_pkey.
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/t1_lib.c