| /freebsd-14.2/crypto/openssl/include/openssl/ |
| H A D | cmp.h.in | 215 typedef struct ossl_cmp_ctx_st OSSL_CMP_CTX; typedef 266 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx); 267 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx); 297 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx); 324 int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx, 326 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, 332 int OSSL_CMP_CTX_set1_extraCertsOut(OSSL_CMP_CTX *ctx, 357 int OSSL_CMP_CTX_get_status(const OSSL_CMP_CTX *ctx); 365 int OSSL_CMP_CTX_set1_transactionID(OSSL_CMP_CTX *ctx, 367 int OSSL_CMP_CTX_set1_senderNonce(OSSL_CMP_CTX *ctx, [all …]
|
| H A D | cmp.h | 214 typedef struct ossl_cmp_ctx_st OSSL_CMP_CTX; typedef 385 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx); 386 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx); 416 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx); 443 int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx, 445 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, 451 int OSSL_CMP_CTX_set1_extraCertsOut(OSSL_CMP_CTX *ctx, 476 int OSSL_CMP_CTX_get_status(const OSSL_CMP_CTX *ctx); 484 int OSSL_CMP_CTX_set1_transactionID(OSSL_CMP_CTX *ctx, 486 int OSSL_CMP_CTX_set1_senderNonce(OSSL_CMP_CTX *ctx, [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/cmp/ |
| H A D | cmp_ctx.c | 104 OSSL_CMP_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in OSSL_CMP_CTX_new() 153 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_reinit() 183 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_free() 253 int OSSL_CMP_CTX_get_status(const OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_get_status() 275 int ossl_cmp_ctx_set0_statusString(OSSL_CMP_CTX *ctx, in ossl_cmp_ctx_set0_statusString() 337 OSSL_CMP_CTX *ctx = vdata; in ossl_cmp_log_trace_cb() 460 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, in OSSL_CMP_CTX_set1_secretValue() 517 int ossl_cmp_ctx_set1_extraCertsIn(OSSL_CMP_CTX *ctx, in ossl_cmp_ctx_set1_extraCertsIn() 533 int OSSL_CMP_CTX_set1_extraCertsOut(OSSL_CMP_CTX *ctx, in OSSL_CMP_CTX_set1_extraCertsOut() 879 int ossl_cmp_ctx_set1_recipNonce(OSSL_CMP_CTX *ctx, in ossl_cmp_ctx_set1_recipNonce() [all …]
|
| H A D | cmp_local.h | 781 int ossl_cmp_ctx_set_status(OSSL_CMP_CTX *ctx, int status); 782 int ossl_cmp_ctx_set0_statusString(OSSL_CMP_CTX *ctx, 785 int ossl_cmp_ctx_set0_newCert(OSSL_CMP_CTX *ctx, X509 *cert); 788 int ossl_cmp_ctx_set1_extraCertsIn(OSSL_CMP_CTX *ctx, 790 int ossl_cmp_ctx_set1_recipNonce(OSSL_CMP_CTX *ctx, 873 OSSL_CMP_MSG *ossl_cmp_rr_new(OSSL_CMP_CTX *ctx); 877 OSSL_CMP_MSG *ossl_cmp_pkiconf_new(OSSL_CMP_CTX *ctx); 883 OSSL_CMP_MSG *ossl_cmp_genm_new(OSSL_CMP_CTX *ctx); 884 OSSL_CMP_MSG *ossl_cmp_genp_new(OSSL_CMP_CTX *ctx, 906 X509 *ossl_cmp_certresponse_get1_cert(const OSSL_CMP_CTX *ctx, [all …]
|
| H A D | cmp_vfy.c | 25 static int verify_signature(const OSSL_CMP_CTX *cmp_ctx, in verify_signature() 77 static int verify_PBMAC(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) in verify_PBMAC() 105 int OSSL_CMP_validate_cert_path(const OSSL_CMP_CTX *ctx, in OSSL_CMP_validate_cert_path() 142 static int check_name(const OSSL_CMP_CTX *ctx, int log_success, in check_name() 175 static int check_kid(const OSSL_CMP_CTX *ctx, in check_kid() 225 static int cert_acceptable(const OSSL_CMP_CTX *ctx, in cert_acceptable() 284 static int check_cert_path(const OSSL_CMP_CTX *ctx, X509_STORE *store, in check_cert_path() 302 static int check_cert_path_3gpp(const OSSL_CMP_CTX *ctx, in check_cert_path_3gpp() 344 static int check_msg_given_cert(const OSSL_CMP_CTX *ctx, X509 *cert, in check_msg_given_cert() 550 int OSSL_CMP_validate_msg(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) in OSSL_CMP_validate_msg() [all …]
|
| H A D | cmp_client.c | 32 static int unprotected_exception(const OSSL_CMP_CTX *ctx, in unprotected_exception() 89 static int save_statusInfo(OSSL_CMP_CTX *ctx, OSSL_CMP_PKISI *si) in save_statusInfo() 253 static int poll_for_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in poll_for_response() 363 int ossl_cmp_exchange_certConf(OSSL_CMP_CTX *ctx, int certReqId, in ossl_cmp_exchange_certConf() 413 static X509 *get1_cert_status(OSSL_CMP_CTX *ctx, int bodytype, in get1_cert_status() 560 static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in cert_response() 670 static int initial_certreq(OSSL_CMP_CTX *ctx, in initial_certreq() 691 int OSSL_CMP_try_certreq(OSSL_CMP_CTX *ctx, int req_type, in OSSL_CMP_try_certreq() 732 X509 *OSSL_CMP_exec_certreq(OSSL_CMP_CTX *ctx, int req_type, in OSSL_CMP_exec_certreq() 760 int OSSL_CMP_exec_RR_ses(OSSL_CMP_CTX *ctx) in OSSL_CMP_exec_RR_ses() [all …]
|
| H A D | cmp_msg.c | 161 OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype) in ossl_cmp_msg_create() 377 OSSL_CMP_MSG *ossl_cmp_certreq_new(OSSL_CMP_CTX *ctx, int type, in ossl_cmp_certreq_new() 445 OSSL_CMP_MSG *ossl_cmp_certrep_new(OSSL_CMP_CTX *ctx, int bodytype, in ossl_cmp_certrep_new() 519 OSSL_CMP_MSG *ossl_cmp_rr_new(OSSL_CMP_CTX *ctx) in ossl_cmp_rr_new() 619 OSSL_CMP_MSG *ossl_cmp_pkiconf_new(OSSL_CMP_CTX *ctx) in ossl_cmp_pkiconf_new() 679 static OSSL_CMP_MSG *gen_new(OSSL_CMP_CTX *ctx, in gen_new() 705 OSSL_CMP_MSG *ossl_cmp_genm_new(OSSL_CMP_CTX *ctx) in ossl_cmp_genm_new() 711 OSSL_CMP_MSG *ossl_cmp_genp_new(OSSL_CMP_CTX *ctx, in ossl_cmp_genp_new() 854 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid) in ossl_cmp_pollReq_new() 883 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid, in ossl_cmp_pollRep_new() [all …]
|
| H A D | cmp_protect.c | 30 ASN1_BIT_STRING *ossl_cmp_calc_protection(const OSSL_CMP_CTX *ctx, in ossl_cmp_calc_protection() 133 int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) in ossl_cmp_msg_add_extraCerts() 188 static int set_pbmac_algor(const OSSL_CMP_CTX *ctx, X509_ALGOR **alg) in set_pbmac_algor() 226 static int set_sig_algor(const OSSL_CMP_CTX *ctx, X509_ALGOR **alg) in set_sig_algor() 247 static int set_senderKID(const OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg, in set_senderKID() 256 int ossl_cmp_msg_protect(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) in ossl_cmp_msg_protect()
|
| H A D | cmp_server.c | 26 OSSL_CMP_CTX *ctx; /* Client CMP context, reusing transactionID etc. */ 92 OSSL_CMP_CTX *OSSL_CMP_SRV_CTX_get0_cmp_ctx(const OSSL_CMP_SRV_CTX *srv_ctx) in OSSL_CMP_SRV_CTX_get0_cmp_ctx() 334 OSSL_CMP_CTX *ctx; in process_certConf() 433 static int unprotected_exception(const OSSL_CMP_CTX *ctx, in unprotected_exception() 460 OSSL_CMP_CTX *ctx; in OSSL_CMP_SRV_process_request() 649 OSSL_CMP_MSG *OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx, in OSSL_CMP_CTX_server_perform()
|
| H A D | cmp_hdr.c | 140 static int set_random(ASN1_OCTET_STRING **tgt, OSSL_CMP_CTX *ctx, size_t len) in set_random() 271 int ossl_cmp_hdr_set_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr) in ossl_cmp_hdr_set_transactionID() 292 int ossl_cmp_hdr_init(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr) in ossl_cmp_hdr_init()
|
| /freebsd-14.2/crypto/openssl/doc/internal/man3/ |
| H A D | ossl_cmp_ctx_set1_caPubs.pod | 19 int ossl_cmp_ctx_set1_caPubs(OSSL_CMP_CTX *ctx, STACK_OF(X509) *caPubs); 20 int ossl_cmp_ctx_set0_validatedSrvCert(OSSL_CMP_CTX *ctx, X509 *cert); 21 int ossl_cmp_ctx_set_status(OSSL_CMP_CTX *ctx, int status); 22 int ossl_cmp_ctx_set0_statusString(OSSL_CMP_CTX *ctx, 24 int ossl_cmp_ctx_set_failInfoCode(OSSL_CMP_CTX *ctx, int fail_info); 25 int ossl_cmp_ctx_set0_newCert(OSSL_CMP_CTX *ctx, X509 *cert); 26 int ossl_cmp_ctx_set1_extraCertsIn(OSSL_CMP_CTX *ctx, 28 int ossl_cmp_ctx_set1_recipNonce(OSSL_CMP_CTX *ctx,
|
| H A D | ossl_cmp_certreq_new.pod | 22 OSSL_ossl_cmp_MSG *ossl_cmp_certreq_new(OSSL_CMP_CTX *ctx, int bodytype, 24 OSSL_CMP_MSG *ossl_cmp_certrep_new(OSSL_CMP_CTX *ctx, int bodytype, 29 OSSL_CMP_MSG *ossl_cmp_rr_new(OSSL_CMP_CTX *ctx); 30 OSSL_CMP_MSG *ossl_cmp_rp_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si, 33 OSSL_CMP_MSG *ossl_cmp_certConf_new(OSSL_CMP_CTX *ctx, int certReqId, 35 OSSL_CMP_MSG *ossl_cmp_pkiconf_new(OSSL_CMP_CTX *ctx); 36 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid); 38 OSSL_CMP_MSG *ossl_cmp_genm_new(OSSL_CMP_CTX *ctx); 39 OSSL_CMP_MSG *ossl_cmp_genp_new(OSSL_CMP_CTX *ctx); 40 OSSL_CMP_MSG *ossl_cmp_error_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si, [all …]
|
| H A D | ossl_cmp_msg_protect.pod | 14 ASN1_BIT_STRING *ossl_cmp_calc_protection(const OSSL_CMP_CTX *ctx, 16 int ossl_cmp_msg_protect(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg); 17 int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
|
| H A D | ossl_cmp_hdr_init.pod | 50 int ossl_cmp_hdr_set_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr); 51 int ossl_cmp_hdr_init(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr); 108 values in the given OSSL_CMP_CTX structure.
|
| /freebsd-14.2/crypto/openssl/doc/man3/ |
| H A D | OSSL_CMP_CTX_new.pod | 72 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx); 73 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx); 80 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx); 93 int OSSL_CMP_CTX_set_transfer_cb(OSSL_CMP_CTX *ctx, 112 int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx, 114 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, 121 int OSSL_CMP_CTX_set1_extraCertsOut(OSSL_CMP_CTX *ctx, 150 int OSSL_CMP_CTX_get_status(const OSSL_CMP_CTX *ctx); 160 int OSSL_CMP_CTX_set1_transactionID(OSSL_CMP_CTX *ctx, 162 int OSSL_CMP_CTX_set1_senderNonce(OSSL_CMP_CTX *ctx, [all …]
|
| H A D | OSSL_CMP_exec_certreq.pod | 23 X509 *OSSL_CMP_exec_certreq(OSSL_CMP_CTX *ctx, int req_type, 25 X509 *OSSL_CMP_exec_IR_ses(OSSL_CMP_CTX *ctx); 26 X509 *OSSL_CMP_exec_CR_ses(OSSL_CMP_CTX *ctx); 27 X509 *OSSL_CMP_exec_P10CR_ses(OSSL_CMP_CTX *ctx); 28 X509 *OSSL_CMP_exec_KUR_ses(OSSL_CMP_CTX *ctx); 33 int OSSL_CMP_try_certreq(OSSL_CMP_CTX *ctx, int req_type, 35 int OSSL_CMP_exec_RR_ses(OSSL_CMP_CTX *ctx); 36 STACK_OF(OSSL_CMP_ITAV) *OSSL_CMP_exec_GENM_ses(OSSL_CMP_CTX *ctx); 43 All functions take a populated OSSL_CMP_CTX structure as their first argument. 157 See OSSL_CMP_CTX for examples on how to prepare the context for these
|
| H A D | OSSL_CMP_SRV_CTX_new.pod | 30 OSSL_CMP_MSG *OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx, 75 OSSL_CMP_CTX *OSSL_CMP_SRV_CTX_get0_cmp_ctx(const OSSL_CMP_SRV_CTX *srv_ctx); 117 OSSL_CMP_SRV_CTX_get0_cmp_ctx() returns the B<OSSL_CMP_CTX> from the I<srv_ctx>. 148 OSSL_CMP_SRV_CTX_get0_cmp_ctx() returns a B<OSSL_CMP_CTX> structure on success,
|
| H A D | OSSL_CMP_MSG_get0_header.pod | 22 int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg); 23 int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg); 24 OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid);
|
| /freebsd-14.2/crypto/openssl/test/ |
| H A D | cmp_client_test.c | 26 OSSL_CMP_CTX *cmp_ctx; 59 OSSL_CMP_CTX *srv_cmp_ctx = NULL; in set_up() 60 OSSL_CMP_CTX *ctx = NULL; /* for client */ in set_up() 104 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_GENM_ses_test_single() 127 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_certrequest_ses_test() 310 static int test_certConf_cb(OSSL_CMP_CTX *ctx, X509 *cert, int fail_info, in test_certConf_cb() 324 OSSL_CMP_CTX *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()
|
| H A D | cmp_ctx_test.c | 23 OSSL_CMP_CTX *ctx; 67 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_reinit_test() 141 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_print_errors_test() 204 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_reqExtensions_have_SAN_test() 266 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_cmp_ctx_log_cb_test() 314 static OSSL_CMP_MSG *test_transfer_cb(OSSL_CMP_CTX *ctx, in test_transfer_cb() 320 static int test_certConf_cb(OSSL_CMP_CTX *ctx, X509 *cert, int fail_info, in test_certConf_cb() 327 #define OSSL_CMP_CTX 1 /* name prefix for exported setter functions */ macro 560 DEFINE_SET_GET_BASE_TEST(OSSL_CMP_CTX, set, get, 0, FIELD, \ 564 DEFINE_SET_GET_BASE_TEST(OSSL_CMP_CTX, set, get, 0, FIELD, void *, \ [all …]
|
| H A D | cmp_server_test.c | 65 OSSL_CMP_CTX *client_ctx; in execute_test_handle_request() 66 OSSL_CMP_CTX *cmp_ctx; in execute_test_handle_request()
|
| H A D | cmp_msg_test.c | 20 OSSL_CMP_CTX *cmp_ctx; 130 static int set1_newPkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey) in set1_newPkey() 144 OSSL_CMP_CTX *ctx; in test_cmp_create_ir_protection_set() 222 OSSL_CMP_CTX *ctx; in test_cmp_create_p10cr() 383 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_certrep_create()
|
| H A D | cmp_vfy_test.c | 33 OSSL_CMP_CTX *cmp_ctx; 204 static int add_trusted(OSSL_CMP_CTX *ctx, X509 *cert) in add_trusted() 209 static int add_untrusted(OSSL_CMP_CTX *ctx, X509 *cert) in add_untrusted() 448 static int allow_unprotected(const OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg, in allow_unprotected() 459 OSSL_CMP_CTX *ctx = (*fixture)->cmp_ctx; in setup_check_update()
|
| /freebsd-14.2/crypto/openssl/fuzz/ |
| H A D | cmp.c | 31 static OSSL_CMP_MSG *transfer_cb(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *req) in transfer_cb() 45 static int allow_unprotected(const OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *rep, in allow_unprotected() 51 static void cmp_client_process_response(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) in cmp_client_process_response() 172 OSSL_CMP_CTX *client_ctx = OSSL_CMP_CTX_new(NULL, NULL); in FuzzerTestOneInput()
|
| /freebsd-14.2/crypto/openssl/apps/ |
| H A D | cmp.c | 58 static OSSL_CMP_CTX *cmp_ctx = NULL; /* the client-side CMP context */ 792 static OSSL_CMP_MSG *read_write_req_resp(OSSL_CMP_CTX *ctx, in read_write_req_resp() 878 OSSL_CMP_CTX *ctx, const char *desc) in set_name() 1176 static int setup_verification_ctx(OSSL_CMP_CTX *ctx) in setup_verification_ctx() 1252 static SSL_CTX *setup_ssl_ctx(OSSL_CMP_CTX *ctx, const char *host, in setup_ssl_ctx() 1519 static int setup_request_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) in setup_request_ctx() 1776 static int handle_opt_geninfo(OSSL_CMP_CTX *ctx) in handle_opt_geninfo() 1845 static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) in setup_client_ctx() 2047 static int save_free_certs(OSSL_CMP_CTX *ctx, in save_free_certs() 2681 static int cmp_server(OSSL_CMP_CTX *srv_cmp_ctx) { in cmp_server() [all …]
|