OSSL_CMP_CTX_set1_pkey

Set the private key used to protect outgoing CMP messages.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_CTX_set1_pkey(
    OSSL_CMP_CTX* ctx,
    EVP_PKEY* pkey);

Return Value

1 on success, 0 on error.

Parameters

NameDescription
ctxCMP context.
pkeyPrivate key matching the client certificate, or NULL to clear.