|
NAMEPKCS7_set_type ,
PKCS7_set0_type_other —
initialize type of PKCS#7 ContentInfo
SYNOPSIS#include <openssl/pkcs7.h>
int
int
DESCRIPTIONThese functions set the type of an unused ContentInfo structure p7.The function
If the provided type is invalid,
p7 remains unchanged and
If memory allocation fails,
The function For both functions, the rest of the internal state of p7 remains unchanged. RETURN VALUESThe functionPKCS7_set_type () returns 1 on success or 0
on failure.
The function SEE ALSOASN1_OCTET_STRING_new(3), ASN1_TYPE_new(3), PKCS7_encrypt(3), PKCS7_new(3), PKCS7_set_content(3), PKCS7_sign(3)HISTORYThe functionPKCS7_set_type () first appeared in SSLeay
0.8.1 and PKCS7_set0_type_other () in OpenSSL 0.9.8.
Both have been available since OpenBSD 2.4.
CAVEATSIf p7 has already been in use before being passed to one of these functions, it will report success even though it leaks memory. Later on, if other functions try to use p7 in its former role, they are likely to misbehave.
Visit the GSP FreeBSD Man Page Interface. |