EVP_PKEY_asn1_set_public_check

Install the public-key consistency check callback on an ASN.1 method.

Synopsis

Declared in <openssl/evp.h>

void
EVP_PKEY_asn1_set_public_check(
    EVP_PKEY_ASN1_METHOD* ameth,
    int(* pkey_pub_check)(EVP_PKEY const*));

Parameters

NameDescription
amethASN.1 method being configured.
pkey_pub_checkCallback that returns 1 if pk's public key is valid, or NULL to clear.