[#OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert]
= OSSL&lowbar;CRMF&lowbar;ENCRYPTEDVALUE&lowbar;get1&lowbar;encCert
:mrdocs:

Decrypt the certificate held in an EncryptedValue&period;

== Synopsis

Declared in `&lt;openssl&sol;crmf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:X509.adoc[X509]*
OSSL&lowbar;CRMF&lowbar;ENCRYPTEDVALUE&lowbar;get1&lowbar;encCert(
    xref:OSSL_CRMF_ENCRYPTEDVALUE.adoc[OSSL&lowbar;CRMF&lowbar;ENCRYPTEDVALUE] const* ecert,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey);
----

== Return Value

Decrypted X509 certificate copy owned by the caller, or NULL on error&semi; free with X509&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ecert*
| EncryptedValue containing the encrypted certificate&period;
| *libctx*
| Library context for algorithm fetches, or NULL for the default&period;
| *propq*
| Property query for algorithm fetches, or NULL&period;
| *pkey*
| Private key used to decrypt the certificate (indirect POPO&semi; RFC 4210 section 5&period;2&period;8&period;2)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
