Home
last modified time | relevance | path

Searched refs:cms (Results 1 – 23 of 23) sorted by relevance

/dflybsd-src/crypto/libressl/crypto/cms/
H A Dcms_smime.c128 check_content(CMS_ContentInfo *cms) in check_content() argument
130 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in check_content()
156 CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data() argument
161 if (OBJ_obj2nid(CMS_get0_type(cms)) != NID_pkcs7_data) { in CMS_data()
165 cont = CMS_dataInit(cms, NULL); in CMS_data()
177 CMS_ContentInfo *cms; in CMS_data_create() local
179 cms = cms_Data_create(); in CMS_data_create()
180 if (!cms) in CMS_data_create()
183 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_data_create()
184 return cms; in CMS_data_create()
[all …]
H A Dcms_lib.c99 CMS_get0_type(const CMS_ContentInfo *cms) in CMS_get0_type() argument
101 return cms->contentType; in CMS_get0_type()
107 CMS_ContentInfo *cms; in cms_Data_create() local
109 cms = CMS_ContentInfo_new(); in cms_Data_create()
110 if (cms != NULL) { in cms_Data_create()
111 cms->contentType = OBJ_nid2obj(NID_pkcs7_data); in cms_Data_create()
113 CMS_set_detached(cms, 0); in cms_Data_create()
115 return cms; in cms_Data_create()
119 cms_content_bio(CMS_ContentInfo *cms) in cms_content_bio() argument
121 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in cms_content_bio()
[all …]
H A Dcms_io.c63 CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) in CMS_stream() argument
67 pos = CMS_get0_content(cms); in CMS_stream()
83 d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio() argument
85 return ASN1_item_d2i_bio(&CMS_ContentInfo_it, bp, cms); in d2i_CMS_bio()
89 i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() argument
91 return ASN1_item_i2d_bio(&CMS_ContentInfo_it, bp, cms); in i2d_CMS_bio()
124 BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in BIO_new_CMS() argument
126 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, in BIO_new_CMS()
132 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream() argument
134 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, in i2d_CMS_bio_stream()
[all …]
H A Dcms_env.c71 cms_get0_enveloped(CMS_ContentInfo *cms) in cms_get0_enveloped() argument
73 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_enveloped) { in cms_get0_enveloped()
77 return cms->d.envelopedData; in cms_get0_enveloped()
81 cms_enveloped_data_init(CMS_ContentInfo *cms) in cms_enveloped_data_init() argument
83 if (cms->d.other == NULL) { in cms_enveloped_data_init()
84 cms->d.envelopedData = (CMS_EnvelopedData *)ASN1_item_new(&CMS_EnvelopedData_it); in cms_enveloped_data_init()
85 if (!cms->d.envelopedData) { in cms_enveloped_data_init()
89 cms->d.envelopedData->version = 0; in cms_enveloped_data_init()
90 cms->d.envelopedData->encryptedContentInfo->contentType = in cms_enveloped_data_init()
92 ASN1_OBJECT_free(cms->contentType); in cms_enveloped_data_init()
[all …]
H A Dcms_dd.c70 CMS_ContentInfo *cms; in cms_DigestedData_create() local
73 cms = CMS_ContentInfo_new(); in cms_DigestedData_create()
74 if (cms == NULL) in cms_DigestedData_create()
82 cms->contentType = OBJ_nid2obj(NID_pkcs7_digest); in cms_DigestedData_create()
83 cms->d.digestedData = dd; in cms_DigestedData_create()
90 return cms; in cms_DigestedData_create()
93 CMS_ContentInfo_free(cms); in cms_DigestedData_create()
99 cms_DigestedData_init_bio(CMS_ContentInfo *cms) in cms_DigestedData_init_bio() argument
103 dd = cms->d.digestedData; in cms_DigestedData_init_bio()
109 cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify) in cms_DigestedData_do_final() argument
[all …]
H A Dcms_cd.c72 CMS_ContentInfo *cms; in cms_CompressedData_create() local
83 cms = CMS_ContentInfo_new(); in cms_CompressedData_create()
84 if (cms == NULL) in cms_CompressedData_create()
92 cms->contentType = OBJ_nid2obj(NID_id_smime_ct_compressedData); in cms_CompressedData_create()
93 cms->d.compressedData = cd; in cms_CompressedData_create()
102 return cms; in cms_CompressedData_create()
105 CMS_ContentInfo_free(cms); in cms_CompressedData_create()
110 cms_CompressedData_init_bio(CMS_ContentInfo *cms) in cms_CompressedData_init_bio() argument
115 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) { in cms_CompressedData_init_bio()
119 cd = cms->d.compressedData; in cms_CompressedData_init_bio()
H A Dcms_sd.c71 cms_get0_signed(CMS_ContentInfo *cms) in cms_get0_signed() argument
73 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_signed) { in cms_get0_signed()
77 return cms->d.signedData; in cms_get0_signed()
81 cms_signed_data_init(CMS_ContentInfo *cms) in cms_signed_data_init() argument
83 if (cms->d.other == NULL) { in cms_signed_data_init()
84 cms->d.signedData = (CMS_SignedData *)ASN1_item_new(&CMS_SignedData_it); in cms_signed_data_init()
85 if (!cms->d.signedData) { in cms_signed_data_init()
89 cms->d.signedData->version = 1; in cms_signed_data_init()
90 cms->d.signedData->encapContentInfo->eContentType = in cms_signed_data_init()
92 cms->d.signedData->encapContentInfo->partial = 1; in cms_signed_data_init()
[all …]
H A Dcms_enc.c227 CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument
237 cms->d.encryptedData = (CMS_EncryptedData *)ASN1_item_new(&CMS_EncryptedData_it); in CMS_EncryptedData_set1_key()
238 if (!cms->d.encryptedData) { in CMS_EncryptedData_set1_key()
242 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key()
243 cms->d.encryptedData->version = 0; in CMS_EncryptedData_set1_key()
244 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) { in CMS_EncryptedData_set1_key()
248 ec = cms->d.encryptedData->encryptedContentInfo; in CMS_EncryptedData_set1_key()
254 cms_EncryptedData_init_bio(CMS_ContentInfo *cms) in cms_EncryptedData_init_bio() argument
256 CMS_EncryptedData *enc = cms->d.encryptedData; in cms_EncryptedData_init_bio()
H A Dcms_lcl.h418 BIO *cms_content_bio(CMS_ContentInfo *cms);
423 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms);
424 int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify);
426 BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms);
427 int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain);
434 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms);
446 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms);
450 int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);
454 BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
455 CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms);
[all …]
H A Dcms_ess.c243 cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms) in cms_Receipt_verify() argument
257 sis = CMS_get0_SignerInfos(cms); in cms_Receipt_verify()
267 if (OBJ_obj2nid(CMS_get0_eContentType(cms)) != NID_id_smime_ct_receipt) { in cms_Receipt_verify()
273 pcont = CMS_get0_content(cms); in cms_Receipt_verify()
H A Dcms_pwri.c89 CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, in CMS_add0_recipient_password() argument
101 env = cms_get0_enveloped(cms); in CMS_add0_recipient_password()
325 cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, in cms_RecipientInfo_pwri_crypt() argument
337 ec = cms->d.envelopedData->encryptedContentInfo; in cms_RecipientInfo_pwri_crypt()
H A Dcms_kari.c283 CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, in CMS_RecipientInfo_kari_decrypt() argument
300 ec = cms->d.envelopedData->encryptedContentInfo; in CMS_RecipientInfo_kari_decrypt()
437 cms_RecipientInfo_kari_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri) in cms_RecipientInfo_kari_encrypt() argument
451 ec = cms->d.envelopedData->encryptedContentInfo; in cms_RecipientInfo_kari_encrypt()
H A Dcms_asn1.c1337 CMS_ContentInfo *cms = NULL; in cms_cb() local
1339 cms = (CMS_ContentInfo *)*pval; in cms_cb()
1345 if (CMS_stream(&sarg->boundary, cms) <= 0) in cms_cb()
1349 sarg->ndef_bio = CMS_dataInit(cms, sarg->out); in cms_cb()
1356 if (CMS_dataFinal(cms, sarg->ndef_bio) <= 0) in cms_cb()
/dflybsd-src/crypto/libressl/include/openssl/
H A Dcms.h129 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);
131 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
132 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
134 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);
135 int CMS_is_detached(CMS_ContentInfo *cms);
136 int CMS_set_detached(CMS_ContentInfo *cms, int detached);
146 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms);
147 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
148 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
150 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
[all …]
/dflybsd-src/crypto/libressl/apps/openssl/
H A Dcms.c73 static void receipt_request_print(BIO *out, CMS_ContentInfo *cms);
1157 CMS_ContentInfo *cms = NULL, *rcms = NULL; in cms_main() local
1368 cms = SMIME_read_CMS(in, &indata); in cms_main()
1370 cms = PEM_read_bio_CMS(in, NULL, NULL, NULL); in cms_main()
1372 cms = d2i_CMS_bio(in, NULL); in cms_main()
1378 if (cms == NULL) { in cms_main()
1394 if ((allcerts = CMS_get1_certs(cms)) == NULL) in cms_main()
1456 cms = CMS_data_create(in, cms_config.flags); in cms_main()
1458 cms = CMS_digest_create(in, cms_config.sign_md, in cms_main()
1461 cms = CMS_compress(in, -1, cms_config.flags); in cms_main()
[all …]
/dflybsd-src/test/testcases/io/sendfd_1/
H A Dsendfd_1.c39 char cms[CMSG_SPACE(sizeof(int))]; in sendfd() local
48 msg.msg_control = (caddr_t)cms; in sendfd()
71 char cms[CMSG_SPACE(sizeof(int))]; in recvfd() local
82 msg.msg_control = (caddr_t)cms; in recvfd()
83 msg.msg_controllen = sizeof cms; in recvfd()
/dflybsd-src/test/socket/recvmsg/cloexec/
H A Drecvmsg_cloexec.c75 char cms[CMSG_SPACE(sizeof(int))]; in sendfd() local
84 msg.msg_control = (caddr_t)cms; in sendfd()
107 char cms[CMSG_SPACE(sizeof(int))]; in recvfd() local
118 msg.msg_control = (caddr_t)cms; in recvfd()
119 msg.msg_controllen = sizeof cms; in recvfd()
/dflybsd-src/usr.bin/openssl/
H A DMakefile16 SRCS= apps_posix.c apps.c asn1pars.c ca.c certhash.c ciphers.c cms.c \
/dflybsd-src/lib/libressl/
H A DMakefile31 INCS= bytestring.h cms.h dtls1.h srtp.h ssl.h ssl2.h ssl23.h ssl3.h tls1.h
/dflybsd-src/lib/librecrypto/
H A DMakefile28 CFLAGS+= -I${LCRYPTO_SRC}/ecdh -I${LCRYPTO_SRC}/cms
271 ${LCRYPTO_SRC}/cms \
/dflybsd-src/contrib/file/magic/Magdir/
H A Dole2compounddocs87 # https://wikileaks.org/ciav7p1/cms/page_13762814.html
/dflybsd-src/crypto/libressl/
H A DChangeLog191 - Fix NULL dereferences in openssl(1) cms option parsing.
366 - The openssl(1) cms and smime subcommands option handling was
1326 * Added cms subcommand to openssl(1).
/dflybsd-src/
H A DMakefile_upgrade.inc3281 TO_REMOVE+=/usr/share/man/man1/cms.1.gz