Lines Matching refs:flags

20 static BIO *cms_get_text_bio(BIO *out, unsigned int flags)  in cms_get_text_bio()  argument
26 else if (flags & CMS_TEXT) { in cms_get_text_bio()
34 static int cms_copy_content(BIO *out, BIO *in, unsigned int flags) in cms_copy_content() argument
40 tmpout = cms_get_text_bio(out, flags); in cms_copy_content()
64 if (flags & CMS_TEXT) { in cms_copy_content()
105 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data() argument
117 r = cms_copy_content(out, cont, flags); in CMS_data()
122 CMS_ContentInfo *CMS_data_create_ex(BIO *in, unsigned int flags, in CMS_data_create_ex() argument
130 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_data_create_ex()
137 CMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags) in CMS_data_create() argument
139 return CMS_data_create_ex(in, flags, NULL, NULL); in CMS_data_create()
143 unsigned int flags) in CMS_digest_verify() argument
160 r = cms_copy_content(out, cont, flags); in CMS_digest_verify()
168 unsigned int flags, OSSL_LIB_CTX *ctx, in CMS_digest_create_ex() argument
183 if (!(flags & CMS_DETACHED)) in CMS_digest_create_ex()
186 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_digest_create_ex()
194 unsigned int flags) in CMS_digest_create() argument
196 return CMS_digest_create_ex(in, md, flags, NULL, NULL); in CMS_digest_create()
201 BIO *dcont, BIO *out, unsigned int flags) in CMS_EncryptedData_decrypt() argument
219 r = cms_copy_content(out, cont, flags); in CMS_EncryptedData_decrypt()
226 size_t keylen, unsigned int flags, in CMS_EncryptedData_encrypt_ex() argument
242 if (!(flags & CMS_DETACHED)) in CMS_EncryptedData_encrypt_ex()
245 if ((flags & (CMS_STREAM | CMS_PARTIAL)) in CMS_EncryptedData_encrypt_ex()
246 || CMS_final(cms, in, NULL, flags)) in CMS_EncryptedData_encrypt_ex()
256 size_t keylen, unsigned int flags) in CMS_EncryptedData_encrypt() argument
258 return CMS_EncryptedData_encrypt_ex(in, cipher, key, keylen, flags, NULL, in CMS_EncryptedData_encrypt()
308 X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags) in CMS_verify() argument
318 int cadesVerify = (flags & CMS_CADES) != 0; in CMS_verify()
323 if (dcont != NULL && !(flags & CMS_BINARY)) { in CMS_verify()
327 flags |= CMS_ASCIICRLF; in CMS_verify()
347 scount += CMS_set1_signers_certs(cms, certs, flags); in CMS_verify()
357 if ((flags & CMS_NO_SIGNER_CERT_VERIFY) == 0 || cadesVerify) { in CMS_verify()
372 if ((flags & CMS_NOCRL) == 0 in CMS_verify()
387 if ((flags & CMS_NO_ATTR_VERIFY) == 0 || cadesVerify) { in CMS_verify()
427 if (!(flags & SMIME_BINARY) && dcont) { in CMS_verify()
432 tmpout = cms_get_text_bio(out, flags); in CMS_verify()
444 if (!SMIME_crlf_copy(dcont, cmsbio, flags & ~SMIME_TEXT)) in CMS_verify()
447 if (flags & CMS_TEXT) { in CMS_verify()
458 if (!cms_copy_content(out, cmsbio, flags)) in CMS_verify()
462 if (!(flags & CMS_NO_CONTENT_VERIFY)) { in CMS_verify()
474 if (!(flags & SMIME_BINARY) && dcont) { in CMS_verify()
502 X509_STORE *store, unsigned int flags) in CMS_verify_receipt() argument
506 flags &= ~(CMS_DETACHED | CMS_TEXT); in CMS_verify_receipt()
507 r = CMS_verify(rcms, certs, store, NULL, NULL, flags); in CMS_verify_receipt()
515 unsigned int flags, OSSL_LIB_CTX *libctx, in CMS_sign_ex() argument
526 if (flags & CMS_ASCIICRLF in CMS_sign_ex()
533 if (pkey != NULL && !CMS_add1_signer(cms, signcert, pkey, NULL, flags)) { in CMS_sign_ex()
547 if (!(flags & CMS_DETACHED)) in CMS_sign_ex()
550 if ((flags & (CMS_STREAM | CMS_PARTIAL)) in CMS_sign_ex()
551 || CMS_final(cms, data, NULL, flags)) in CMS_sign_ex()
562 BIO *data, unsigned int flags) in CMS_sign() argument
564 return CMS_sign_ex(signcert, pkey, certs, data, flags, NULL, NULL); in CMS_sign()
569 STACK_OF(X509) *certs, unsigned int flags) in CMS_sign_receipt() argument
578 flags &= ~(CMS_STREAM | CMS_TEXT); in CMS_sign_receipt()
580 flags |= CMS_PARTIAL | CMS_BINARY | CMS_DETACHED; in CMS_sign_receipt()
588 cms = CMS_sign_ex(NULL, NULL, certs, NULL, flags, in CMS_sign_receipt()
598 rct_si = CMS_add1_signer(cms, signcert, pkey, NULL, flags); in CMS_sign_receipt()
619 if (!CMS_final(cms, rct_cont, NULL, flags)) in CMS_sign_receipt()
641 const EVP_CIPHER *cipher, unsigned int flags, in CMS_encrypt_ex() argument
658 if (!CMS_add1_recipient_cert(cms, recip, flags)) { in CMS_encrypt_ex()
664 if (!(flags & CMS_DETACHED)) in CMS_encrypt_ex()
667 if ((flags & (CMS_STREAM | CMS_PARTIAL)) in CMS_encrypt_ex()
668 || CMS_final(cms, data, NULL, flags)) in CMS_encrypt_ex()
679 const EVP_CIPHER *cipher, unsigned int flags) in CMS_encrypt() argument
681 return CMS_encrypt_ex(certs, data, cipher, flags, NULL, NULL); in CMS_encrypt()
871 BIO *dcont, BIO *out, unsigned int flags) in CMS_decrypt() argument
886 ec->debug = (flags & CMS_DEBUG_DECRYPT) != 0; in CMS_decrypt()
895 r = cms_copy_content(out, cont, flags); in CMS_decrypt()
900 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags) in CMS_final() argument
910 if (!SMIME_crlf_copy(data, cmsbio, flags)) { in CMS_final()
932 BIO *dcont, unsigned int flags) in CMS_final_digest() argument
958 unsigned int flags) in CMS_uncompress() argument
974 r = cms_copy_content(out, cont, flags); in CMS_uncompress()
979 CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags) in CMS_compress() argument
989 if (!(flags & CMS_DETACHED)) in CMS_compress()
992 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_compress()
1002 unsigned int flags) in CMS_uncompress() argument
1008 CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags) in CMS_compress() argument