| /freebsd-14.2/crypto/openssl/test/ |
| H A D | cmp_msg_test.c | 20 OSSL_CMP_CTX *cmp_ctx; member 40 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 149 ctx = fixture->cmp_ctx; in test_cmp_create_ir_protection_set() 198 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_cr() 212 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_certreq_with_invalid_bodytype() 226 ctx = fixture->cmp_ctx; in test_cmp_create_p10cr() 247 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_p10cr_null() 261 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey)) in test_cmp_create_kur() 276 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_kur_without_oldcert() 334 if (!TEST_true(set1_newPkey(fixture->cmp_ctx, newkey))) { in test_cmp_create_error_msg() [all …]
|
| H A D | cmp_vfy_test.c | 33 OSSL_CMP_CTX *cmp_ctx; member 46 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 147 OSSL_CMP_CTX_print_errors(fixture->cmp_ctx); in execute_validate_cert_path_test() 221 ts = OSSL_CMP_CTX_get0_trustedStore(fixture->cmp_ctx); in test_validate_msg_signature_partial_chain() 225 || !add_trusted(fixture->cmp_ctx, srvcert)) { in test_validate_msg_signature_partial_chain() 295 || !add_trusted(fixture->cmp_ctx, instaca_cert) in test_validate_msg_signature_sender_cert_untrusted() 296 || !add_untrusted(fixture->cmp_ctx, insta_cert)) { in test_validate_msg_signature_sender_cert_untrusted() 309 || !add_trusted(fixture->cmp_ctx, instaca_cert) in test_validate_msg_signature_sender_cert_trusted() 310 || !add_trusted(fixture->cmp_ctx, insta_cert)) { in test_validate_msg_signature_sender_cert_trusted() 323 || !add_trusted(fixture->cmp_ctx, instaca_cert)) { in test_validate_msg_signature_sender_cert_extracert() [all …]
|
| H A D | cmp_client_test.c | 26 OSSL_CMP_CTX *cmp_ctx; member 50 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 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() 206 OSSL_CMP_CTX_set_option(fixture->cmp_ctx, in test_exec_IR_ses_poll() 234 OSSL_CMP_CTX_set_option(fixture->cmp_ctx, in test_exec_CR_ses() 331 ctx = fixture->cmp_ctx; in test_exec_P10CR_ses() 356 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_try_certreq_poll_test() 385 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_try_certreq_poll_abort_test() [all …]
|
| H A D | cmp_protect_test.c | 20 OSSL_CMP_CTX *cmp_ctx; member 41 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 79 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_fails_test() 89 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_pbmac_test() 133 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_signature_test() 177 if (!TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_cmp_calc_protection_pbmac() 255 ctx = fixture->cmp_ctx; in test_MSG_protect_certificate_based_without_cert() 290 || !SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0) in test_MSG_protect_pbmac_no_sender() 292 || !OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_MSG_protect_pbmac_no_sender() 316 return TEST_true(ossl_cmp_msg_add_extraCerts(fixture->cmp_ctx, in execute_MSG_add_extraCerts_test() [all …]
|
| H A D | cmp_hdr_test.c | 19 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() 82 if (!TEST_int_eq(OSSL_CMP_CTX_set1_subjectName(fixture->cmp_ctx, sender), in execute_HDR_get0_senderNonce_test() 85 if (!TEST_int_eq(ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr), in execute_HDR_get0_senderNonce_test() 89 if (!TEST_int_eq(ASN1_OCTET_STRING_cmp(fixture->cmp_ctx->senderNonce, sn), in execute_HDR_get0_senderNonce_test() 418 ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr))) in execute_HDR_init_test() 428 fixture->cmp_ctx->senderNonce))) in execute_HDR_init_test() 436 ctx_nonce = fixture->cmp_ctx->recipNonce; in execute_HDR_init_test() 454 || !TEST_true(OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, in test_HDR_init_with_ref() [all …]
|
| H A D | cmp_server_test.c | 66 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()
|
| /freebsd-14.2/crypto/openssl/apps/ |
| H A D | cmp.c | 946 OSSL_CMP_CTX_print_errors(cmp_ctx); in load_trusted() 2884 if (cmp_ctx == NULL) in cmp_main() 2961 if (!setup_client_ctx(cmp_ctx, engine)) { in cmp_main() 2989 ret = OSSL_CMP_exec_RR_ses(cmp_ctx); in cmp_main() 3017 if (save_free_certs(cmp_ctx, OSSL_CMP_CTX_get1_extraCertsIn(cmp_ctx), in cmp_main() 3023 if (save_free_certs(cmp_ctx, OSSL_CMP_CTX_get1_caPubs(cmp_ctx), in cmp_main() 3036 if (save_free_certs(cmp_ctx, OSSL_CMP_CTX_get1_newChain(cmp_ctx), in cmp_main() 3040 if (!OSSL_CMP_CTX_reinit(cmp_ctx)) in cmp_main() 3058 OSSL_CMP_CTX_print_errors(cmp_ctx); in cmp_main() 3060 if (cmp_ctx != NULL) { in cmp_main() [all …]
|
| /freebsd-14.2/crypto/openssl/doc/man3/ |
| H A D | OSSL_CMP_CTX_new.pod | 736 cmp_ctx = OSSL_CMP_CTX_new(); 740 OSSL_CMP_CTX_set0_trustedStore(cmp_ctx, ts); 754 initialCert = OSSL_CMP_exec_IR_ses(cmp_ctx); 758 OSSL_CMP_CTX_reinit(cmp_ctx); 765 OSSL_CMP_CTX_set1_pkey(cmp_ctx, initialKey); 767 currentCert = OSSL_CMP_exec_CR_ses(cmp_ctx); 771 OSSL_CMP_CTX_reinit(cmp_ctx); 773 OSSL_CMP_CTX_set1_pkey(cmp_ctx, currentKey); 781 OSSL_CMP_CTX_reinit(cmp_ctx); 785 OSSL_CMP_CTX_push0_genm_ITAV(cmp_ctx, itav); [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/cmp/ |
| H A D | cmp_vfy.c | 25 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()
|
| H A D | build.info | 2 SOURCE[../../libcrypto]= cmp_asn.c cmp_ctx.c cmp_err.c cmp_util.c \
|
| /freebsd-14.2/crypto/openssl/include/openssl/ |
| H A D | cmp.h.in | 264 /* from cmp_ctx.c */
|
| /freebsd-14.2/secure/lib/libcrypto/ |
| H A D | Makefile | 166 SRCS+= cmp_asn.c cmp_client.c cmp_ctx.c cmp_err.c cmp_hdr.c cmp_http.c
|