[#OSSL_CRMF_CERTTEMPLATE_fill]
= OSSL&lowbar;CRMF&lowbar;CERTTEMPLATE&lowbar;fill
:mrdocs:

Populate selected fields of a CRMF CertTemplate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CRMF&lowbar;CERTTEMPLATE&lowbar;fill(
    xref:OSSL_CRMF_CERTTEMPLATE.adoc[OSSL&lowbar;CRMF&lowbar;CERTTEMPLATE]* tmpl,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pubkey,
    xref:X509_NAME.adoc[X509&lowbar;NAME] const* subject,
    xref:X509_NAME.adoc[X509&lowbar;NAME] const* issuer,
    xref:ASN1_INTEGER.adoc[ASN1&lowbar;INTEGER] const* serial);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tmpl*
| CertTemplate to update&period;
| *pubkey*
| Optional public key&semi; reference count is incremented when non&hyphen;NULL&period;
| *subject*
| Optional subject name to copy&period;
| *issuer*
| Optional issuer name to copy&period;
| *serial*
| Optional serial number to copy&period;
|===


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