/openssl/crypto/cmp/ |
H A D | cmp_server.c | 47 if (srv_ctx == NULL) in OSSL_CMP_SRV_CTX_free() 51 OPENSSL_free(srv_ctx); in OSSL_CMP_SRV_CTX_free() 114 return srv_ctx->ctx; in OSSL_CMP_SRV_CTX_get0_cmp_ctx() 180 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in delayed_delivery() 184 ret = srv_ctx->delayed_delivery(srv_ctx, req); in delayed_delivery() 225 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_cert_request() 337 if ((si = srv_ctx->process_rr(srv_ctx, req, issuer, serial)) == NULL) in process_rr() 380 srv_ctx->process_error(srv_ctx, req, errorContent->pKIStatusInfo, in process_error() 528 if (!srv_ctx->process_pollReq(srv_ctx, req, certReqId, in process_pollReq() 582 if (srv_ctx == NULL || srv_ctx->ctx == NULL in OSSL_CMP_SRV_process_request() [all …]
|
/openssl/apps/include/ |
H A D | cmp_mock_srv.h | 21 void ossl_cmp_mock_srv_free(OSSL_CMP_SRV_CTX *srv_ctx); 23 int ossl_cmp_mock_srv_set1_refCert(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 24 int ossl_cmp_mock_srv_set1_certOut(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 25 int ossl_cmp_mock_srv_set1_crlOut(OSSL_CMP_SRV_CTX *srv_ctx, X509_CRL *crl); 26 int ossl_cmp_mock_srv_set1_chainOut(OSSL_CMP_SRV_CTX *srv_ctx, 28 int ossl_cmp_mock_srv_set1_caPubsOut(OSSL_CMP_SRV_CTX *srv_ctx, 30 int ossl_cmp_mock_srv_set1_newWithNew(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 31 int ossl_cmp_mock_srv_set1_newWithOld(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 32 int ossl_cmp_mock_srv_set1_oldWithNew(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 33 int ossl_cmp_mock_srv_set_statusInfo(OSSL_CMP_SRV_CTX *srv_ctx, int status, [all …]
|
/openssl/apps/lib/ |
H A D | cmp_mock_srv.c | 250 static int clean_transaction(OSSL_CMP_SRV_CTX *srv_ctx, in clean_transaction() argument 540 static int process_genm(OSSL_CMP_SRV_CTX *srv_ctx, in process_genm() argument 620 static int process_certConf(OSSL_CMP_SRV_CTX *srv_ctx, in process_certConf() argument 652 static int process_pollReq(OSSL_CMP_SRV_CTX *srv_ctx, in process_pollReq() argument 693 if (srv_ctx != NULL && ctx != NULL in ossl_cmp_mock_srv_new() 697 && OSSL_CMP_SRV_CTX_init_trans(srv_ctx, in ossl_cmp_mock_srv_new() 699 return srv_ctx; in ossl_cmp_mock_srv_new() 702 OSSL_CMP_SRV_CTX_free(srv_ctx); in ossl_cmp_mock_srv_new() 706 void ossl_cmp_mock_srv_free(OSSL_CMP_SRV_CTX *srv_ctx) in ossl_cmp_mock_srv_free() argument 708 if (srv_ctx != NULL) in ossl_cmp_mock_srv_free() [all …]
|
/openssl/fuzz/ |
H A D | cmp.c | 102 static OSSL_CMP_PKISI *process_cert_request(OSSL_CMP_SRV_CTX *srv_ctx, in process_cert_request() argument 115 static OSSL_CMP_PKISI *process_rr(OSSL_CMP_SRV_CTX *srv_ctx, in process_rr() argument 124 static int process_genm(OSSL_CMP_SRV_CTX *srv_ctx, in process_genm() argument 141 static int process_certConf(OSSL_CMP_SRV_CTX *srv_ctx, in process_certConf() argument 150 static int process_pollReq(OSSL_CMP_SRV_CTX *srv_ctx, in process_pollReq() argument 158 static int clean_transaction(ossl_unused OSSL_CMP_SRV_CTX *srv_ctx, in clean_transaction() argument 164 static int delayed_delivery(ossl_unused OSSL_CMP_SRV_CTX *srv_ctx, in delayed_delivery() argument 183 OSSL_CMP_SRV_CTX *srv_ctx = OSSL_CMP_SRV_CTX_new(NULL, NULL); in FuzzerTestOneInput() local 193 if (srv_ctx != NULL in FuzzerTestOneInput() 199 && OSSL_CMP_SRV_CTX_init_trans(srv_ctx, delayed_delivery, in FuzzerTestOneInput() [all …]
|
/openssl/doc/man3/ |
H A D | OSSL_CMP_SRV_CTX_new.pod | 31 OSSL_CMP_MSG *OSSL_CMP_SRV_process_request(OSSL_CMP_SRV_CTX *srv_ctx, 36 void OSSL_CMP_SRV_CTX_free(OSSL_CMP_SRV_CTX *srv_ctx); 51 typedef int (*OSSL_CMP_SRV_genm_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 55 typedef void (*OSSL_CMP_SRV_error_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 60 typedef int (*OSSL_CMP_SRV_certConf_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 65 typedef int (*OSSL_CMP_SRV_pollReq_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 70 int OSSL_CMP_SRV_CTX_init(OSSL_CMP_SRV_CTX *srv_ctx, void *custom_ctx, 81 int OSSL_CMP_SRV_CTX_init_trans(OSSL_CMP_SRV_CTX *srv_ctx, 116 OSSL_CMP_SRV_CTX_free() deletes the given I<srv_ctx>. 123 All arguments except I<srv_ctx> may be NULL. [all …]
|
/openssl/test/ |
H A D | cmp_client_test.c | 25 OSSL_CMP_SRV_CTX *srv_ctx; member 49 ossl_cmp_mock_srv_free(fixture->srv_ctx); in tear_down() 63 if (!TEST_ptr(fixture->srv_ctx = ossl_cmp_mock_srv_new(libctx, NULL)) in set_up() 68 OSSL_CMP_SRV_CTX_get0_cmp_ctx(fixture->srv_ctx)) == NULL in set_up() 75 || !OSSL_CMP_CTX_set_transfer_cb_arg(ctx, fixture->srv_ctx) in set_up() 174 ossl_cmp_mock_srv_set_statusInfo(fixture->srv_ctx, in test_exec_RR_ses_receive_error() 205 ossl_cmp_mock_srv_set_pollCount(fixture->srv_ctx, poll_count); in test_exec_REQ_ses_poll() 245 ossl_cmp_mock_srv_set_sendError(fixture->srv_ctx, in test_exec_CR_ses() 278 OSSL_CMP_SRV_CTX_set_accept_raverified(fixture->srv_ctx, 1); in test_exec_KUR_ses() 369 ossl_cmp_mock_srv_set_pollCount(fixture->srv_ctx, 3); in execute_try_certreq_poll_test() [all …]
|
H A D | cmp_server_test.c | 17 OSSL_CMP_SRV_CTX *srv_ctx; member 27 OSSL_CMP_SRV_CTX_free(fixture->srv_ctx); in tear_down() 38 if (!TEST_ptr(fixture->srv_ctx = OSSL_CMP_SRV_CTX_new(libctx, NULL))) in set_up() 49 static OSSL_CMP_PKISI *process_cert_request(OSSL_CMP_SRV_CTX *srv_ctx, in process_cert_request() argument 64 OSSL_CMP_SRV_CTX *ctx = fixture->srv_ctx; in execute_test_handle_request()
|
/openssl/doc/internal/man3/ |
H A D | ossl_cmp_mock_srv_new.pod | 25 void ossl_cmp_mock_srv_free(OSSL_CMP_SRV_CTX *srv_ctx); 29 int ossl_cmp_mock_srv_set1_chainOut(OSSL_CMP_SRV_CTX *srv_ctx, 31 int ossl_cmp_mock_srv_set1_caPubsOut(OSSL_CMP_SRV_CTX *srv_ctx, 36 int ossl_cmp_mock_srv_set_statusInfo(OSSL_CMP_SRV_CTX *srv_ctx, int status, 38 int ossl_cmp_mock_srv_set_sendError(OSSL_CMP_SRV_CTX *srv_ctx, int bodytype); 39 int ossl_cmp_mock_srv_set_pollCount(OSSL_CMP_SRV_CTX *srv_ctx, int count); 40 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
|
/openssl/include/openssl/ |
H A D | cmp.h.in | 491 OSSL_CMP_MSG *OSSL_CMP_SRV_process_request(OSSL_CMP_SRV_CTX *srv_ctx, 496 void OSSL_CMP_SRV_CTX_free(OSSL_CMP_SRV_CTX *srv_ctx); 498 (OSSL_CMP_SRV_CTX *srv_ctx, const OSSL_CMP_MSG *req, int certReqId, 501 typedef OSSL_CMP_PKISI *(*OSSL_CMP_SRV_rr_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 505 typedef int (*OSSL_CMP_SRV_genm_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 509 typedef void (*OSSL_CMP_SRV_error_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 514 typedef int (*OSSL_CMP_SRV_certConf_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 519 typedef int (*OSSL_CMP_SRV_pollReq_cb_t)(OSSL_CMP_SRV_CTX *srv_ctx, 523 int OSSL_CMP_SRV_CTX_init(OSSL_CMP_SRV_CTX *srv_ctx, void *custom_ctx, 534 int OSSL_CMP_SRV_CTX_init_trans(OSSL_CMP_SRV_CTX *srv_ctx, [all …]
|
/openssl/apps/ |
H A D | cmp.c | 1120 if (srv_ctx == NULL) in setup_srv_ctx() 1122 ctx = OSSL_CMP_SRV_CTX_get0_cmp_ctx(srv_ctx); in setup_srv_ctx() 1193 if (!setup_cert(srv_ctx, opt_ref_cert, opt_otherpass, in setup_srv_ctx() 1200 if (!setup_cert(srv_ctx, opt_rsp_cert, opt_keypass, in setup_srv_ctx() 1205 if (!setup_mock_crlout(srv_ctx, opt_rsp_crl, in setup_srv_ctx() 1250 (void)ossl_cmp_mock_srv_set_sendError(srv_ctx, 1); in setup_srv_ctx() 1263 return srv_ctx; in setup_srv_ctx() 1266 ossl_cmp_mock_srv_free(srv_ctx); in setup_srv_ctx() 3669 OSSL_CMP_SRV_CTX *srv_ctx; in cmp_main() local 3671 if ((srv_ctx = setup_srv_ctx(engine)) == NULL) in cmp_main() [all …]
|