PEM_read_bio_Parameters_ex

Read algorithm parameters (e.g. DH/DSA) from PEM into an EVP_PKEY with a library context.

Synopsis

Declared in <openssl/pem.h>

EVP_PKEY*
PEM_read_bio_Parameters_ex(
    BIO* bp,
    EVP_PKEY** x,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Parameter EVP_PKEY on success, or NULL on failure.

Parameters

NameDescription
bpBIO to read from.
xOptional address of an EVP_PKEY pointer to reuse, or NULL.
libctxLibrary context used for provider-backed decoding, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.