EVP_PKEY_asn1_set_free

Set the private-key free callback on a custom EVP_PKEY_ASN1_METHOD.

Synopsis

Declared in <openssl/evp.h>

void
EVP_PKEY_asn1_set_free(
    EVP_PKEY_ASN1_METHOD* ameth,
    void(* pkey_free)(EVP_PKEY*));

Parameters

NameDescription
amethASN.1 method being constructed.
pkey_freeCallback that releases algorithm-specific key material in pkey.