|
NAMEPKCS7_set_content ,
PKCS7_content_new —
set the nested contentInfo in a PKCS#7 structure
SYNOPSIS#include <openssl/pkcs7.h>
int
int
DESCRIPTIONIf the contentType of the outer PKCS7 structure is SignedData or DigestedData,PKCS7_set_content () sets the
contentInfo field of the content
field of outer to inner, without
copying inner. If there was previous
contentInfo, it is freed rather than overwritten. The
rest of the internal state of outer and of its
content remains unchanged.
RETURN VALUESThese functions return 1 on success or 0 on failure. They fail if the contentType of outer is unsupported.PKCS7_content_new () can also fail when
memory is exhausted. In case of failure, outer remains
unchanged.
SEE ALSOPKCS7_dataInit(3), PKCS7_new(3), PKCS7_set_type(3), PKCS7_sign(3)STANDARDSRFC 2315: PKCS #7: Cryptographic Message Syntax Version 1.5
HISTORYThese functions first appeared in SSLeay 0.8.1 and have been available since OpenBSD 2.4.CAVEATSDespite the function names, these functions do not set the content field of outer, but only the contentInfo field inside it. The rest of the content remains unchanged.
Visit the GSP FreeBSD Man Page Interface. |