EVP_PKEY_print_private

Print a private key (including private components) to a BIO.

Synopsis

Declared in <openssl/evp.h>

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

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
outOutput BIO.
pkeyKey to print.
indentIndentation depth in spaces.
pctxASN.1 print context, or NULL for defaults.