[#OSSL_CMP_CTX_set0_newPkey] = OSSL_CMP_CTX_set0_newPkey :mrdocs: Set the new key pair used in certificate‐request templates. == Synopsis Declared in `<openssl/cmp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_CMP_CTX_set0_newPkey( xref:OSSL_CMP_CTX.adoc[OSSL_CMP_CTX]* ctx, int priv, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey); ---- == Return Value 1 on success, 0 on error. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#