OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Typedefs | Functions
cms.h File Reference
#include <openssl/x509.h>

Go to the source code of this file.

Macros

#define CMS_SIGNERINFO_ISSUER_SERIAL   0
 
#define CMS_SIGNERINFO_KEYIDENTIFIER   1
 
#define CMS_RECIPINFO_TRANS   0
 
#define CMS_RECIPINFO_AGREE   1
 
#define CMS_RECIPINFO_KEK   2
 
#define CMS_RECIPINFO_PASS   3
 
#define CMS_RECIPINFO_OTHER   4
 
#define CMS_TEXT   0x1
 
#define CMS_NOCERTS   0x2
 
#define CMS_NO_CONTENT_VERIFY   0x4
 
#define CMS_NO_ATTR_VERIFY   0x8
 
#define CMS_NOSIGS   (CMS_NO_CONTENT_VERIFY|CMS_NO_ATTR_VERIFY)
 
#define CMS_NOINTERN   0x10
 
#define CMS_NO_SIGNER_CERT_VERIFY   0x20
 
#define CMS_NOVERIFY   0x20
 
#define CMS_DETACHED   0x40
 
#define CMS_BINARY   0x80
 
#define CMS_NOATTR   0x100
 
#define CMS_NOSMIMECAP   0x200
 
#define CMS_NOOLDMIMETYPE   0x400
 
#define CMS_CRLFEOL   0x800
 
#define CMS_STREAM   0x1000
 
#define CMS_NOCRL   0x2000
 
#define CMS_PARTIAL   0x4000
 
#define CMS_REUSE_DIGEST   0x8000
 
#define CMS_USE_KEYID   0x10000
 
#define CMS_DEBUG_DECRYPT   0x20000
 
#define CMS_F_CHECK_CONTENT   99
 
#define CMS_F_CMS_ADD0_CERT   164
 
#define CMS_F_CMS_ADD0_RECIPIENT_KEY   100
 
#define CMS_F_CMS_ADD0_RECIPIENT_PASSWORD   165
 
#define CMS_F_CMS_ADD1_RECEIPTREQUEST   158
 
#define CMS_F_CMS_ADD1_RECIPIENT_CERT   101
 
#define CMS_F_CMS_ADD1_SIGNER   102
 
#define CMS_F_CMS_ADD1_SIGNINGTIME   103
 
#define CMS_F_CMS_COMPRESS   104
 
#define CMS_F_CMS_COMPRESSEDDATA_CREATE   105
 
#define CMS_F_CMS_COMPRESSEDDATA_INIT_BIO   106
 
#define CMS_F_CMS_COPY_CONTENT   107
 
#define CMS_F_CMS_COPY_MESSAGEDIGEST   108
 
#define CMS_F_CMS_DATA   109
 
#define CMS_F_CMS_DATAFINAL   110
 
#define CMS_F_CMS_DATAINIT   111
 
#define CMS_F_CMS_DECRYPT   112
 
#define CMS_F_CMS_DECRYPT_SET1_KEY   113
 
#define CMS_F_CMS_DECRYPT_SET1_PASSWORD   166
 
#define CMS_F_CMS_DECRYPT_SET1_PKEY   114
 
#define CMS_F_CMS_DIGESTALGORITHM_FIND_CTX   115
 
#define CMS_F_CMS_DIGESTALGORITHM_INIT_BIO   116
 
#define CMS_F_CMS_DIGESTEDDATA_DO_FINAL   117
 
#define CMS_F_CMS_DIGEST_VERIFY   118
 
#define CMS_F_CMS_ENCODE_RECEIPT   161
 
#define CMS_F_CMS_ENCRYPT   119
 
#define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO   120
 
#define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT   121
 
#define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT   122
 
#define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY   123
 
#define CMS_F_CMS_ENVELOPEDDATA_CREATE   124
 
#define CMS_F_CMS_ENVELOPEDDATA_INIT_BIO   125
 
#define CMS_F_CMS_ENVELOPED_DATA_INIT   126
 
#define CMS_F_CMS_FINAL   127
 
#define CMS_F_CMS_GET0_CERTIFICATE_CHOICES   128
 
#define CMS_F_CMS_GET0_CONTENT   129
 
#define CMS_F_CMS_GET0_ECONTENT_TYPE   130
 
#define CMS_F_CMS_GET0_ENVELOPED   131
 
#define CMS_F_CMS_GET0_REVOCATION_CHOICES   132
 
#define CMS_F_CMS_GET0_SIGNED   133
 
#define CMS_F_CMS_MSGSIGDIGEST_ADD1   162
 
#define CMS_F_CMS_RECEIPTREQUEST_CREATE0   159
 
#define CMS_F_CMS_RECEIPT_VERIFY   160
 
#define CMS_F_CMS_RECIPIENTINFO_DECRYPT   134
 
#define CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT   135
 
#define CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT   136
 
#define CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID   137
 
#define CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP   138
 
#define CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP   139
 
#define CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT   140
 
#define CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT   141
 
#define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS   142
 
#define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID   143
 
#define CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT   167
 
#define CMS_F_CMS_RECIPIENTINFO_SET0_KEY   144
 
#define CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD   168
 
#define CMS_F_CMS_RECIPIENTINFO_SET0_PKEY   145
 
#define CMS_F_CMS_SET1_SIGNERIDENTIFIER   146
 
#define CMS_F_CMS_SET_DETACHED   147
 
#define CMS_F_CMS_SIGN   148
 
#define CMS_F_CMS_SIGNED_DATA_INIT   149
 
#define CMS_F_CMS_SIGNERINFO_CONTENT_SIGN   150
 
#define CMS_F_CMS_SIGNERINFO_SIGN   151
 
#define CMS_F_CMS_SIGNERINFO_VERIFY   152
 
#define CMS_F_CMS_SIGNERINFO_VERIFY_CERT   153
 
#define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT   154
 
#define CMS_F_CMS_SIGN_RECEIPT   163
 
#define CMS_F_CMS_STREAM   155
 
#define CMS_F_CMS_UNCOMPRESS   156
 
#define CMS_F_CMS_VERIFY   157
 
#define CMS_R_ADD_SIGNER_ERROR   99
 
#define CMS_R_CERTIFICATE_ALREADY_PRESENT   175
 
#define CMS_R_CERTIFICATE_HAS_NO_KEYID   160
 
#define CMS_R_CERTIFICATE_VERIFY_ERROR   100
 
#define CMS_R_CIPHER_INITIALISATION_ERROR   101
 
#define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR   102
 
#define CMS_R_CMS_DATAFINAL_ERROR   103
 
#define CMS_R_CMS_LIB   104
 
#define CMS_R_CONTENTIDENTIFIER_MISMATCH   170
 
#define CMS_R_CONTENT_NOT_FOUND   105
 
#define CMS_R_CONTENT_TYPE_MISMATCH   171
 
#define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA   106
 
#define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA   107
 
#define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA   108
 
