Home
last modified time | relevance | path

Searched refs:OSSL_CMP_CTX (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/crypto/openssl/include/openssl/
H A Dcmp.h.in218 typedef struct ossl_cmp_ctx_st OSSL_CMP_CTX; typedef
347 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq);
348 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx);
349 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx);
350 OSSL_LIB_CTX *OSSL_CMP_CTX_get0_libctx(const OSSL_CMP_CTX *ctx);
351 const char *OSSL_CMP_CTX_get0_propq(const OSSL_CMP_CTX *ctx);
377 int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val);
378 int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt);
380 int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_CMP_log_cb_t cb);
383 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx);
[all …]
H A Dcmp.h217 typedef struct ossl_cmp_ctx_st OSSL_CMP_CTX; typedef
490 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq);
491 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx);
492 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx);
493 OSSL_LIB_CTX *OSSL_CMP_CTX_get0_libctx(const OSSL_CMP_CTX *ctx);
494 const char *OSSL_CMP_CTX_get0_propq(const OSSL_CMP_CTX *ctx);
520 int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val);
521 int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt);
523 int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_CMP_log_cb_t cb);
526 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx);
[all …]
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_ctx.c26 TYPE *OSSL_CMP_CTX_get0_##NAME(const OSSL_CMP_CTX *ctx) \
43 int PREFIX##_set0##_##NAME(OSSL_CMP_CTX *ctx, TYPE *val) \ in DEFINE_OSSL_CMP_CTX_get0_NAME()
59 DEFINE_OSSL_set0_NAME(OSSL_CMP_CTX, trusted, trusted, X509_STORE)
71 int OSSL_CMP_CTX_set1_untrusted(OSSL_CMP_CTX *ctx, STACK_OF(X509) *certs)
90 static int cmp_ctx_set_md(OSSL_CMP_CTX *ctx, EVP_MD **pmd, int nid) in cmp_ctx_set_md()
108 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq) in OSSL_CMP_CTX_new()
110 OSSL_CMP_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in OSSL_CMP_CTX_new()
160 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_reinit()
193 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_free()
256 int PREFIX##_set_##FIELD(OSSL_CMP_CTX *ctx, TYPE val) \
[all …]
H A Dcmp_local.h837 int ossl_cmp_print_log(OSSL_CMP_severity level, const OSSL_CMP_CTX *ctx,
863 int ossl_cmp_ctx_set1_validatedSrvCert(OSSL_CMP_CTX *ctx, X509 *cert);
864 int ossl_cmp_ctx_set_status(OSSL_CMP_CTX *ctx, int status);
865 int ossl_cmp_ctx_set0_statusString(OSSL_CMP_CTX *ctx,
867 int ossl_cmp_ctx_set_failInfoCode(OSSL_CMP_CTX *ctx, int fail_info);
868 int ossl_cmp_ctx_set0_newCert(OSSL_CMP_CTX *ctx, X509 *cert);
869 int ossl_cmp_ctx_set1_newChain(OSSL_CMP_CTX *ctx, STACK_OF(X509) *newChain);
870 int ossl_cmp_ctx_set1_caPubs(OSSL_CMP_CTX *ctx, STACK_OF(X509) *caPubs);
871 int ossl_cmp_ctx_set1_extraCertsIn(OSSL_CMP_CTX *ctx,
873 int ossl_cmp_ctx_set1_recipNonce(OSSL_CMP_CTX *ctx,
[all …]
H A Dcmp_vfy.c25 static int verify_signature(const OSSL_CMP_CTX *cmp_ctx, in verify_signature()
79 static int verify_PBMAC(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) in verify_PBMAC()
108 int OSSL_CMP_validate_cert_path(const OSSL_CMP_CTX *ctx, in OSSL_CMP_validate_cert_path()
163 static int check_name(const OSSL_CMP_CTX *ctx, int log_success, in check_name()
196 static int check_kid(const OSSL_CMP_CTX *ctx, in check_kid()
246 static int cert_acceptable(const OSSL_CMP_CTX *ctx, in cert_acceptable()
309 static int check_cert_path(const OSSL_CMP_CTX *ctx, X509_STORE *store, in check_cert_path()
327 static int check_cert_path_3gpp(const OSSL_CMP_CTX *ctx, in check_cert_path_3gpp()
366 static int check_msg_given_cert(const OSSL_CMP_CTX *ctx, X509 *cert, in check_msg_given_cert()
380 static int check_msg_with_certs(OSSL_CMP_CTX *ctx, const STACK_OF(X509) *certs, in check_msg_with_certs()
[all …]
H A Dcmp_genm.c14 static const X509_VERIFY_PARAM *get0_trustedStore_vpm(const OSSL_CMP_CTX *ctx) in get0_trustedStore_vpm()
22 OSSL_CMP_severity level, OSSL_CMP_CTX *ctx, in cert_msg()
35 static int ossl_X509_check(OSSL_CMP_CTX *ctx, const char *source, X509 *cert, in ossl_X509_check()
60 static int ossl_X509_check_all(OSSL_CMP_CTX *ctx, const char *source, in ossl_X509_check_all()
74 static OSSL_CMP_ITAV *get_genm_itav(OSSL_CMP_CTX *ctx, in get_genm_itav()
140 int OSSL_CMP_get1_caCerts(OSSL_CMP_CTX *ctx, STACK_OF(X509) **out) in OSSL_CMP_get1_caCerts()
247 verify_ss_cert_trans(OSSL_CMP_CTX *ctx, X509 *trusted /* may be NULL */, in verify_ss_cert_trans()
284 int OSSL_CMP_get1_rootCaKeyUpdate(OSSL_CMP_CTX *ctx, in OSSL_CMP_get1_rootCaKeyUpdate()
345 int OSSL_CMP_get1_crlUpdate(OSSL_CMP_CTX *ctx, const X509 *crlcert, in OSSL_CMP_get1_crlUpdate()
405 int OSSL_CMP_get1_certReqTemplate(OSSL_CMP_CTX *ctx, in OSSL_CMP_get1_certReqTemplate()
H A Dcmp_client.c31 static int unprotected_exception(const OSSL_CMP_CTX *ctx, in unprotected_exception()
85 static int save_statusInfo(OSSL_CMP_CTX *ctx, OSSL_CMP_PKISI *si) in save_statusInfo()
139 static int send_receive_check(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *req, in send_receive_check()
277 static int poll_for_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in poll_for_response()
396 static int save_senderNonce_if_waiting(OSSL_CMP_CTX *ctx, in save_senderNonce_if_waiting()
416 static int send_receive_also_delayed(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *req, in send_receive_also_delayed()
452 int ossl_cmp_exchange_certConf(OSSL_CMP_CTX *ctx, int certReqId, in ossl_cmp_exchange_certConf()
474 int ossl_cmp_exchange_error(OSSL_CMP_CTX *ctx, int status, int fail_info, in ossl_cmp_exchange_error()
504 static X509 *get1_cert_status(OSSL_CMP_CTX *ctx, int bodytype, in get1_cert_status()
579 int OSSL_CMP_certConf_cb(OSSL_CMP_CTX *ctx, X509 *cert, int fail_info, in OSSL_CMP_certConf_cb()
[all …]
H A Dcmp_msg.c185 OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype) in ossl_cmp_msg_create()
279 static const X509_NAME *determine_subj(OSSL_CMP_CTX *ctx, int for_KUR, in determine_subj()
295 OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid) in OSSL_CMP_CTX_setup_CRM()
406 OSSL_CMP_MSG *ossl_cmp_certreq_new(OSSL_CMP_CTX *ctx, int type, in ossl_cmp_certreq_new()
475 static OSSL_CRMF_ENCRYPTEDKEY *enc_privkey(OSSL_CMP_CTX *ctx, const EVP_PKEY *pkey) in enc_privkey()
511 OSSL_CMP_MSG *ossl_cmp_certrep_new(OSSL_CMP_CTX *ctx, int bodytype, in ossl_cmp_certrep_new()
595 OSSL_CMP_MSG *ossl_cmp_rr_new(OSSL_CMP_CTX *ctx) in ossl_cmp_rr_new()
658 OSSL_CMP_MSG *ossl_cmp_rp_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si, in ossl_cmp_rp_new()
704 OSSL_CMP_MSG *ossl_cmp_pkiconf_new(OSSL_CMP_CTX *ctx) in ossl_cmp_pkiconf_new()
764 static OSSL_CMP_MSG *gen_new(OSSL_CMP_CTX *ctx, in gen_new()
[all …]
H A Dcmp_protect.c33 ASN1_BIT_STRING *ossl_cmp_calc_protection(const OSSL_CMP_CTX *ctx, in ossl_cmp_calc_protection()
133 void ossl_cmp_set_own_chain(OSSL_CMP_CTX *ctx) in ossl_cmp_set_own_chain()
153 int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) in ossl_cmp_msg_add_extraCerts()
193 static X509_ALGOR *pbmac_algor(const OSSL_CMP_CTX *ctx) in pbmac_algor()
224 static int set_senderKID(const OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg, in set_senderKID()
233 int ossl_cmp_msg_protect(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) in ossl_cmp_msg_protect()
H A Dcmp_hdr.c121 static int set_random(ASN1_OCTET_STRING **tgt, OSSL_CMP_CTX *ctx, size_t len) in set_random()
252 int ossl_cmp_hdr_set_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr) in ossl_cmp_hdr_set_transactionID()
272 int ossl_cmp_hdr_init(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr) in ossl_cmp_hdr_init()
H A Dcmp_server.c24 OSSL_CMP_CTX *ctx; /* CMP client context reused for transactionID etc. */
108 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()
401 OSSL_CMP_CTX *ctx; in process_certConf()
559 static int unprotected_exception(const OSSL_CMP_CTX *ctx, in unprotected_exception()
586 OSSL_CMP_CTX *ctx; in OSSL_CMP_SRV_process_request()
764 OSSL_CMP_MSG *OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx, in OSSL_CMP_CTX_server_perform()
/freebsd/crypto/openssl/doc/internal/man3/
H A Dossl_cmp_ctx_set1_caPubs.pod19 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 Dossl_cmp_certreq_new.pod22 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);
37 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid, int poll_after);
38 OSSL_CMP_MSG *ossl_cmp_genm_new(OSSL_CMP_CTX *ctx);
39 OSSL_CMP_MSG *ossl_cmp_genp_new(OSSL_CMP_CTX *ctx);
[all …]
H A Dossl_cmp_msg_protect.pod14 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 Dossl_cmp_hdr_init.pod50 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/crypto/openssl/doc/man3/
H A DOSSL_CMP_CTX_new.pod77 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq);
78 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx);
79 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx);
80 OSSL_LIB_CTX *OSSL_CMP_CTX_get0_libctx(const OSSL_CMP_CTX *ctx);
81 const char *OSSL_CMP_CTX_get0_propq(const OSSL_CMP_CTX *ctx);
82 int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val);
83 int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt);
86 int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_CMP_log_cb_t cb);
88 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx);
91 int OSSL_CMP_CTX_set1_serverPath(OSSL_CMP_CTX *ctx, const char *path);
[all …]
H A DOSSL_CMP_exec_certreq.pod27 X509 *OSSL_CMP_exec_certreq(OSSL_CMP_CTX *ctx, int req_type,
29 X509 *OSSL_CMP_exec_IR_ses(OSSL_CMP_CTX *ctx);
30 X509 *OSSL_CMP_exec_CR_ses(OSSL_CMP_CTX *ctx);
31 X509 *OSSL_CMP_exec_P10CR_ses(OSSL_CMP_CTX *ctx);
32 X509 *OSSL_CMP_exec_KUR_ses(OSSL_CMP_CTX *ctx);
37 int OSSL_CMP_try_certreq(OSSL_CMP_CTX *ctx, int req_type,
39 int OSSL_CMP_exec_RR_ses(OSSL_CMP_CTX *ctx);
41 STACK_OF(OSSL_CMP_ITAV) *OSSL_CMP_exec_GENM_ses(OSSL_CMP_CTX *ctx);
42 int OSSL_CMP_get1_caCerts(OSSL_CMP_CTX *ctx, STACK_OF(X509) **out);
43 int OSSL_CMP_get1_rootCaKeyUpdate(OSSL_CMP_CTX *ctx,
[all …]
H A DOSSL_CMP_SRV_CTX_new.pod33 OSSL_CMP_MSG *OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx,
85 OSSL_CMP_CTX *OSSL_CMP_SRV_CTX_get0_cmp_ctx(const OSSL_CMP_SRV_CTX *srv_ctx);
110 In particular, the first parameter I<client_ctx> is the B<OSSL_CMP_CTX> of the client.
142 OSSL_CMP_SRV_CTX_get0_cmp_ctx() returns the B<OSSL_CMP_CTX> from the I<srv_ctx>.
173 OSSL_CMP_SRV_CTX_get0_cmp_ctx() returns a B<OSSL_CMP_CTX> structure on success,
/freebsd/crypto/openssl/test/
H A Dcmp_client_test.c24 OSSL_CMP_CTX *cmp_ctx;
57 OSSL_CMP_CTX *srv_cmp_ctx = NULL; in set_up()
58 OSSL_CMP_CTX *ctx = NULL; /* for client */ in set_up()
102 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_GENM_ses_test_single()
126 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_exec_certrequest_ses_test()
324 static int test_certConf_cb(OSSL_CMP_CTX *ctx, X509 *cert, int fail_info, in test_certConf_cb()
338 OSSL_CMP_CTX *ctx; in test_exec_P10CR_ses()
370 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_try_certreq_poll_test()
399 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_try_certreq_poll_abort_test()
H A Dcmp_ctx_test.c18 OSSL_CMP_CTX *ctx;
62 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_reinit_test()
115 OSSL_CMP_CTX *cmpctx = OSSL_CMP_CTX_new(libctx, propq); in test_CTX_libctx_propq()
153 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_print_errors_test()
218 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_reqExtensions_have_SAN_test()
283 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_cmp_ctx_log_cb_test()
335 static OSSL_CMP_MSG *test_transfer_cb(OSSL_CMP_CTX *ctx, in test_transfer_cb()
341 static int test_certConf_cb(OSSL_CMP_CTX *ctx, X509 *cert, int fail_info, in test_certConf_cb()
347 typedef OSSL_CMP_CTX CMP_CTX; /* prevents rewriting type name by below macro */
348 #define OSSL_CMP_CTX 1 /* name prefix for exported setter functions */ macro
[all …]
H A Dcmp_server_test.c65 OSSL_CMP_CTX *client_ctx; in execute_test_handle_request()
66 OSSL_CMP_CTX *cmp_ctx; in execute_test_handle_request()
H A Dcmp_msg_test.c20 OSSL_CMP_CTX *cmp_ctx;
126 static int set1_newPkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey) in set1_newPkey()
140 OSSL_CMP_CTX *ctx; in test_cmp_create_ir_protection_set()
218 OSSL_CMP_CTX *ctx; in test_cmp_create_p10cr()
378 OSSL_CMP_CTX *ctx = fixture->cmp_ctx; in execute_certrep_create()
H A Dcmp_vfy_test.c33 OSSL_CMP_CTX *cmp_ctx;
211 static int add_trusted(OSSL_CMP_CTX *ctx, X509 *cert) in add_trusted()
216 static int add_untrusted(OSSL_CMP_CTX *ctx, X509 *cert) in add_untrusted()
463 static int allow_unprotected(const OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg, in allow_unprotected()
474 OSSL_CMP_CTX *ctx = (*fixture)->cmp_ctx; in setup_check_update()
/freebsd/crypto/openssl/fuzz/
H A Dcmp.c31 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()
184 OSSL_CMP_CTX *client_ctx = OSSL_CMP_CTX_new(NULL, NULL); in FuzzerTestOneInput()
/freebsd/crypto/openssl/apps/
H A Dcmp.c59 static OSSL_CMP_CTX *cmp_ctx = NULL; /* the client-side CMP context */
932 static OSSL_CMP_MSG *read_write_req_resp(OSSL_CMP_CTX *ctx, in read_write_req_resp()
1024 int (*set_fn)(OSSL_CMP_CTX *ctx, const X509_NAME *name), in set_name()
1025 OSSL_CMP_CTX *ctx, const char *desc) in set_name()
1042 static int set_gennames(OSSL_CMP_CTX *ctx, char *names, const char *desc) in set_gennames()
1202 OSSL_CMP_CTX *ctx; /* extra CMP (client) ctx partly used by server */ in setup_srv_ctx()
1373 static int setup_verification_ctx(OSSL_CMP_CTX *ctx) in setup_verification_ctx()
1441 static SSL_CTX *setup_ssl_ctx(OSSL_CMP_CTX *ctx, const char *host, in setup_ssl_ctx()
1596 static int setup_protection_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) in setup_protection_ctx()
1711 static int set_fallback_pubkey(OSSL_CMP_CTX *ctx) in set_fallback_pubkey()
[all …]

12