[#PKCS7_digest_from_attributes]
= PKCS7&lowbar;digest&lowbar;from&lowbar;attributes
:mrdocs:

Extract the message&hyphen;digest OCTET STRING from a set of authenticatedAttributes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_OCTET_STRING.adoc[ASN1&lowbar;OCTET&lowbar;STRING]*
PKCS7&lowbar;digest&lowbar;from&lowbar;attributes(stack&lowbar;st&lowbar;X509&lowbar;ATTRIBUTE* sk);
----

== Return Value

Pointer to the digest octets within `sk,` or NULL if absent&semi; do not free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sk*
| Attribute stack from a PKCS7&lowbar;SIGNER&lowbar;INFO&period;
|===


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