Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
CMS_get0_type, CMS_get_version, CMS_set1_eContentType, CMS_get0_eContentType, CMS_get0_content — get and set CMS content types and contentSYNOPSIS
#include <openssl/cms.h>CMS_get0_type(const CMS_ContentInfo *cms);
CMS_get_version(const CMS_ContentInfo *cms, long *version);
CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid);
CMS_get0_eContentType(CMS_ContentInfo *cms);
CMS_get0_content(CMS_ContentInfo *cms);
DESCRIPTION
CMS_get0_type() returns the content type of the ContentInfo structure cms. The ASN1_OBJECT value returned can be converted to an integer NID value using OBJ_obj2nid(3). The following content types are identified by the following NIDs:SignedData | NID_pkcs7_signed |
EnvelopedData | NID_pkcs7_enveloped |
DigestedData | NID_pkcs7_digest |
EncryptedData | NID_pkcs7_encrypted |
AuthenticatedData | NID_id_smime_ct_authData |
CompressedData | NID_id_smime_ct_compressedData |
arbitrary data | NID_pkcs7_data |
ASN1_OCTET_STRING **pconf = CMS_get0_content(cms);