Searched refs:cmp_ctx (Results 1 – 11 of 11) sorted by relevance
/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() 64 || !OSSL_CMP_CTX_set0_trusted(fixture->cmp_ctx, ts) in set_up() 152 OSSL_CMP_CTX_print_errors(fixture->cmp_ctx); in execute_validate_cert_path_test() 229 ts = OSSL_CMP_CTX_get0_trusted(fixture->cmp_ctx); in test_validate_msg_signature_partial_chain() 233 || !add_trusted(fixture->cmp_ctx, srvcert)) { in test_validate_msg_signature_partial_chain() 307 || !add_trusted(fixture->cmp_ctx, instaca_cert) in test_validate_msg_signature_sender_cert_untrusted() 308 || !add_untrusted(fixture->cmp_ctx, insta_cert)) { in test_validate_msg_signature_sender_cert_untrusted() 322 || !add_trusted(fixture->cmp_ctx, instaca_cert) in test_validate_msg_signature_sender_cert_trusted() 323 || !add_trusted(fixture->cmp_ctx, insta_cert)) { in test_validate_msg_signature_sender_cert_trusted() [all …]
|
H A D | cmp_client_test.c | 24 OSSL_CMP_CTX *cmp_ctx; member 48 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 103 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_GENM_ses_test_single() 120 && OSSL_CMP_CTX_reinit(fixture->cmp_ctx) in execute_exec_GENM_ses_test() 126 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_certrequest_ses_test() 209 OSSL_CMP_CTX_set_option(fixture->cmp_ctx, in test_exec_REQ_ses_poll() 245 OSSL_CMP_CTX_set_option(fixture->cmp_ctx, in test_exec_CR_ses() 344 ctx = fixture->cmp_ctx; in test_exec_P10CR_ses() 369 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_try_certreq_poll_test() 398 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_try_certreq_poll_abort_test() [all …]
|
H A D | cmp_protect_test.c | 21 OSSL_CMP_CTX *cmp_ctx; member 42 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 83 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_fails_test() 93 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_pbmac_test() 124 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_signature_test() 181 if (!TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_cmp_calc_protection_pbmac() 246 || !TEST_true(OSSL_CMP_CTX_set1_cert(fixture->cmp_ctx, in test_MSG_protect_with_certificate_and_key() 260 ctx = fixture->cmp_ctx; in test_MSG_protect_certificate_based_without_cert() 295 || !SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0) in test_MSG_protect_pbmac_no_sender() 297 || !OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_MSG_protect_pbmac_no_sender() [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() 417 ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr))) in execute_HDR_init_test() 427 fixture->cmp_ctx->senderNonce))) in execute_HDR_init_test() 435 ctx_nonce = fixture->cmp_ctx->recipNonce; in execute_HDR_init_test() 453 || !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 90 if (!TEST_ptr(cmp_ctx = OSSL_CMP_SRV_CTX_get0_cmp_ctx(ctx)) in execute_test_handle_request() 91 || !OSSL_CMP_CTX_set1_referenceValue(cmp_ctx, in execute_test_handle_request() 93 || !OSSL_CMP_CTX_set1_secretValue(cmp_ctx, in execute_test_handle_request()
|
/openssl/apps/ |
H A D | cmp.c | 1024 OSSL_CMP_CTX_print_errors(cmp_ctx); in load_trusted() 3366 int status = OSSL_CMP_CTX_get_status(cmp_ctx); in print_status() 3660 if (cmp_ctx == NULL) in cmp_main() 3784 if (!setup_client_ctx(cmp_ctx, engine)) { in cmp_main() 3792 newcert = OSSL_CMP_exec_IR_ses(cmp_ctx); in cmp_main() 3812 ret = OSSL_CMP_exec_RR_ses(cmp_ctx); in cmp_main() 3815 ret = do_genm(cmp_ctx); in cmp_main() 3889 if (!OSSL_CMP_CTX_reinit(cmp_ctx)) in cmp_main() 3907 OSSL_CMP_CTX_print_errors(cmp_ctx); in cmp_main() 3909 if (cmp_ctx != NULL) { in cmp_main() [all …]
|
/openssl/doc/man3/ |
H A D | OSSL_CMP_CTX_new.pod | 802 cmp_ctx = OSSL_CMP_CTX_new(); 806 OSSL_CMP_CTX_set0_trusted(cmp_ctx, ts); 820 initialCert = OSSL_CMP_exec_IR_ses(cmp_ctx); 824 OSSL_CMP_CTX_reinit(cmp_ctx); 831 OSSL_CMP_CTX_set1_pkey(cmp_ctx, initialKey); 833 currentCert = OSSL_CMP_exec_CR_ses(cmp_ctx); 837 OSSL_CMP_CTX_reinit(cmp_ctx); 839 OSSL_CMP_CTX_set1_pkey(cmp_ctx, currentKey); 847 OSSL_CMP_CTX_reinit(cmp_ctx); 851 OSSL_CMP_CTX_push0_genm_ITAV(cmp_ctx, itav); [all …]
|
/openssl/crypto/cmp/ |
H A D | build.info | 3 cmp_asn.c cmp_ctx.c cmp_err.c cmp_util.c \
|
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() 40 if (!cmp_ctx->ignore_keyusage in verify_signature() 57 &prot_part, NULL, pubkey, cmp_ctx->libctx, in verify_signature() 58 cmp_ctx->propq) > 0) { in verify_signature()
|
/openssl/include/openssl/ |
H A D | cmp.h.in | 332 /* from cmp_ctx.c */
|
Completed in 49 milliseconds