On Tue, Jul 23, 2013, Karthik Krishnamurthy wrote:

> OpenSSL provides multiple SSL objects to be created from a single SSL_CTX
> object and each SSL object can use a different privatekey file
> (SSL_use_PrivateKey_file).
> 
> Given this flexibility, I don't see an option to have a password callback
> function per SSL object. The callbacks are provided only on the SSL_CTX
> object. Is there a work around to this other than creating an SSL_CTX
> object for every privatekey file that needs to be added in the application.
> 

You can use whatever method you want to obtain the EVP_PKEY structure itself,
e.g. the PEM functions. Then you can pass that key using SSL_use_PrivateKey()

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to