EVP_PKEY_print_public

Print the public components of pkey to a BIO in human-readable form.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_print_public(
    BIO* out,
    EVP_PKEY const* pkey,
    int indent,
    ASN1_PCTX* pctx);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
outOutput BIO.
pkeyKey whose public material is printed.
indentIndentation width in spaces.
pctxOptional ASN.1 print context, or NULL for defaults.