evp_pkey_load_mem()

 
Given a EVP PKEY structure in the given format and a passphrase, verifies the PKEY structure and stores it in internal storage, and returns a reference to the internal storage. ⇨ Version 5.32 -- now supports the DER and PEM formats.
Syntax
evp_pkey_load_mem( data, format, passphrase, pkey var )
Returns 1 on success, 0 on failure
  • data = EVP PKEY structure text
  • format = Format of the PKEY structure text. Only "pkcs12" is supported
  • passphrase = Passphrase for the PKEY structure
  • pkey = Structure reference
User Annotations: evp_pkey_load_mem