Replace the unauthenticated attributes on a PKCS#7 signer info.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_set_attributes(
    PKCS7_SIGNER_INFO* p7si,
    stack_st_X509_ATTRIBUTE* sk);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

p7si

Signer info whose unauthenticated attribute set is replaced.

sk

New attribute stack; on success ownership transfers to p7si.

Created with MrDocs