Home
last modified time | relevance | path

Searched refs:cmp_ctx (Results 1 – 25 of 73) sorted by relevance

123

/third_party/openssl/test/
Dcmp_msg_test.c20 OSSL_CMP_CTX *cmp_ctx; member
40 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
56 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up()
57 || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1)) in set_up()
58 || !TEST_true(OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, in set_up()
90 EXECUTE_MSG_CREATION_TEST(ossl_cmp_certreq_new(fixture->cmp_ctx, in execute_certreq_create_test()
97 EXECUTE_MSG_CREATION_TEST(ossl_cmp_error_new(fixture->cmp_ctx, fixture->si, in execute_errormsg_create_test()
104 EXECUTE_MSG_CREATION_TEST(ossl_cmp_rr_new(fixture->cmp_ctx)); in execute_rr_create_test()
110 (fixture->cmp_ctx, OSSL_CMP_CERTREQID, in execute_certconf_create_test()
116 EXECUTE_MSG_CREATION_TEST(ossl_cmp_genm_new(fixture->cmp_ctx)); in execute_genm_create_test()
[all …]
Dcmp_vfy_test.c33 OSSL_CMP_CTX *cmp_ctx; member
46 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
63 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up()
64 || !OSSL_CMP_CTX_set0_trustedStore(fixture->cmp_ctx, ts) in set_up()
65 || !OSSL_CMP_CTX_set_log_cb(fixture->cmp_ctx, print_to_bio_out)) { in set_up()
111 ossl_cmp_verify_popo(fixture->cmp_ctx, fixture->msg, in execute_verify_popo_test()
136 ossl_cmp_msg_check_update(fixture->cmp_ctx, fixture->msg, in execute_validate_msg_test()
142 X509_STORE *ts = OSSL_CMP_CTX_get0_trustedStore(fixture->cmp_ctx); in execute_validate_cert_path_test()
144 OSSL_CMP_validate_cert_path(fixture->cmp_ctx, in execute_validate_cert_path_test()
147 OSSL_CMP_CTX_print_errors(fixture->cmp_ctx); in execute_validate_cert_path_test()
[all …]
Dcmp_client_test.c26 OSSL_CMP_CTX *cmp_ctx; member
50 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
73 if (!TEST_ptr(fixture->cmp_ctx = ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up()
74 || !OSSL_CMP_CTX_set_log_cb(fixture->cmp_ctx, print_to_bio_out) in set_up()
95 return TEST_int_eq(OSSL_CMP_CTX_get_status(fixt->cmp_ctx), in execute_exec_RR_ses_test()
97 && TEST_int_eq(OSSL_CMP_exec_RR_ses(fixt->cmp_ctx), in execute_exec_RR_ses_test()
99 && TEST_int_eq(OSSL_CMP_CTX_get_status(fixt->cmp_ctx), fixt->expected); in execute_exec_RR_ses_test()
104 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_GENM_ses_test_single()
121 && OSSL_CMP_CTX_reinit(fixture->cmp_ctx) in execute_exec_GENM_ses_test()
127 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_certrequest_ses_test()
[all …]
Dcmp_protect_test.c20 OSSL_CMP_CTX *cmp_ctx; member
40 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
58 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL))) { in set_up()
77 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_fails_test()
87 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_pbmac_test()
131 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_signature_test()
137 fixture->cmp_ctx->digest))); in execute_calc_protection_signature_test()
161 if (!TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, loadedprivkey)) in test_cmp_calc_protection_pkey()
175 if (!TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_cmp_calc_protection_pbmac()
187 ossl_cmp_msg_protect(fixture->cmp_ctx, fixture->msg)); in execute_MSG_protect_test()
[all …]
Dcmp_hdr_test.c19 OSSL_CMP_CTX *cmp_ctx; member
27 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
38 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(NULL, NULL))) in set_up()
81 if (!TEST_int_eq(OSSL_CMP_CTX_set1_subjectName(fixture->cmp_ctx, sender), in execute_HDR_get0_senderNonce_test()
84 if (!TEST_int_eq(ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr), in execute_HDR_get0_senderNonce_test()
88 if (!TEST_int_eq(ASN1_OCTET_STRING_cmp(fixture->cmp_ctx->senderNonce, sn), in execute_HDR_get0_senderNonce_test()
403 ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr))) in execute_HDR_init_test()
413 fixture->cmp_ctx->senderNonce))) in execute_HDR_init_test()
417 fixture->cmp_ctx->transactionID))) in execute_HDR_init_test()
421 ctx_nonce = fixture->cmp_ctx->recipNonce; in execute_HDR_init_test()
[all …]
Dcmp_server_test.c66 OSSL_CMP_CTX *cmp_ctx; in execute_test_handle_request() local
89 if (!TEST_ptr(cmp_ctx = OSSL_CMP_SRV_CTX_get0_cmp_ctx(ctx)) in execute_test_handle_request()
90 || !OSSL_CMP_CTX_set1_referenceValue(cmp_ctx, in execute_test_handle_request()
92 || !OSSL_CMP_CTX_set1_secretValue(cmp_ctx, in execute_test_handle_request()
/third_party/node/deps/openssl/openssl/apps/
Dcmp.c58 static OSSL_CMP_CTX *cmp_ctx = NULL; /* the client-side CMP context */ variable
946 OSSL_CMP_CTX_print_errors(cmp_ctx); in load_trusted()
2724 resp = OSSL_CMP_CTX_server_perform(cmp_ctx, req); in cmp_server()
2761 int status = OSSL_CMP_CTX_get_status(cmp_ctx); in print_status()
2764 OSSL_CMP_CTX_snprint_PKIStatus(cmp_ctx, buf, OSSL_CMP_PKISI_BUFLEN); in print_status()
2883 cmp_ctx = OSSL_CMP_CTX_new(app_get0_libctx(), app_get0_propq()); in cmp_main()
2884 if (cmp_ctx == NULL) in cmp_main()
2886 OSSL_CMP_CTX_set_log_verbosity(cmp_ctx, opt_verbosity); in cmp_main()
2887 if (!OSSL_CMP_CTX_set_log_cb(cmp_ctx, print_to_bio_out)) { in cmp_main()
2932 OSSL_CMP_CTX_set_transfer_cb_arg(cmp_ctx, srv_ctx); in cmp_main()
[all …]
/third_party/openssl/apps/
Dcmp.c58 static OSSL_CMP_CTX *cmp_ctx = NULL; /* the client-side CMP context */ variable
946 OSSL_CMP_CTX_print_errors(cmp_ctx); in load_trusted()
2723 resp = OSSL_CMP_CTX_server_perform(cmp_ctx, req); in cmp_server()
2760 int status = OSSL_CMP_CTX_get_status(cmp_ctx); in print_status()
2763 OSSL_CMP_CTX_snprint_PKIStatus(cmp_ctx, buf, OSSL_CMP_PKISI_BUFLEN); in print_status()
2882 cmp_ctx = OSSL_CMP_CTX_new(app_get0_libctx(), app_get0_propq()); in cmp_main()
2883 if (cmp_ctx == NULL) in cmp_main()
2885 OSSL_CMP_CTX_set_log_verbosity(cmp_ctx, opt_verbosity); in cmp_main()
2886 if (!OSSL_CMP_CTX_set_log_cb(cmp_ctx, print_to_bio_out)) { in cmp_main()
2931 OSSL_CMP_CTX_set_transfer_cb_arg(cmp_ctx, srv_ctx); in cmp_main()
[all …]
/third_party/openssl/doc/man3/
DOSSL_CMP_CTX_new.pod728 cmp_ctx = OSSL_CMP_CTX_new();
729 OSSL_CMP_CTX_set1_server(cmp_ctx, name_or_address);
730 OSSL_CMP_CTX_set1_serverPort(cmp_ctx, port_string);
731 OSSL_CMP_CTX_set1_serverPath(cmp_ctx, path_or_alias);
732 OSSL_CMP_CTX_set0_trustedStore(cmp_ctx, ts);
736 OSSL_CMP_CTX_set1_referenceValue(cmp_ctx, ref, ref_len);
737 OSSL_CMP_CTX_set1_secretValue(cmp_ctx, sec, sec_len);
741 OSSL_CMP_CTX_set1_subjectName(cmp_ctx, name);
742 OSSL_CMP_CTX_set0_newPkey(cmp_ctx, 1, initialKey);
746 initialCert = OSSL_CMP_exec_IR_ses(cmp_ctx);
[all …]
/third_party/openssl/crypto/cmp/
Dcmp_vfy.c25 static int verify_signature(const OSSL_CMP_CTX *cmp_ctx, in verify_signature() argument
33 if (!ossl_assert(cmp_ctx != NULL && msg != NULL && cert != NULL)) in verify_signature()
39 if (!cmp_ctx->ignore_keyusage in verify_signature()
56 &prot_part, NULL, pubkey, cmp_ctx->libctx, in verify_signature()
57 cmp_ctx->propq) > 0) { in verify_signature()
Dbuild.info2 SOURCE[../../libcrypto]= cmp_asn.c cmp_ctx.c cmp_err.c cmp_util.c \
/third_party/node/deps/openssl/openssl/crypto/cmp/
Dcmp_vfy.c25 static int verify_signature(const OSSL_CMP_CTX *cmp_ctx, in verify_signature() argument
33 if (!ossl_assert(cmp_ctx != NULL && msg != NULL && cert != NULL)) in verify_signature()
39 if (!cmp_ctx->ignore_keyusage in verify_signature()
56 &prot_part, NULL, pubkey, cmp_ctx->libctx, in verify_signature()
57 cmp_ctx->propq) > 0) { in verify_signature()
Dbuild.info2 SOURCE[../../libcrypto]= cmp_asn.c cmp_ctx.c cmp_err.c cmp_util.c \
/third_party/node/deps/openssl/openssl/include/openssl/
Dcmp.h.in264 /* from cmp_ctx.c */
/third_party/openssl/include/openssl/
Dcmp.h.in264 /* from cmp_ctx.c */
/third_party/node/deps/openssl/config/archs/VC-WIN64-ARM/no-asm/
Dopenssl.gypi213 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux64-mips64/asm_avx2/
Dopenssl.gypi211 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/solaris-x86-gcc/no-asm/
Dopenssl.gypi213 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux-aarch64/asm_avx2/
Dopenssl.gypi212 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux64-loongarch64/no-asm/
Dopenssl.gypi213 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/aix64-gcc-as/no-asm/
Dopenssl.gypi213 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux64-s390x/asm_avx2/
Dopenssl.gypi209 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux32-s390x/asm/
Dopenssl.gypi210 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux-ppc64le/no-asm/
Dopenssl.gypi213 'openssl/crypto/cmp/cmp_ctx.c',
/third_party/node/deps/openssl/config/archs/linux-aarch64/asm/
Dopenssl.gypi212 'openssl/crypto/cmp/cmp_ctx.c',

123