Does anyone know of an alternative for populating EVP_PKEY * that
emulates what load_key() does?


load_key() is complicated only because it deals with lots of types of files and formats. Presumably you already know the format and location of your key. Just use

  pkey = PEM_read_bio_PrivateKey(<your mem bio>, ...

if your's is PEM and use

   pkey = d2i_PrivateKey_bio(<your mem bio>, ...

if its DER.

Jim
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to