Lines Matching refs:cms

26 static void receipt_request_print(CMS_ContentInfo *cms);
284 CMS_ContentInfo *cms = NULL, *rcms = NULL; in cms_main() local
917 cms = load_content_info(informat, in, flags, &indata, "SMIME"); in cms_main()
918 if (cms == NULL) in cms_main()
929 allcerts = CMS_get1_certs(cms); 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()
978 cms = CMS_encrypt_ex(NULL, in, cipher, flags, libctx, app_get0_propq()); in cms_main()
979 if (cms == NULL) in cms_main()
995 ri = CMS_add1_recipient(cms, x, key, originator, tflags); in cms_main()
1021 if (!CMS_add0_recipient_key(cms, NID_undef, in cms_main()
1034 if (CMS_add0_recipient_password(cms, in cms_main()
1041 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1045 cms = CMS_EncryptedData_encrypt_ex(in, cipher, secret_key, in cms_main()
1052 sis = CMS_get0_SignerInfos(cms); in cms_main()
1059 CMS_ContentInfo_free(cms); in cms_main()
1060 cms = srcms; in cms_main()
1074 cms = CMS_sign_ex(NULL, NULL, other, in, flags, libctx, app_get0_propq()); in cms_main()
1075 if (cms == NULL) in cms_main()
1078 CMS_set1_eContentType(cms, econtent_type); in cms_main()
1113 si = CMS_add1_signer(cms, signer, key, sign_md, tflags); in cms_main()
1133 if (!CMS_final_digest(cms, digestbin, digestlen, NULL, flags)) in cms_main()
1136 if (!CMS_final(cms, in, NULL, flags)) in cms_main()
1141 if (cms == NULL) { in cms_main()
1149 CMS_decrypt(cms, NULL, NULL, NULL, NULL, flags); in cms_main()
1152 if (!CMS_decrypt_set1_key(cms, in cms_main()
1161 if (!CMS_decrypt_set1_pkey_and_peer(cms, key, recip, originator)) { in cms_main()
1168 if (!CMS_decrypt_set1_password(cms, pwri_pass, -1)) { 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()
1192 if (!CMS_EncryptedData_decrypt(cms, secret_key, secret_keylen, in cms_main()
1196 if (CMS_verify(cms, other, store, indata, out, flags) > 0) { in cms_main()
1207 STACK_OF(X509) *signers = CMS_get0_signers(cms); in cms_main()
1218 receipt_request_print(cms); in cms_main()
1221 if (CMS_verify_receipt(rcms, cms, other, store, flags) > 0) { in cms_main()
1239 CMS_ContentInfo_print_ctx(out, cms, 0, pctx); 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()
1297 CMS_ContentInfo_free(cms); in cms_main()
1363 static void receipt_request_print(CMS_ContentInfo *cms) in receipt_request_print() argument
1372 sis = CMS_get0_SignerInfos(cms); in receipt_request_print()