|
NAMEPKCS7_dataFinal —
move data from a BIO chain to a ContentInfo object
SYNOPSIS#include <openssl/pkcs7.h>
int
DESCRIPTIONPKCS7_dataFinal () transfers the data from the memory BIO
at the end of the given chain into the appropriate
content field of p7 itself or of its appropriate
substructure. It is typically used as the final step of populating
p7, after creating the chain with
PKCS7_dataInit(3)
and after writing the data into it.
After calling Depending on the contentType of
p7,
RETURN VALUESPKCS7_dataFinal () returns 1 on success or 0 on failure.
Possible reasons for failure include:
Signers lacking private keys do not cause failure but are silently skipped. SEE ALSOBIO_new(3), PKCS7_dataInit(3), PKCS7_final(3), PKCS7_new(3), PKCS7_sign(3)HISTORYPKCS7_dataFinal () first appeared in SSLeay 0.9.1 and has
been available since OpenBSD 2.6.
CAVEATSThis function does not support EncryptedData.Even though this function is typically used after
PKCS7_dataInit(3)
and even though
PKCS7_dataInit(3)
also supports reading from ContentInfo structures that
are already fully populated, do not use
Visit the GSP FreeBSD Man Page Interface. |