[#OSSL_CMP_CTX_set1_srvCert] = OSSL_CMP_CTX_set1_srvCert :mrdocs: Pin the expected CMP server certificate for response verification. == Synopsis Declared in `<openssl/cmp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_CMP_CTX_set1_srvCert( xref:OSSL_CMP_CTX.adoc[OSSL_CMP_CTX]* ctx, xref:X509.adoc[X509]* cert); ---- == Return Value 1 on success, 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | CMP context. | *cert* | Server certificate to trust directly, or NULL to clear. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#