Home
last modified time | relevance | path

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

12

/freebsd-9-stable/crypto/openssl/crypto/cms/
Dcms_smime.c115 static int check_content(CMS_ContentInfo *cms) in check_content() argument
117 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in check_content()
139 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data() argument
143 if (OBJ_obj2nid(CMS_get0_type(cms)) != NID_pkcs7_data) { in CMS_data()
147 cont = CMS_dataInit(cms, NULL); in CMS_data()
157 CMS_ContentInfo *cms; in CMS_data_create() local
158 cms = cms_Data_create(); in CMS_data_create()
159 if (!cms) in CMS_data_create()
162 if (CMS_final(cms, in, NULL, flags)) in CMS_data_create()
163 return cms; in CMS_data_create()
[all …]
Dcms_lib.c71 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms) in DECLARE_ASN1_ITEM()
73 return cms->contentType; in DECLARE_ASN1_ITEM()
78 CMS_ContentInfo *cms; in cms_Data_create() local
79 cms = CMS_ContentInfo_new(); in cms_Data_create()
80 if (cms) { in cms_Data_create()
81 cms->contentType = OBJ_nid2obj(NID_pkcs7_data); in cms_Data_create()
83 CMS_set_detached(cms, 0); in cms_Data_create()
85 return cms; in cms_Data_create()
88 BIO *cms_content_bio(CMS_ContentInfo *cms) in cms_content_bio() argument
90 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in cms_content_bio()
[all …]
Dcms.h114 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms);
116 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
117 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
119 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);
120 int CMS_is_detached(CMS_ContentInfo *cms);
121 int CMS_set_detached(CMS_ContentInfo *cms, int detached);
126 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
127 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
130 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);
132 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont,
[all …]
Dcms_env.c75 static CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms) in DECLARE_ASN1_ITEM()
77 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_enveloped) { in DECLARE_ASN1_ITEM()
82 return cms->d.envelopedData; in DECLARE_ASN1_ITEM()
85 static CMS_EnvelopedData *cms_enveloped_data_init(CMS_ContentInfo *cms) in cms_enveloped_data_init() argument
87 if (cms->d.other == NULL) { in cms_enveloped_data_init()
88 cms->d.envelopedData = M_ASN1_new_of(CMS_EnvelopedData); in cms_enveloped_data_init()
89 if (!cms->d.envelopedData) { in cms_enveloped_data_init()
93 cms->d.envelopedData->version = 0; in cms_enveloped_data_init()
94 cms->d.envelopedData->encryptedContentInfo->contentType = in cms_enveloped_data_init()
96 ASN1_OBJECT_free(cms->contentType); in cms_enveloped_data_init()
[all …]
Dcms_dd.c69 CMS_ContentInfo *cms; in DECLARE_ASN1_ITEM() local
71 cms = CMS_ContentInfo_new(); in DECLARE_ASN1_ITEM()
72 if (!cms) in DECLARE_ASN1_ITEM()
80 cms->contentType = OBJ_nid2obj(NID_pkcs7_digest); in DECLARE_ASN1_ITEM()
81 cms->d.digestedData = dd; in DECLARE_ASN1_ITEM()
88 return cms; in DECLARE_ASN1_ITEM()
92 if (cms) in DECLARE_ASN1_ITEM()
93 CMS_ContentInfo_free(cms); in DECLARE_ASN1_ITEM()
98 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms) in cms_DigestedData_init_bio() argument
101 dd = cms->d.digestedData; in cms_DigestedData_init_bio()
[all …]
Dcms_io.c62 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio() argument
64 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms); in d2i_CMS_bio()
67 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() argument
69 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms); in i2d_CMS_bio()
78 CMS_ContentInfo *cms = (CMS_ContentInfo *)val; in IMPLEMENT_PEM_rw_const() local
89 cmsbio = CMS_dataInit(cms, out); in IMPLEMENT_PEM_rw_const()
98 if (CMS_dataFinal(cms, cmsbio) <= 0) in IMPLEMENT_PEM_rw_const()
117 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) in SMIME_write_CMS() argument
120 int ctype_nid = OBJ_obj2nid(cms->contentType); in SMIME_write_CMS()
121 int econt_nid = OBJ_obj2nid(CMS_get0_eContentType(cms)); in SMIME_write_CMS()
[all …]
Dcms_cd.c75 CMS_ContentInfo *cms; in DECLARE_ASN1_ITEM() local
86 cms = CMS_ContentInfo_new(); in DECLARE_ASN1_ITEM()
87 if (!cms) in DECLARE_ASN1_ITEM()
95 cms->contentType = OBJ_nid2obj(NID_id_smime_ct_compressedData); in DECLARE_ASN1_ITEM()
96 cms->d.compressedData = cd; in DECLARE_ASN1_ITEM()
105 return cms; in DECLARE_ASN1_ITEM()
109 if (cms) in DECLARE_ASN1_ITEM()
110 CMS_ContentInfo_free(cms); in DECLARE_ASN1_ITEM()
115 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) in cms_CompressedData_init_bio() argument
119 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) { in cms_CompressedData_init_bio()
[all …]
Dcms_sd.c67 static CMS_SignedData *cms_get0_signed(CMS_ContentInfo *cms) in DECLARE_ASN1_ITEM()
69 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_signed) { in DECLARE_ASN1_ITEM()
73 return cms->d.signedData; in DECLARE_ASN1_ITEM()
76 static CMS_SignedData *cms_signed_data_init(CMS_ContentInfo *cms) in cms_signed_data_init() argument
78 if (cms->d.other == NULL) { in cms_signed_data_init()
79 cms->d.signedData = M_ASN1_new_of(CMS_SignedData); in cms_signed_data_init()
80 if (!cms->d.signedData) { in cms_signed_data_init()
84 cms->d.signedData->version = 1; in cms_signed_data_init()
85 cms->d.signedData->encapContentInfo->eContentType = in cms_signed_data_init()
87 cms->d.signedData->encapContentInfo->partial = 1; in cms_signed_data_init()
[all …]
Dcms_enc.c230 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument
239 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData); in CMS_EncryptedData_set1_key()
240 if (!cms->d.encryptedData) { in CMS_EncryptedData_set1_key()
244 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key()
245 cms->d.encryptedData->version = 0; in CMS_EncryptedData_set1_key()
246 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) { in CMS_EncryptedData_set1_key()
250 ec = cms->d.encryptedData->encryptedContentInfo; in CMS_EncryptedData_set1_key()
254 BIO *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()
Dcms_lcl.h391 BIO *cms_content_bio(CMS_ContentInfo *cms);
396 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms);
397 int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify);
399 BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms);
400 int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain);
410 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms);
418 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms);
423 int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);
427 BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
DMakefile5 DIR= cms
27 EXHEADER= cms.h
95 cms_asn1.o: cms.h cms_asn1.c cms_lcl.h
110 cms_att.o: cms.h cms_att.c cms_lcl.h
112 cms_err.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h
136 cms_io.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h cms.h
150 cms_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h cms.h
154 cms_sd.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h
170 cms_smime.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h
Dcms_ess.c223 int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms) in cms_Receipt_verify() argument
237 sis = CMS_get0_SignerInfos(cms); in cms_Receipt_verify()
247 if (OBJ_obj2nid(CMS_get0_eContentType(cms)) != NID_id_smime_ct_receipt) { in cms_Receipt_verify()
253 pcont = CMS_get0_content(cms); in cms_Receipt_verify()
/freebsd-9-stable/crypto/heimdal/lib/hx509/
Dtest_cms.in52 ${hxtool} cms-create-sd \
58 ${hxtool} cms-verify-sd \
65 ${hxtool} cms-create-sd \
72 ${hxtool} cms-verify-sd \
79 ${hxtool} cms-verify-sd \
86 ${hxtool} cms-create-sd \
93 ${hxtool} cms-verify-sd \
100 ${hxtool} cms-create-sd \
106 ${hxtool} cms-verify-sd \
113 ${hxtool} cms-create-sd \
[all …]
Dhxtool-commands.in36 name = "cms-create-sd"
107 name = "cms-verify-sd"
148 name = "cms-unenvelope"
172 name = "cms-envelope"
Dtest_ca.in295 ${hxtool} cms-create-sd \
301 ${hxtool} cms-verify-sd \
Dhx509_err.et40 # cms related errors
DMakefile.in114 libhx509_la-cms.lo libhx509_la-collector.lo \
455 cms.c \
797 libhx509_la-cms.lo: cms.c
798 …(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libhx509_la-cms.lo `test -f 'cms.c' || echo '$(srcdir)/'`c…
/freebsd-9-stable/crypto/openssl/apps/
Dcms.c74 static void receipt_request_print(BIO *out, CMS_ContentInfo *cms);
114 CMS_ContentInfo *cms = NULL, *rcms = NULL; in MAIN() local
701 cms = SMIME_read_CMS(in, &indata); in MAIN()
703 cms = PEM_read_bio_CMS(in, NULL, NULL, NULL); in MAIN()
705 cms = d2i_CMS_bio(in, NULL); in MAIN()
711 if (!cms) { in MAIN()
724 allcerts = CMS_get1_certs(cms); in MAIN()
785 cms = CMS_data_create(in, flags); in MAIN()
787 cms = CMS_digest_create(in, sign_md, flags); in MAIN()
789 cms = CMS_compress(in, -1, flags); in MAIN()
[all …]
DMakefile41 s_time version pkcs7 cms crl2pkcs7 sess_id ciphers nseq pkcs12 \
59 ocsp.o prime.o cms.o
67 ocsp.c prime.c cms.c
263 cms.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
264 cms.o: ../include/openssl/buffer.h ../include/openssl/conf.h
265 cms.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
266 cms.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
267 cms.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
268 cms.o: ../include/openssl/evp.h ../include/openssl/fips.h
269 cms.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
[all …]
/freebsd-9-stable/crypto/openssl/crypto/err/
Dopenssl.ec35 L CMS crypto/cms/cms.h crypto/cms/cms_err.c
41 L NONE crypto/cms/cms_lcl.h NONE
/freebsd-9-stable/sys/mips/nlm/
Dfiles.xlp7 mips/nlm/cms.c standard
/freebsd-9-stable/secure/usr.bin/openssl/
DMakefile15 SRCS+= app_rand.c apps.c asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c \
/freebsd-9-stable/crypto/heimdal/lib/asn1/
Dpkcs12.asn17 IMPORTS ContentInfo FROM cms
Dpkinit.asn16 IssuerAndSerialNumber, ContentInfo FROM cms
/freebsd-9-stable/kerberos5/lib/libhx509/
DMakefile16 cms.c \

12