[#OSSL_ESS_signing_cert_v2_new_init]
= OSSL&lowbar;ESS&lowbar;signing&lowbar;cert&lowbar;v2&lowbar;new&lowbar;init
:mrdocs:

Build an ESS SigningCertificateV2 attribute using digest `hash&lowbar;alg&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ESS_SIGNING_CERT_V2.adoc[ESS&lowbar;SIGNING&lowbar;CERT&lowbar;V2]*
OSSL&lowbar;ESS&lowbar;signing&lowbar;cert&lowbar;v2&lowbar;new&lowbar;init(
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* hash&lowbar;alg,
    xref:X509.adoc[X509] const* signcert,
    stack&lowbar;st&lowbar;X509 const* certs,
    int set&lowbar;issuer&lowbar;serial);
----

== Return Value

New ESS&lowbar;SIGNING&lowbar;CERT&lowbar;V2, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash&lowbar;alg*
| Message digest used for CertIDv2 hashes&period;
| *signcert*
| Signing certificate whose CertIDv2 is placed first&period;
| *certs*
| Optional additional certificates to include as CertIDv2 entries, or NULL&period;
| *set&lowbar;issuer&lowbar;serial*
| Nonzero to include issuerSerial for `signcert` (always included for `certs)&period;`
|===


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