Lines Matching refs:cms
26 static void receipt_request_print(CMS_ContentInfo *cms);
280 CMS_ContentInfo *cms = NULL, *rcms = NULL; in cms_main() local
894 cms = load_content_info(informat, in, flags, &indata, "SMIME"); in cms_main()
895 if (cms == NULL) in cms_main()
906 allcerts = CMS_get1_certs(cms); in cms_main()
947 cms = CMS_data_create_ex(in, flags, libctx, app_get0_propq()); in cms_main()
949 cms = CMS_digest_create_ex(in, sign_md, flags, libctx, app_get0_propq()); in cms_main()
951 cms = CMS_compress(in, -1, flags); in cms_main()
955 cms = CMS_encrypt_ex(NULL, in, cipher, flags, libctx, app_get0_propq()); in cms_main()
956 if (cms == NULL) in cms_main()
972 ri = CMS_add1_recipient(cms, x, key, originator, tflags); in cms_main()
997 if (!CMS_add0_recipient_key(cms, NID_undef, in cms_main()
1010 if (CMS_add0_recipient_password(cms, in cms_main()
1017 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1021 cms = CMS_EncryptedData_encrypt_ex(in, cipher, secret_key, in cms_main()
1028 sis = CMS_get0_SignerInfos(cms); in cms_main()
1035 CMS_ContentInfo_free(cms); in cms_main()
1036 cms = srcms; in cms_main()
1050 cms = CMS_sign_ex(NULL, NULL, other, in, flags, libctx, app_get0_propq()); in cms_main()
1051 if (cms == NULL) in cms_main()
1054 CMS_set1_eContentType(cms, econtent_type); in cms_main()
1089 si = CMS_add1_signer(cms, signer, key, sign_md, tflags); in cms_main()
1107 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1112 if (cms == NULL) { in cms_main()
1120 CMS_decrypt(cms, NULL, NULL, NULL, NULL, flags); in cms_main()
1123 if (!CMS_decrypt_set1_key(cms, in cms_main()
1132 if (!CMS_decrypt_set1_pkey_and_peer(cms, key, recip, originator)) { in cms_main()
1139 if (!CMS_decrypt_set1_password(cms, pwri_pass, -1)) { in cms_main()
1145 if (!CMS_decrypt(cms, NULL, NULL, indata, out, flags)) { in cms_main()
1150 if (!CMS_data(cms, out, flags)) in cms_main()
1153 if (!CMS_uncompress(cms, indata, out, flags)) in cms_main()
1156 if (CMS_digest_verify(cms, indata, out, flags) > 0) { in cms_main()
1163 if (!CMS_EncryptedData_decrypt(cms, secret_key, secret_keylen, in cms_main()
1167 if (CMS_verify(cms, other, store, indata, out, flags) > 0) { in cms_main()
1178 STACK_OF(X509) *signers = CMS_get0_signers(cms); in cms_main()
1189 receipt_request_print(cms); in cms_main()
1192 if (CMS_verify_receipt(rcms, cms, other, store, flags) > 0) { in cms_main()
1210 CMS_ContentInfo_print_ctx(out, cms, 0, pctx); in cms_main()
1221 ret = SMIME_write_CMS(out, cms, indata, flags); in cms_main()
1223 ret = SMIME_write_CMS(out, cms, in, flags); in cms_main()
1225 ret = PEM_write_bio_CMS_stream(out, cms, in, flags); in cms_main()
1227 ret = i2d_CMS_bio_stream(out, cms, in, flags); in cms_main()
1268 CMS_ContentInfo_free(cms); in cms_main()
1333 static void receipt_request_print(CMS_ContentInfo *cms) in receipt_request_print() argument
1342 sis = CMS_get0_SignerInfos(cms); in receipt_request_print()