[#PKCS7_set_attributes]
= PKCS7&lowbar;set&lowbar;attributes
:mrdocs:

Replace the unauthenticated attributes on a PKCS&num;7 signer info&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;set&lowbar;attributes(
    xref:PKCS7_SIGNER_INFO.adoc[PKCS7&lowbar;SIGNER&lowbar;INFO]* p7si,
    xref:stack_st_X509_ATTRIBUTE.adoc[stack&lowbar;st&lowbar;X509&lowbar;ATTRIBUTE]* sk);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7si*
| Signer info whose unauthenticated attribute set is replaced&period;
| *sk*
| New attribute stack&semi; on success ownership transfers to `p7si&period;`
|===


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