#define CMS_R_CONTENT_VERIFY_ERROR   109
 
#define CMS_R_CTRL_ERROR   110
 
#define CMS_R_CTRL_FAILURE   111
 
#define CMS_R_DECRYPT_ERROR   112
 
#define CMS_R_DIGEST_ERROR   161
 
#define CMS_R_ERROR_GETTING_PUBLIC_KEY   113
 
#define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE   114
 
#define CMS_R_ERROR_SETTING_KEY   115
 
#define CMS_R_ERROR_SETTING_RECIPIENTINFO   116
 
#define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH   117
 
#define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER   176
 
#define CMS_R_INVALID_KEY_LENGTH   118
 
#define CMS_R_MD_BIO_INIT_ERROR   119
 
#define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH   120
 
#define CMS_R_MESSAGEDIGEST_WRONG_LENGTH   121
 
#define CMS_R_MSGSIGDIGEST_ERROR   172
 
#define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE   162
 
#define CMS_R_MSGSIGDIGEST_WRONG_LENGTH   163
 
#define CMS_R_NEED_ONE_SIGNER   164
 
#define CMS_R_NOT_A_SIGNED_RECEIPT   165
 
#define CMS_R_NOT_ENCRYPTED_DATA   122
 
#define CMS_R_NOT_KEK   123
 
#define CMS_R_NOT_KEY_TRANSPORT   124
 
#define CMS_R_NOT_PWRI   177
 
#define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE   125
 
#define CMS_R_NO_CIPHER   126
 
#define CMS_R_NO_CONTENT   127
 
#define CMS_R_NO_CONTENT_TYPE   173
 
#define CMS_R_NO_DEFAULT_DIGEST   128
 
#define CMS_R_NO_DIGEST_SET   129
 
#define CMS_R_NO_KEY   130
 
#define CMS_R_NO_KEY_OR_CERT   174
 
#define CMS_R_NO_MATCHING_DIGEST   131
 
#define CMS_R_NO_MATCHING_RECIPIENT   132
 
#define CMS_R_NO_MATCHING_SIGNATURE   166
 
#define CMS_R_NO_MSGSIGDIGEST   167
 
#define CMS_R_NO_PASSWORD   178
 
#define CMS_R_NO_PRIVATE_KEY   133
 
#define CMS_R_NO_PUBLIC_KEY   134
 
#define CMS_R_NO_RECEIPT_REQUEST   168
 
#define CMS_R_NO_SIGNERS   135
 
#define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   136
 
#define CMS_R_RECEIPT_DECODE_ERROR   169
 
#define CMS_R_RECIPIENT_ERROR   137
 
#define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND   138
 
#define CMS_R_SIGNFINAL_ERROR   139
 
#define CMS_R_SMIME_TEXT_ERROR   140
 
#define CMS_R_STORE_INIT_ERROR   141
 
#define CMS_R_TYPE_NOT_COMPRESSED_DATA   142
 
#define CMS_R_TYPE_NOT_DATA   143
 
#define CMS_R_TYPE_NOT_DIGESTED_DATA   144
 
#define CMS_R_TYPE_NOT_ENCRYPTED_DATA   145
 
#define CMS_R_TYPE_NOT_ENVELOPED_DATA   146
 
#define CMS_R_UNABLE_TO_FINALIZE_CONTEXT   147
 
#define CMS_R_UNKNOWN_CIPHER   148
 
#define CMS_R_UNKNOWN_DIGEST_ALGORIHM   149
 
#define CMS_R_UNKNOWN_ID   150
 
#define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM   151
 
#define CMS_R_UNSUPPORTED_CONTENT_TYPE   152
 
#define CMS_R_UNSUPPORTED_KEK_ALGORITHM   153
 
#define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM   179
 
#define CMS_R_UNSUPPORTED_RECIPIENT_TYPE   154
 
#define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE   155
 
#define CMS_R_UNSUPPORTED_TYPE   156
 
#define CMS_R_UNWRAP_ERROR   157
 
#define CMS_R_UNWRAP_FAILURE   180
 
#define CMS_R_VERIFICATION_FAILURE   158
 
#define CMS_R_WRAP_ERROR   159
 

Typedefs

typedef struct CMS_ContentInfo_st CMS_ContentInfo
 
typedef struct CMS_SignerInfo_st CMS_SignerInfo
 
typedef struct
CMS_CertificateChoices 
CMS_CertificateChoices
 
typedef struct
CMS_RevocationInfoChoice_st 
CMS_RevocationInfoChoice
 
typedef struct CMS_RecipientInfo_st CMS_RecipientInfo
 
typedef struct
CMS_ReceiptRequest_st 
CMS_ReceiptRequest
 
typedef struct CMS_Receipt_st CMS_Receipt
 

Functions

const ASN1_OBJECTCMS_get0_type (CMS_ContentInfo *cms)
 
BIOCMS_dataInit (CMS_ContentInfo *cms, BIO *icont)
 
int CMS_dataFinal (CMS_ContentInfo *cms, BIO *bio)
 
ASN1_OCTET_STRING ** CMS_get0_content (CMS_ContentInfo *cms)
 
int CMS_is_detached (CMS_ContentInfo *cms)
 
int CMS_set_detached (CMS_ContentInfo *cms, int detached)
 
int CMS_stream (unsigned char ***boundary, CMS_ContentInfo *cms)
 
CMS_ContentInfod2i_CMS_bio (BIO *bp, CMS_ContentInfo **cms)
 
int i2d_CMS_bio (BIO *bp, CMS_ContentInfo *cms)
 
BIOBIO_new_CMS (BIO *out, CMS_ContentInfo *cms)
 
int i2d_CMS_bio_stream (BIO *out, CMS_ContentInfo *cms, BIO *in, int flags)
 
int PEM_write_bio_CMS_stream (BIO *out, CMS_ContentInfo *cms, BIO *in, int flags)
 
CMS_ContentInfoSMIME_read_CMS (BIO *bio, BIO **bcont)
 
int SMIME_write_CMS (BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags)
 
int CMS_final (CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags)
 
CMS_ContentInfoCMS_sign (X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509)*certs, BIO *data, unsigned int flags)
 
CMS_ContentInfoCMS_sign_receipt (CMS_SignerInfo *si, X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509)*certs, unsigned int flags)
 
