Set the new key pair used in certificate-request templates.
Declared in <openssl/cmp.h>
int
OSSL_CMP_CTX_set0_newPkey(
OSSL_CMP_CTX* ctx,
int priv,
EVP_PKEY* pkey);
1 on success, 0 on error.
| Name | Description |
|---|---|
| ctx | CMP context. |
| priv | Non-zero to store the private key, zero for the public key only. |
| pkey | Key to install; ownership transfers to the context. |