Install the raw private-key export callback on an EVP_PKEY_ASN1_METHOD.
Declared in <openssl/evp.h>
void
EVP_PKEY_asn1_set_get_priv_key(
EVP_PKEY_ASN1_METHOD* ameth,
int(* get_priv_key)(EVP_PKEY const*, unsigned char*, size_t*));
| Name | Description |
|---|---|
| ameth | ASN.1 method table to update. |
| get_priv_key | Callback that writes the private key octets for pk into priv and reports the length via len. |