Lines Matching refs:flags
245 static CMS_ContentInfo *load_content_info(int informat, BIO *in, int flags, in load_content_info() argument
257 ci = SMIME_read_CMS_ex(in, flags, indata, &ret); in load_content_info()
308 int flags = CMS_DETACHED, binary_files = 0; in cms_main() local
406 flags |= CMS_DEBUG_DECRYPT; in cms_main()
409 flags |= CMS_TEXT; in cms_main()
412 flags |= CMS_ASCIICRLF; in cms_main()
415 flags |= CMS_NOINTERN; in cms_main()
418 flags |= CMS_NO_SIGNER_CERT_VERIFY; in cms_main()
421 flags |= CMS_NOCERTS; in cms_main()
424 flags |= CMS_NOATTR; in cms_main()
427 flags &= ~CMS_DETACHED; in cms_main()
430 flags |= CMS_NOSMIMECAP; in cms_main()
433 flags |= CMS_BINARY; in cms_main()
436 flags |= CMS_CADES; in cms_main()
439 flags |= CMS_USE_KEYID; in cms_main()
442 flags |= CMS_NOSIGS; in cms_main()
445 flags |= CMS_NO_CONTENT_VERIFY; in cms_main()
448 flags |= CMS_NO_ATTR_VERIFY; in cms_main()
451 flags |= CMS_STREAM; in cms_main()
454 flags &= ~CMS_STREAM; in cms_main()
458 flags |= CMS_CRLFEOL; in cms_main()
737 if ((flags & CMS_CADES) != 0) { in cms_main()
738 if ((flags & CMS_NOATTR) != 0) { in cms_main()
744 && (flags & (CMS_NO_SIGNER_CERT_VERIFY | CMS_NO_ATTR_VERIFY)) != 0) { in cms_main()
800 if ((flags & CMS_DETACHED) == 0) in cms_main()
804 flags &= ~CMS_DETACHED; in cms_main()
813 if ((flags & CMS_BINARY) != 0) { in cms_main()
818 if ((operation & SMIME_SIGNERS) != 0 && (flags & CMS_DETACHED) != 0) in cms_main()
897 || (flags & CMS_DETACHED) == 0 in cms_main()
898 || (flags & CMS_STREAM) != 0) { in cms_main()
917 cms = load_content_info(informat, in, flags, &indata, "SMIME"); in cms_main()
970 cms = CMS_data_create_ex(in, flags, libctx, app_get0_propq()); in cms_main()
972 cms = CMS_digest_create_ex(in, sign_md, flags, libctx, app_get0_propq()); in cms_main()
974 cms = CMS_compress(in, -1, flags); in cms_main()
977 flags |= CMS_PARTIAL; in cms_main()
978 cms = CMS_encrypt_ex(NULL, in, cipher, flags, libctx, app_get0_propq()); in cms_main()
984 int tflags = flags | CMS_KEY_PARAM; in cms_main()
1040 if (!(flags & CMS_STREAM)) { in cms_main()
1041 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1046 secret_keylen, flags, libctx, app_get0_propq()); in cms_main()
1056 srcms = CMS_sign_receipt(si, signer, key, other, flags); in cms_main()
1069 if ((flags & CMS_DETACHED) != 0 && digestbin == NULL) { in cms_main()
1071 flags |= CMS_STREAM; in cms_main()
1073 flags |= CMS_PARTIAL; in cms_main()
1074 cms = CMS_sign_ex(NULL, NULL, other, in, flags, libctx, app_get0_propq()); in cms_main()
1087 flags |= CMS_REUSE_DIGEST; in cms_main()
1092 int tflags = flags; in cms_main()
1131 && (flags & CMS_STREAM) == 0) { in cms_main()
1133 if (!CMS_final_digest(cms, digestbin, digestlen, NULL, flags)) in cms_main()
1135 } else if (operation == SMIME_SIGN && (flags & CMS_STREAM) == 0) { in cms_main()
1136 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1148 if (flags & CMS_DEBUG_DECRYPT) in cms_main()
1149 CMS_decrypt(cms, NULL, NULL, NULL, NULL, flags); in cms_main()
1174 if (!CMS_decrypt(cms, NULL, NULL, indata, out, flags)) { in cms_main()
1179 if (!CMS_data(cms, out, flags)) in cms_main()
1182 if (!CMS_uncompress(cms, indata, out, flags)) in cms_main()
1185 if (CMS_digest_verify(cms, indata, out, flags) > 0) { in cms_main()
1193 indata, out, flags)) in cms_main()
1196 if (CMS_verify(cms, other, store, indata, out, flags) > 0) { in cms_main()
1198 (flags & CMS_CADES) != 0 ? "CAdES" : "CMS"); in cms_main()
1201 (flags & CMS_CADES) != 0 ? "CAdES" : "CMS"); in cms_main()
1221 if (CMS_verify_receipt(rcms, cms, other, store, flags) > 0) { in cms_main()
1250 ret = SMIME_write_CMS(out, cms, indata, flags); in cms_main()
1252 ret = SMIME_write_CMS(out, cms, in, flags); in cms_main()
1254 ret = PEM_write_bio_CMS_stream(out, cms, in, flags); in cms_main()
1256 ret = i2d_CMS_bio_stream(out, cms, in, flags); in cms_main()