OSSL_CMP_CTX_set0_newPkey

Set the new key pair used in certificate-request templates.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_CTX_set0_newPkey(
    OSSL_CMP_CTX* ctx,
    int priv,
    EVP_PKEY* pkey);

Return Value

1 on success, 0 on error.

Parameters

NameDescription
ctxCMP context.
privNon-zero to store the private key, zero for the public key only.
pkeyKey to install; ownership transfers to the context.