int CMS_data (CMS_ContentInfo *cms, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_data_create (BIO *in, unsigned int flags)
 
int CMS_digest_verify (CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_digest_create (BIO *in, const EVP_MD *md, unsigned int flags)
 
int CMS_EncryptedData_decrypt (CMS_ContentInfo *cms, const unsigned char *key, size_t keylen, BIO *dcont, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_EncryptedData_encrypt (BIO *in, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen, unsigned int flags)
 
int CMS_EncryptedData_set1_key (CMS_ContentInfo *cms, const EVP_CIPHER *ciph, const unsigned char *key, size_t keylen)
 
int CMS_verify (CMS_ContentInfo *cms, STACK_OF(X509)*certs, X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags)
 
int CMS_verify_receipt (CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, STACK_OF(X509)*certs, X509_STORE *store, unsigned int flags)
 
 STACK_OF (X509)*CMS_get0_signers(CMS_ContentInfo *cms)
 
CMS_ContentInfoCMS_encrypt (STACK_OF(X509)*certs, BIO *in, const EVP_CIPHER *cipher, unsigned int flags)
 
int CMS_decrypt (CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert, BIO *dcont, BIO *out, unsigned int flags)
 
int CMS_decrypt_set1_pkey (CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert)
 
int CMS_decrypt_set1_key (CMS_ContentInfo *cms, unsigned char *key, size_t keylen, unsigned char *id, size_t idlen)
 
int CMS_decrypt_set1_password (CMS_ContentInfo *cms, unsigned char *pass, ossl_ssize_t passlen)
 
 STACK_OF (CMS_RecipientInfo)*CMS_get0_RecipientInfos(CMS_ContentInfo *cms)
 
int CMS_RecipientInfo_type (CMS_RecipientInfo *ri)
 
CMS_ContentInfoCMS_EnvelopedData_create (const EVP_CIPHER *cipher)
 
CMS_RecipientInfoCMS_add1_recipient_cert (CMS_ContentInfo *cms, X509 *recip, unsigned int flags)
 
int CMS_RecipientInfo_set0_pkey (CMS_RecipientInfo *ri, EVP_PKEY *pkey)
 
int CMS_RecipientInfo_ktri_cert_cmp (CMS_RecipientInfo *ri, X509 *cert)
 
int CMS_RecipientInfo_ktri_get0_algs (CMS_RecipientInfo *ri, EVP_PKEY **pk, X509 **recip, X509_ALGOR **palg)
 
int CMS_RecipientInfo_ktri_get0_signer_id (CMS_RecipientInfo *ri, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno)
 
CMS_RecipientInfoCMS_add0_recipient_key (CMS_ContentInfo *cms, int nid, unsigned char *key, size_t keylen, unsigned char *id, size_t idlen, ASN1_GENERALIZEDTIME *date, ASN1_OBJECT *otherTypeId, ASN1_TYPE *otherType)
 
int CMS_RecipientInfo_kekri_get0_id (CMS_RecipientInfo *ri, X509_ALGOR **palg, ASN1_OCTET_STRING **pid, ASN1_GENERALIZEDTIME **pdate, ASN1_OBJECT **potherid, ASN1_TYPE **pothertype)
 
int CMS_RecipientInfo_set0_key (CMS_RecipientInfo *ri, unsigned char *key, size_t keylen)
 
int CMS_RecipientInfo_kekri_id_cmp (CMS_RecipientInfo *ri, const unsigned char *id, size_t idlen)
 
int CMS_RecipientInfo_set0_password (CMS_RecipientInfo *ri, unsigned char *pass, ossl_ssize_t passlen)
 
CMS_RecipientInfoCMS_add0_recipient_password (CMS_ContentInfo *cms, int iter, int wrap_nid, int pbe_nid, unsigned char *pass, ossl_ssize_t passlen, const EVP_CIPHER *kekciph)
 
int CMS_RecipientInfo_decrypt (CMS_ContentInfo *cms, CMS_RecipientInfo *ri)
 
int CMS_uncompress (CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_compress (BIO *in, int comp_nid, unsigned int flags)
 
int CMS_set1_eContentType (CMS_ContentInfo *cms, const ASN1_OBJECT *oid)
 
const ASN1_OBJECTCMS_get0_eContentType (CMS_ContentInfo *cms)
 
CMS_CertificateChoicesCMS_add0_CertificateChoices (CMS_ContentInfo *cms)
 
int CMS_add0_cert (CMS_ContentInfo *cms, X509 *cert)
 
int CMS_add1_cert (CMS_ContentInfo *cms, X509 *cert)
 
CMS_RevocationInfoChoiceCMS_add0_RevocationInfoChoice (CMS_ContentInfo *cms)
 
int CMS_add0_crl (CMS_ContentInfo *cms, X509_CRL *crl)
 
int CMS_add1_crl (CMS_ContentInfo *cms, X509_CRL *crl)
 
 STACK_OF (X509_CRL)*CMS_get1_crls(CMS_ContentInfo *cms)
 
int CMS_SignedData_init (CMS_ContentInfo *cms)
 
CMS_SignerInfoCMS_add1_signer (CMS_ContentInfo *cms, X509 *signer, EVP_PKEY *pk, const EVP_MD *md, unsigned int flags)
 
 STACK_OF (CMS_SignerInfo)*CMS_get0_SignerInfos(CMS_ContentInfo *cms)
 
void CMS_SignerInfo_set1_signer_cert (CMS_SignerInfo *si, X509 *signer)
 
int CMS_SignerInfo_get0_signer_id (CMS_SignerInfo *si, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno)
 
int CMS_SignerInfo_cert_cmp (CMS_SignerInfo *si, X509 *cert)
 
int CMS_set1_signers_certs (CMS_ContentInfo *cms, STACK_OF(X509)*certs, unsigned int flags)
 
void CMS_SignerInfo_get0_algs (CMS_SignerInfo *si, EVP_PKEY **pk, X509 **signer, X509_ALGOR **pdig, X509_ALGOR **psig)
 
int CMS_SignerInfo_sign (CMS_SignerInfo *si)
 
int CMS_SignerInfo_verify (CMS_SignerInfo *si)
 
int CMS_SignerInfo_verify_content (CMS_SignerInfo *si, BIO *chain)
 
int CMS_add_smimecap (CMS_SignerInfo *si, STACK_OF(X509_ALGOR)*algs)
 
int CMS_add_simple_smimecap (STACK_OF(X509_ALGOR)**algs, int algnid, int keysize)
 
int CMS_add_standard_smimecap (STACK_OF(X509_ALGOR)**smcap)
 
int CMS_signed_get_attr_count (const CMS_SignerInfo *si)
 
int CMS_signed_get_attr_by_NID (const CMS_SignerInfo *si, int nid, int lastpos)
 
int CMS_signed_get_attr_by_OBJ (const CMS_SignerInfo *si, ASN1_OBJECT *obj, int lastpos)
 
X509_ATTRIBUTECMS_signed_get_attr (const CMS_SignerInfo *si, int loc)
 
X509_ATTRIBUTECMS_signed_delete_attr (CMS_SignerInfo *si, int loc)
 
int CMS_signed_add1_attr (CMS_SignerInfo *si, X509_ATTRIBUTE *attr)
 
int CMS_signed_add1_attr_by_OBJ (CMS_SignerInfo *si, const ASN1_OBJECT *obj, int type, const void *bytes, int len)
 
int CMS_signed_add1_attr_by_NID (CMS_SignerInfo *si, int nid, int type, const void *bytes, int len)
 
int CMS_signed_add1_attr_by_txt (CMS_SignerInfo *si, const char *attrname, int type, const void *bytes, int len)
 
voidCMS_signed_get0_data_by_OBJ (CMS_SignerInfo *si, ASN1_OBJECT *oid, int lastpos, int type)
 
int CMS_unsigned_get_attr_count (const CMS_SignerInfo *si)
 
int CMS_unsigned_get_attr_by_NID (const CMS_SignerInfo *si, int nid, int lastpos)
 
int CMS_unsigned_get_attr_by_OBJ (const CMS_SignerInfo *si, ASN1_OBJECT *obj, int lastpos)
 
X509_ATTRIBUTECMS_unsigned_get_attr (const CMS_SignerInfo *si, int loc)
 
X509_ATTRIBUTECMS_unsigned_delete_attr (CMS_SignerInfo *si, int loc)
 
int CMS_unsigned_add1_attr (CMS_SignerInfo *si, X509_ATTRIBUTE *attr)
 
int CMS_unsigned_add1_attr_by_OBJ (CMS_SignerInfo *si, const ASN1_OBJECT *obj, int type, const void *bytes, int len)
 
int CMS_unsigned_add1_attr_by_NID (CMS_SignerInfo *si, int nid, int type, const void *bytes, int len)
 
int CMS_unsigned_add1_attr_by_txt (CMS_SignerInfo *si, const char *attrname, int type, const void *bytes, int len)
 
voidCMS_unsigned_get0_data_by_OBJ (CMS_SignerInfo *si, ASN1_OBJECT *oid, int lastpos, int type)
 
void ERR_load_CMS_strings (void)
 

Macro Definition Documentation

#define CMS_BINARY   0x80

Definition at line 104 of file cms.h.

#define CMS_CRLFEOL   0x800

Definition at line 108 of file cms.h.

#define CMS_DEBUG_DECRYPT   0x20000

Definition at line 114 of file cms.h.

#define CMS_DETACHED   0x40

Definition at line 103 of file cms.h.

#define CMS_F_CHECK_CONTENT   99

Definition at line 343 of file cms.h.

#define CMS_F_CMS_ADD0_CERT   164

Definition at line 344 of file cms.h.

#define CMS_F_CMS_ADD0_RECIPIENT_KEY   100

Definition at line 345 of file cms.h.

#define CMS_F_CMS_ADD0_RECIPIENT_PASSWORD   165

Definition at line 346 of file cms.h.

#define CMS_F_CMS_ADD1_RECEIPTREQUEST   158

Definition at line 347 of file cms.h.

#define CMS_F_CMS_ADD1_RECIPIENT_CERT   101

Definition at line 348 of file cms.h.

#define CMS_F_CMS_ADD1_SIGNER   102

Definition at line 349 of file cms.h.

#define CMS_F_CMS_ADD1_SIGNINGTIME   103

Definition at line 350 of file cms.h.

#define CMS_F_CMS_COMPRESS   104

Definition at line 351 of file cms.h.

#define CMS_F_CMS_COMPRESSEDDATA_CREATE   105

Definition at line 352 of file cms.h.

#define CMS_F_CMS_COMPRESSEDDATA_INIT_BIO   106

Definition at line 353 of file cms.h.

#define CMS_F_CMS_COPY_CONTENT   107

Definition at line 354 of file cms.h.

#define CMS_F_CMS_COPY_MESSAGEDIGEST   108

Definition at line 355 of file cms.h.

#define CMS_F_CMS_DATA   109

Definition at line 356 of file cms.h.

#define CMS_F_CMS_DATAFINAL   110

Definition at line 357 of file cms.h.

#define CMS_F_CMS_DATAINIT   111

Definition at line 358 of file cms.h.

#define CMS_F_CMS_DECRYPT   112

Definition at line 359 of file cms.h.

#define CMS_F_CMS_DECRYPT_SET1_KEY   113

Definition at line 360 of file cms.h.

#define CMS_F_CMS_DECRYPT_SET1_PASSWORD   166

Definition at line 361 of file cms.h.

#define CMS_F_CMS_DECRYPT_SET1_PKEY   114

Definition at line 362 of file cms.h.

#define CMS_F_CMS_DIGEST_VERIFY   118

Definition at line 366 of file cms.h.

#define CMS_F_CMS_DIGESTALGORITHM_FIND_CTX   115

Definition at line 363 of file cms.h.

#define CMS_F_CMS_DIGESTALGORITHM_INIT_BIO   116

Definition at line 364 of file cms.h.

#define CMS_F_CMS_DIGESTEDDATA_DO_FINAL   117

Definition at line 365 of file cms.h.

#define CMS_F_CMS_ENCODE_RECEIPT   161

Definition at line 367 of file cms.h.

#define CMS_F_CMS_ENCRYPT   119

Definition at line 368 of file cms.h.

#define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO   120

Definition at line 369 of file cms.h.

#define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT   121

Definition at line 370 of file cms.h.

#define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT   122

Definition at line 371 of file cms.h.

#define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY   123

Definition at line 372 of file cms.h.

#define CMS_F_CMS_ENVELOPED_DATA_INIT   126

Definition at line 375 of file cms.h.

#define CMS_F_CMS_ENVELOPEDDATA_CREATE   124

Definition at line 373 of file cms.h.

#define CMS_F_CMS_ENVELOPEDDATA_INIT_BIO   125

Definition at line 374 of file cms.h.

#define CMS_F_CMS_FINAL   127

Definition at line 376 of file cms.h.

#define CMS_F_CMS_GET0_CERTIFICATE_CHOICES   128

Definition at line 377 of file cms.h.

#define CMS_F_CMS_GET0_CONTENT   129

Definition at line 378 of file cms.h.

#define CMS_F_CMS_GET0_ECONTENT_TYPE   130

Definition at line 379 of file cms.h.

#define CMS_F_CMS_GET0_ENVELOPED   131

Definition at line 380 of file cms.h.

#define CMS_F_CMS_GET0_REVOCATION_CHOICES   132

Definition at line 381 of file cms.h.

#define CMS_F_CMS_GET0_SIGNED   133

Definition at line 382 of file cms.h.

#define CMS_F_CMS_MSGSIGDIGEST_ADD1   162

Definition at line 383 of file cms.h.

#define CMS_F_CMS_RECEIPT_VERIFY   160

Definition at line 385 of file cms.h.

#define CMS_F_CMS_RECEIPTREQUEST_CREATE0   159

Definition at line 384 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_DECRYPT   134

Definition at line 386 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT   135

Definition at line 387 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT   136

Definition at line 388 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID   137

Definition at line 389 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP   138

Definition at line 390 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP   139

Definition at line 391 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT   140

Definition at line 392 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT   141

Definition at line 393 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS   142

Definition at line 394 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID   143

Definition at line 395 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT   167

Definition at line 396 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_SET0_KEY   144

Definition at line 397 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD   168

Definition at line 398 of file cms.h.

#define CMS_F_CMS_RECIPIENTINFO_SET0_PKEY   145

Definition at line 399 of file cms.h.

#define CMS_F_CMS_SET1_SIGNERIDENTIFIER   146

Definition at line 400 of file cms.h.

#define CMS_F_CMS_SET_DETACHED   147

Definition at line 401 of file cms.h.

#define CMS_F_CMS_SIGN   148

Definition at line 402 of file cms.h.

#define CMS_F_CMS_SIGN_RECEIPT   163

Definition at line 409 of file cms.h.

#define CMS_F_CMS_SIGNED_DATA_INIT   149

Definition at line 403 of file cms.h.

#define CMS_F_CMS_SIGNERINFO_CONTENT_SIGN   150

Definition at line 404 of file cms.h.

#define CMS_F_CMS_SIGNERINFO_SIGN   151

Definition at line 405 of file cms.h.

#define CMS_F_CMS_SIGNERINFO_VERIFY   152

Definition at line 406 of file cms.h.

#define CMS_F_CMS_SIGNERINFO_VERIFY_CERT   153

Definition at line 407 of file cms.h.

#define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT   154

Definition at line 408 of file cms.h.

#define CMS_F_CMS_STREAM   155

Definition at line 410 of file cms.h.

#define CMS_F_CMS_UNCOMPRESS   156

Definition at line 411 of file cms.h.

#define CMS_F_CMS_VERIFY   157

Definition at line 412 of file cms.h.

#define CMS_NO_ATTR_VERIFY   0x8

Definition at line 97 of file cms.h.

#define CMS_NO_CONTENT_VERIFY   0x4

Definition at line 96 of file cms.h.

#define CMS_NO_SIGNER_CERT_VERIFY   0x20

Definition at line 101 of file cms.h.

#define CMS_NOATTR   0x100

Definition at line 105 of file cms.h.

#define CMS_NOCERTS   0x2

Definition at line 95 of file cms.h.

#define CMS_NOCRL   0x2000

Definition at line 110 of file cms.h.

#define CMS_NOINTERN   0x10

Definition at line 100 of file cms.h.

#define CMS_NOOLDMIMETYPE   0x400

Definition at line 107 of file cms.h.

#define CMS_NOSIGS   (CMS_NO_CONTENT_VERIFY|CMS_NO_ATTR_VERIFY)

Definition at line 98 of file cms.h.

#define CMS_NOSMIMECAP   0x200

Definition at line 106 of file cms.h.

#define CMS_NOVERIFY   0x20

Definition at line 102 of file cms.h.

#define CMS_PARTIAL   0x4000

Definition at line 111 of file cms.h.

#define CMS_R_ADD_SIGNER_ERROR   99

Definition at line 415 of file cms.h.

#define CMS_R_CERTIFICATE_ALREADY_PRESENT   175

Definition at line 416 of file cms.h.

#define CMS_R_CERTIFICATE_HAS_NO_KEYID   160

Definition at line 417 of file cms.h.

#define CMS_R_CERTIFICATE_VERIFY_ERROR   100

Definition at line 418 of file cms.h.

#define CMS_R_CIPHER_INITIALISATION_ERROR   101

Definition at line 419 of file cms.h.

#define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR   102

Definition at line 420 of file cms.h.

#define CMS_R_CMS_DATAFINAL_ERROR   103

Definition at line 421 of file cms.h.

#define CMS_R_CMS_LIB   104

Definition at line 422 of file cms.h.

#define CMS_R_CONTENT_NOT_FOUND   105

Definition at line 424 of file cms.h.

#define CMS_R_CONTENT_TYPE_MISMATCH   171

Definition at line 425 of file cms.h.

#define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA   106

Definition at line 426 of file cms.h.

#define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA   107

Definition at line 427 of file cms.h.

#define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA   108

Definition at line 428 of file cms.h.

#define CMS_R_CONTENT_VERIFY_ERROR   109

Definition at line 429 of file cms.h.

#define CMS_R_CONTENTIDENTIFIER_MISMATCH   170

Definition at line 423 of file cms.h.

#define CMS_R_CTRL_ERROR   110

Definition at line 430 of file cms.h.

#define CMS_R_CTRL_FAILURE   111

Definition at line 431 of file cms.h.

#define CMS_R_DECRYPT_ERROR   112

Definition at line 432 of file cms.h.

#define CMS_R_DIGEST_ERROR   161

Definition at line 433 of file cms.h.

#define CMS_R_ERROR_GETTING_PUBLIC_KEY   113

Definition at line 434 of file cms.h.

#define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE   114

Definition at line 435 of file cms.h.

#define CMS_R_ERROR_SETTING_KEY   115

Definition at line 436 of file cms.h.

#define CMS_R_ERROR_SETTING_RECIPIENTINFO   116

Definition at line 437 of file cms.h.

#define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH   117

Definition at line 438 of file cms.h.

#define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER   176

Definition at line 439 of file cms.h.

#define CMS_R_INVALID_KEY_LENGTH   118

Definition at line 440 of file cms.h.

#define CMS_R_MD_BIO_INIT_ERROR   119

Definition at line 441 of file cms.h.

#define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH   120

Definition at line 442 of file cms.h.

#define CMS_R_MESSAGEDIGEST_WRONG_LENGTH   121

Definition at line 443 of file cms.h.

#define CMS_R_MSGSIGDIGEST_ERROR   172

Definition at line 444 of file cms.h.

#define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE   162

Definition at line 445 of file cms.h.

#define CMS_R_MSGSIGDIGEST_WRONG_LENGTH   163

Definition at line 446 of file cms.h.

#define CMS_R_NEED_ONE_SIGNER   164

Definition at line 447 of file cms.h.

#define CMS_R_NO_CIPHER   126

Definition at line 454 of file cms.h.

#define CMS_R_NO_CONTENT   127

Definition at line 455 of file cms.h.

#define CMS_R_NO_CONTENT_TYPE   173

Definition at line 456 of file cms.h.

#define CMS_R_NO_DEFAULT_DIGEST   128

Definition at line 457 of file cms.h.

#define CMS_R_NO_DIGEST_SET   129

Definition at line 458 of file cms.h.

#define CMS_R_NO_KEY   130

Definition at line 459 of file cms.h.

#define CMS_R_NO_KEY_OR_CERT   174

Definition at line 460 of file cms.h.

#define CMS_R_NO_MATCHING_DIGEST   131

Definition at line 461 of file cms.h.

#define CMS_R_NO_MATCHING_RECIPIENT   132

Definition at line 462 of file cms.h.

#define CMS_R_NO_MATCHING_SIGNATURE   166

Definition at line 463 of file cms.h.

#define CMS_R_NO_MSGSIGDIGEST   167

Definition at line 464 of file cms.h.

#define CMS_R_NO_PASSWORD   178

Definition at line 465 of file cms.h.

#define CMS_R_NO_PRIVATE_KEY   133

Definition at line 466 of file cms.h.

#define CMS_R_NO_PUBLIC_KEY   134

Definition at line 467 of file cms.h.

#define CMS_R_NO_RECEIPT_REQUEST   168

Definition at line 468 of file cms.h.

#define CMS_R_NO_SIGNERS   135

Definition at line 469 of file cms.h.

#define CMS_R_NOT_A_SIGNED_RECEIPT   165

Definition at line 448 of file cms.h.

#define CMS_R_NOT_ENCRYPTED_DATA   122

Definition at line 449 of file cms.h.

#define CMS_R_NOT_KEK   123

Definition at line 450 of file cms.h.

#define CMS_R_NOT_KEY_TRANSPORT   124

Definition at line 451 of file cms.h.

#define CMS_R_NOT_PWRI   177

Definition at line 452 of file cms.h.

#define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE   125

Definition at line 453 of file cms.h.

#define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   136

Definition at line 470 of file cms.h.

#define CMS_R_RECEIPT_DECODE_ERROR   169

Definition at line 471 of file cms.h.

#define CMS_R_RECIPIENT_ERROR   137

Definition at line 472 of file cms.h.

#define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND   138

Definition at line 473 of file cms.h.

#define CMS_R_SIGNFINAL_ERROR   139

Definition at line 474 of file cms.h.

#define CMS_R_SMIME_TEXT_ERROR   140

Definition at line 475 of file cms.h.

#define CMS_R_STORE_INIT_ERROR   141

Definition at line 476 of file cms.h.

#define CMS_R_TYPE_NOT_COMPRESSED_DATA   142

Definition at line 477 of file cms.h.

#define CMS_R_TYPE_NOT_DATA   143

Definition at line 478 of file cms.h.

#define CMS_R_TYPE_NOT_DIGESTED_DATA   144

Definition at line 479 of file cms.h.

#define CMS_R_TYPE_NOT_ENCRYPTED_DATA   145

Definition at line 480 of file cms.h.

#define CMS_R_TYPE_NOT_ENVELOPED_DATA   146

Definition at line 481 of file cms.h.

#define CMS_R_UNABLE_TO_FINALIZE_CONTEXT   147

Definition at line 482 of file cms.h.

#define CMS_R_UNKNOWN_CIPHER   148

Definition at line 483 of file cms.h.

#define CMS_R_UNKNOWN_DIGEST_ALGORIHM   149

Definition at line 484 of file cms.h.

#define CMS_R_UNKNOWN_ID   150

Definition at line 485 of file cms.h.

#define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM   151

Definition at line 486 of file cms.h.

#define CMS_R_UNSUPPORTED_CONTENT_TYPE   152

Definition at line 487 of file cms.h.

#define CMS_R_UNSUPPORTED_KEK_ALGORITHM   153

Definition at line 488 of file cms.h.

#define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM   179

Definition at line 489 of file cms.h.

#define CMS_R_UNSUPPORTED_RECIPIENT_TYPE   154

Definition at line 490 of file cms.h.

#define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE   155

Definition at line 491 of file cms.h.

#define CMS_R_UNSUPPORTED_TYPE   156

Definition at line 492 of file cms.h.

#define CMS_R_UNWRAP_ERROR   157

Definition at line 493 of file cms.h.

#define CMS_R_UNWRAP_FAILURE   180

Definition at line 494 of file cms.h.

#define CMS_R_VERIFICATION_FAILURE   158

Definition at line 495 of file cms.h.

#define CMS_R_WRAP_ERROR   159

Definition at line 496 of file cms.h.

#define CMS_RECIPINFO_AGREE   1

Definition at line 87 of file cms.h.

#define CMS_RECIPINFO_KEK   2

Definition at line 88 of file cms.h.

#define CMS_RECIPINFO_OTHER   4

Definition at line 90 of file cms.h.

#define CMS_RECIPINFO_PASS   3

Definition at line 89 of file cms.h.

#define CMS_RECIPINFO_TRANS   0

Definition at line 86 of file cms.h.

#define CMS_REUSE_DIGEST   0x8000

Definition at line 112 of file cms.h.

#define CMS_SIGNERINFO_ISSUER_SERIAL   0

Definition at line 83 of file cms.h.

#define CMS_SIGNERINFO_KEYIDENTIFIER   1

Definition at line 84 of file cms.h.

#define CMS_STREAM   0x1000

Definition at line 109 of file cms.h.

#define CMS_TEXT   0x1

Definition at line 94 of file cms.h.

#define CMS_USE_KEYID   0x10000

Definition at line 113 of file cms.h.

Typedef Documentation

Definition at line 71 of file cms.h.

Definition at line 69 of file cms.h.

typedef struct CMS_Receipt_st CMS_Receipt

Definition at line 75 of file cms.h.

typedef struct CMS_ReceiptRequest_st CMS_ReceiptRequest

Definition at line 74 of file cms.h.

Definition at line 73 of file cms.h.

Definition at line 72 of file cms.h.

Definition at line 70 of file cms.h.

Function Documentation

BIO* BIO_new_CMS ( BIO out,
CMS_ContentInfo cms 
)
int CMS_add0_cert ( CMS_ContentInfo cms,
X509 cert 
)

Definition at line 462 of file cms_lib.c.

CMS_CertificateChoices* CMS_add0_CertificateChoices ( CMS_ContentInfo cms)

Definition at line 440 of file cms_lib.c.

int CMS_add0_crl ( CMS_ContentInfo cms,
X509_CRL crl 
)

Definition at line 543 of file cms_lib.c.

CMS_RecipientInfo* CMS_add0_recipient_key ( CMS_ContentInfo cms,
int  nid,
unsigned char *  key,
size_t  keylen,
unsigned char *  id,
size_t  idlen,
ASN1_GENERALIZEDTIME date,
ASN1_OBJECT otherTypeId,
ASN1_TYPE otherType 
)

Definition at line 479 of file cms_env.c.

CMS_RecipientInfo* CMS_add0_recipient_password ( CMS_ContentInfo cms,
int  iter,
int  wrap_nid,
int  pbe_nid,
unsigned char *  pass,
ossl_ssize_t  passlen,
const EVP_CIPHER kekciph 
)

Definition at line 83 of file cms_pwri.c.

CMS_RevocationInfoChoice* CMS_add0_RevocationInfoChoice ( CMS_ContentInfo cms)

Definition at line 521 of file cms_lib.c.

int CMS_add1_cert ( CMS_ContentInfo cms,
X509 cert 
)

Definition at line 493 of file cms_lib.c.

int CMS_add1_crl ( CMS_ContentInfo cms,
X509_CRL crl 
)

Definition at line 554 of file cms_lib.c.

CMS_RecipientInfo* CMS_add1_recipient_cert ( CMS_ContentInfo cms,
X509 recip,
unsigned int  flags 
)

Definition at line 147 of file cms_env.c.

CMS_SignerInfo* CMS_add1_signer ( CMS_ContentInfo cms,
X509 signer,
EVP_PKEY pk,
const EVP_MD md,
unsigned int  flags 
)

Definition at line 300 of file cms_sd.c.

int CMS_add_simple_smimecap ( STACK_OF(X509_ALGOR)**  algs,
int  algnid,
int  keysize 
)

Definition at line 924 of file cms_sd.c.

int CMS_add_smimecap ( CMS_SignerInfo si,
STACK_OF(X509_ALGOR)*  algs 
)

Definition at line 911 of file cms_sd.c.

int CMS_add_standard_smimecap ( STACK_OF(X509_ALGOR)**  smcap)

Definition at line 971 of file cms_sd.c.

CMS_ContentInfo* CMS_compress ( BIO in,
int  comp_nid,
unsigned int  flags 
)

Definition at line 844 of file cms_smime.c.

int CMS_data ( CMS_ContentInfo cms,
BIO out,
unsigned int  flags 
)

Definition at line 150 of file cms_smime.c.

CMS_ContentInfo* CMS_data_create ( BIO in,
unsigned int  flags 
)

Definition at line 167 of file cms_smime.c.

int CMS_dataFinal ( CMS_ContentInfo cms,
BIO bio 
)

Definition at line 158 of file cms_lib.c.

BIO* CMS_dataInit ( CMS_ContentInfo cms,
BIO icont 
)

Definition at line 105 of file cms_lib.c.

int CMS_decrypt ( CMS_ContentInfo cms,
EVP_PKEY pkey,
X509 cert,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 732 of file cms_smime.c.

int CMS_decrypt_set1_key ( CMS_ContentInfo cms,
unsigned char *  key,
size_t  keylen,
unsigned char *  id,
size_t  idlen 
)

Definition at line 669 of file cms_smime.c.

int CMS_decrypt_set1_password ( CMS_ContentInfo cms,
unsigned char *  pass,
ossl_ssize_t  passlen 
)

Definition at line 708 of file cms_smime.c.

int CMS_decrypt_set1_pkey ( CMS_ContentInfo cms,
EVP_PKEY pk,
X509 cert 
)

Definition at line 609 of file cms_smime.c.

CMS_ContentInfo* CMS_digest_create ( BIO in,
const EVP_MD md,
unsigned int  flags 
)

Definition at line 206 of file cms_smime.c.

int CMS_digest_verify ( CMS_ContentInfo cms,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 182 of file cms_smime.c.

CMS_ContentInfo* CMS_encrypt ( STACK_OF(X509)*  certs,
BIO in,
const EVP_CIPHER cipher,
unsigned int  flags 
)

Definition at line 573 of file cms_smime.c.

int CMS_EncryptedData_decrypt ( CMS_ContentInfo cms,
const unsigned char *  key,
size_t  keylen,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 226 of file cms_smime.c.

CMS_ContentInfo* CMS_EncryptedData_encrypt ( BIO in,
const EVP_CIPHER cipher,
const unsigned char *  key,
size_t  keylen,
unsigned int  flags 
)

Definition at line 252 of file cms_smime.c.

int CMS_EncryptedData_set1_key ( CMS_ContentInfo cms,
const EVP_CIPHER ciph,
const unsigned char *  key,
size_t  keylen 
)

Definition at line 257 of file cms_enc.c.

CMS_ContentInfo* CMS_EnvelopedData_create ( const EVP_CIPHER cipher)

Definition at line 120 of file cms_env.c.

int CMS_final ( CMS_ContentInfo cms,
BIO data,
BIO dcont,
unsigned int  flags 
)

Definition at line 761 of file cms_smime.c.

ASN1_OCTET_STRING** CMS_get0_content ( CMS_ContentInfo cms)

Definition at line 209 of file cms_lib.c.

const ASN1_OBJECT* CMS_get0_eContentType ( CMS_ContentInfo cms)

Definition at line 279 of file cms_lib.c.

const ASN1_OBJECT* CMS_get0_type ( CMS_ContentInfo cms)

Definition at line 71 of file cms_lib.c.

int CMS_is_detached ( CMS_ContentInfo cms)

Definition at line 304 of file cms_lib.c.

int CMS_RecipientInfo_decrypt ( CMS_ContentInfo cms,
CMS_RecipientInfo ri 
)

Definition at line 786 of file cms_env.c.

int CMS_RecipientInfo_kekri_get0_id ( CMS_RecipientInfo ri,
X509_ALGOR **  palg,
ASN1_OCTET_STRING **  pid,
ASN1_GENERALIZEDTIME **  pdate,
ASN1_OBJECT **  potherid,
ASN1_TYPE **  pothertype 
)

Definition at line 591 of file cms_env.c.

int CMS_RecipientInfo_kekri_id_cmp ( CMS_RecipientInfo ri,
const unsigned char *  id,
size_t  idlen 
)

Definition at line 441 of file cms_env.c.

int CMS_RecipientInfo_ktri_cert_cmp ( CMS_RecipientInfo ri,
X509 cert 
)

Definition at line 275 of file cms_env.c.

int CMS_RecipientInfo_ktri_get0_algs ( CMS_RecipientInfo ri,
EVP_PKEY **  pk,
X509 **  recip,
X509_ALGOR **  palg 
)

Definition at line 235 of file cms_env.c.

int CMS_RecipientInfo_ktri_get0_signer_id ( CMS_RecipientInfo ri,
ASN1_OCTET_STRING **  keyid,
X509_NAME **  issuer,
ASN1_INTEGER **  sno 
)

Definition at line 258 of file cms_env.c.

int CMS_RecipientInfo_set0_key ( CMS_RecipientInfo ri,
unsigned char *  key,
size_t  keylen 
)

Definition at line 628 of file cms_env.c.

int CMS_RecipientInfo_set0_password ( CMS_RecipientInfo ri,
unsigned char *  pass,
ossl_ssize_t  passlen 
)

Definition at line 65 of file cms_pwri.c.

int CMS_RecipientInfo_set0_pkey ( CMS_RecipientInfo ri,
EVP_PKEY pkey 
)

Definition at line 286 of file cms_env.c.

int CMS_RecipientInfo_type ( CMS_RecipientInfo ri)

Definition at line 115 of file cms_env.c.

int CMS_set1_eContentType ( CMS_ContentInfo cms,
const ASN1_OBJECT oid 
)

Definition at line 288 of file cms_lib.c.

int CMS_set1_signers_certs ( CMS_ContentInfo cms,
STACK_OF(X509)*  certs,
unsigned int  flags 
)

Definition at line 555 of file cms_sd.c.

int CMS_set_detached ( CMS_ContentInfo cms,
int  detached 
)

Definition at line 315 of file cms_lib.c.

CMS_ContentInfo* CMS_sign ( X509 signcert,
EVP_PKEY pkey,
STACK_OF(X509)*  certs,
BIO data,
unsigned int  flags 
)

Definition at line 460 of file cms_smime.c.

CMS_ContentInfo* CMS_sign_receipt ( CMS_SignerInfo si,
X509 signcert,
EVP_PKEY pkey,
STACK_OF(X509)*  certs,
unsigned int  flags 
)

Definition at line 501 of file cms_smime.c.

int CMS_signed_add1_attr ( CMS_SignerInfo si,
X509_ATTRIBUTE attr 
)

Definition at line 90 of file cms_att.c.

int CMS_signed_add1_attr_by_NID ( CMS_SignerInfo si,
int  nid,
int  type,
const void bytes,
int  len 
)

Definition at line 105 of file cms_att.c.

int CMS_signed_add1_attr_by_OBJ ( CMS_SignerInfo si,
const ASN1_OBJECT obj,
int  type,
const void bytes,
int  len 
)

Definition at line 96 of file cms_att.c.

int CMS_signed_add1_attr_by_txt ( CMS_SignerInfo si,
const char *  attrname,
int  type,
const void bytes,
int  len 
)

Definition at line 114 of file cms_att.c.

X509_ATTRIBUTE* CMS_signed_delete_attr ( CMS_SignerInfo si,
int  loc 
)

Definition at line 85 of file cms_att.c.

void* CMS_signed_get0_data_by_OBJ ( CMS_SignerInfo si,
ASN1_OBJECT oid,
int  lastpos,
int  type 
)

Definition at line 123 of file cms_att.c.

X509_ATTRIBUTE* CMS_signed_get_attr ( const CMS_SignerInfo si,
int  loc 
)

Definition at line 80 of file cms_att.c.

int CMS_signed_get_attr_by_NID ( const CMS_SignerInfo si,
int  nid,
int  lastpos 
)

Definition at line 68 of file cms_att.c.

int CMS_signed_get_attr_by_OBJ ( const CMS_SignerInfo si,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 74 of file cms_att.c.

int CMS_signed_get_attr_count ( const CMS_SignerInfo si)

Definition at line 63 of file cms_att.c.

int CMS_SignedData_init ( CMS_ContentInfo cms)

Definition at line 100 of file cms_sd.c.

int CMS_SignerInfo_cert_cmp ( CMS_SignerInfo si,
X509 cert 
)

Definition at line 550 of file cms_sd.c.

void CMS_SignerInfo_get0_algs ( CMS_SignerInfo si,
EVP_PKEY **  pk,
X509 **  signer,
X509_ALGOR **  pdig,
X509_ALGOR **  psig 
)

Definition at line 606 of file cms_sd.c.

int CMS_SignerInfo_get0_signer_id ( CMS_SignerInfo si,
ASN1_OCTET_STRING **  keyid,
X509_NAME **  issuer,
ASN1_INTEGER **  sno 
)

Definition at line 543 of file cms_sd.c.

void CMS_SignerInfo_set1_signer_cert ( CMS_SignerInfo si,
X509 signer 
)

Definition at line 529 of file cms_sd.c.

int CMS_SignerInfo_sign ( CMS_SignerInfo si)

Definition at line 702 of file cms_sd.c.

int CMS_SignerInfo_verify ( CMS_SignerInfo si)

Definition at line 769 of file cms_sd.c.

int CMS_SignerInfo_verify_content ( CMS_SignerInfo si,
BIO chain 
)

Definition at line 842 of file cms_sd.c.

int CMS_stream ( unsigned char ***  boundary,
CMS_ContentInfo cms 
)

Definition at line 61 of file cms_io.c.

int CMS_uncompress ( CMS_ContentInfo cms,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 837 of file cms_smime.c.

int CMS_unsigned_add1_attr ( CMS_SignerInfo si,
X509_ATTRIBUTE attr 
)

Definition at line 156 of file cms_att.c.

int CMS_unsigned_add1_attr_by_NID ( CMS_SignerInfo si,
int  nid,
int  type,
const void bytes,
int  len 
)

Definition at line 171 of file cms_att.c.

int CMS_unsigned_add1_attr_by_OBJ ( CMS_SignerInfo si,
const ASN1_OBJECT obj,
int  type,
const void bytes,
int  len 
)

Definition at line 162 of file cms_att.c.

int CMS_unsigned_add1_attr_by_txt ( CMS_SignerInfo si,
const char *  attrname,
int  type,
const void bytes,
int  len 
)

Definition at line 180 of file cms_att.c.

X509_ATTRIBUTE* CMS_unsigned_delete_attr ( CMS_SignerInfo si,
int  loc 
)

Definition at line 151 of file cms_att.c.

void* CMS_unsigned_get0_data_by_OBJ ( CMS_SignerInfo si,
ASN1_OBJECT oid,
int  lastpos,
int  type 
)

Definition at line 189 of file cms_att.c.

X509_ATTRIBUTE* CMS_unsigned_get_attr ( const CMS_SignerInfo si,
int  loc 
)

Definition at line 146 of file cms_att.c.

int CMS_unsigned_get_attr_by_NID ( const CMS_SignerInfo si,
int  nid,
int  lastpos 
)

Definition at line 134 of file cms_att.c.

int CMS_unsigned_get_attr_by_OBJ ( const CMS_SignerInfo si,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 140 of file cms_att.c.

int CMS_unsigned_get_attr_count ( const CMS_SignerInfo si)

Definition at line 129 of file cms_att.c.

int CMS_verify ( CMS_ContentInfo cms,
STACK_OF(X509)*  certs,
X509_STORE store,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 316 of file cms_smime.c.

int CMS_verify_receipt ( CMS_ContentInfo rcms,
CMS_ContentInfo ocms,
STACK_OF(X509)*  certs,
X509_STORE store,
unsigned int  flags 
)

Definition at line 448 of file cms_smime.c.

CMS_ContentInfo* d2i_CMS_bio ( BIO bp,
CMS_ContentInfo **  cms 
)

Definition at line 80 of file cms_io.c.

void ERR_load_CMS_strings ( void  )

Definition at line 235 of file cms_err.c.

int i2d_CMS_bio ( BIO bp,
CMS_ContentInfo cms 
)

Definition at line 85 of file cms_io.c.

int i2d_CMS_bio_stream ( BIO out,
CMS_ContentInfo cms,
BIO in,
int  flags 
)

Definition at line 100 of file cms_io.c.

int PEM_write_bio_CMS_stream ( BIO out,
CMS_ContentInfo cms,
BIO in,
int  flags 
)

Definition at line 106 of file cms_io.c.

CMS_ContentInfo* SMIME_read_CMS ( BIO bio,
BIO **  bcont 
)

Definition at line 128 of file cms_io.c.

int SMIME_write_CMS ( BIO bio,
CMS_ContentInfo cms,
BIO data,
int  flags 
)

Definition at line 113 of file cms_io.c.

STACK_OF ( X509  )

Definition at line 1214 of file apps.c.

STACK_OF ( CMS_RecipientInfo  )

Definition at line 106 of file cms_env.c.

STACK_OF ( X509_CRL  )

Definition at line 1223 of file apps.c.

STACK_OF ( CMS_SignerInfo  )

Definition at line 492 of file cms_sd.c.