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

Replace the authenticatedAttributes of a signer info with a copy of `sk&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;set&lowbar;signed&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 to update&period;
| *sk*
| Attributes to install (copied)&semi; may be empty&period;
|===


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