Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssl/include/openssl/
H A Dcmp.h.in215 typedef struct ossl_cmp_ctx_st OSSL_CMP_CTX; typedef
265 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq);
266 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx);
267 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx);
291 int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val);
292 int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt);
294 int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_CMP_log_cb_t cb);
297 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx);
299 int OSSL_CMP_CTX_set1_serverPath(OSSL_CMP_CTX *ctx, const char *path);
300 int OSSL_CMP_CTX_set1_server(OSSL_CMP_CTX *ctx, const char *address);
[all …]
H A Dcmp.h214 typedef struct ossl_cmp_ctx_st OSSL_CMP_CTX; typedef
384 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq);
385 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx);
386 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx);
410 int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val);
411 int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt);
413 int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_CMP_log_cb_t cb);
416 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx);
418 int OSSL_CMP_CTX_set1_serverPath(OSSL_CMP_CTX *ctx, const char *path);
419 int OSSL_CMP_CTX_set1_server(OSSL_CMP_CTX *ctx, const char *address);
[all …]
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_ctx.c26 X509_STORE *OSSL_CMP_CTX_get0_trustedStore(const OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_get0_trustedStore()
40 int OSSL_CMP_CTX_set0_trustedStore(OSSL_CMP_CTX *ctx, X509_STORE *store) in OSSL_CMP_CTX_set0_trustedStore()
52 STACK_OF(X509) *OSSL_CMP_CTX_get0_untrusted(const OSSL_CMP_CTX *ctx) in STACK_OF()
65 int OSSL_CMP_CTX_set1_untrusted(OSSL_CMP_CTX *ctx, STACK_OF(X509) *certs) in OSSL_CMP_CTX_set1_untrusted()
84 static int cmp_ctx_set_md(OSSL_CMP_CTX *ctx, EVP_MD **pmd, int nid) in cmp_ctx_set_md()
102 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq) in OSSL_CMP_CTX_new()
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()
241 int ossl_cmp_ctx_set_status(OSSL_CMP_CTX *ctx, int status) in ossl_cmp_ctx_set_status()
[all …]
H A Dcmp_local.h754 int ossl_cmp_print_log(OSSL_CMP_severity level, const OSSL_CMP_CTX *ctx,
780 int ossl_cmp_ctx_set0_validatedSrvCert(OSSL_CMP_CTX *ctx, X509 *cert);
781 int ossl_cmp_ctx_set_status(OSSL_CMP_CTX *ctx, int status);
782 int ossl_cmp_ctx_set0_statusString(OSSL_CMP_CTX *ctx,
784 int ossl_cmp_ctx_set_failInfoCode(OSSL_CMP_CTX *ctx, int fail_info);
785 int ossl_cmp_ctx_set0_newCert(OSSL_CMP_CTX *ctx, X509 *cert);
786 int ossl_cmp_ctx_set1_newChain(OSSL_CMP_CTX *ctx, STACK_OF(X509) *newChain);
787 int ossl_cmp_ctx_set1_caPubs(OSSL_CMP_CTX *ctx, STACK_OF(X509) *caPubs);
788 int ossl_cmp_ctx_set1_extraCertsIn(OSSL_CMP_CTX *ctx,
790 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()
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()
358 static int check_msg_with_certs(OSSL_CMP_CTX *ctx, const STACK_OF(X509) *certs, in check_msg_with_certs()
[all …]
H A Dcmp_client.c32 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()
123 static int send_receive_check(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *req, in send_receive_check()
250 static int poll_for_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in poll_for_response()
360 int ossl_cmp_exchange_certConf(OSSL_CMP_CTX *ctx, int certReqId, in ossl_cmp_exchange_certConf()
381 int ossl_cmp_exchange_error(OSSL_CMP_CTX *ctx, int status, int fail_info, in ossl_cmp_exchange_error()
410 static X509 *get1_cert_status(OSSL_CMP_CTX *ctx, int bodytype, in get1_cert_status()
485 int OSSL_CMP_certConf_cb(OSSL_CMP_CTX *ctx, X509 *cert, int fail_info, in OSSL_CMP_certConf_cb()
557 static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in cert_response()
667 static int initial_certreq(OSSL_CMP_CTX *ctx, in initial_certreq()
[all …]
H A Dcmp_msg.c161 OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype) in ossl_cmp_msg_create()
256 static const X509_NAME *determine_subj(OSSL_CMP_CTX *ctx, int for_KUR, in determine_subj()
272 OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid) in OSSL_CMP_CTX_setup_CRM()
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()
572 OSSL_CMP_MSG *ossl_cmp_rp_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si, in ossl_cmp_rp_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()
[all …]
H A Dcmp_protect.c30 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 Dcmp_server.c26 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 Dcmp_hdr.c140 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/crypto/openssl/doc/man3/
H A DOSSL_CMP_CTX_new.pod71 OSSL_CMP_CTX *OSSL_CMP_CTX_new(OSSL_LIB_CTX *libctx, const char *propq);
72 void OSSL_CMP_CTX_free(OSSL_CMP_CTX *ctx);
73 int OSSL_CMP_CTX_reinit(OSSL_CMP_CTX *ctx);
74 int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val);
75 int OSSL_CMP_CTX_get_option(const OSSL_CMP_CTX *ctx, int opt);
78 int OSSL_CMP_CTX_set_log_cb(OSSL_CMP_CTX *ctx, OSSL_CMP_log_cb_t cb);
80 void OSSL_CMP_CTX_print_errors(const OSSL_CMP_CTX *ctx);
83 int OSSL_CMP_CTX_set1_serverPath(OSSL_CMP_CTX *ctx, const char *path);
84 int OSSL_CMP_CTX_set1_server(OSSL_CMP_CTX *ctx, const char *address);
85 int OSSL_CMP_CTX_set_serverPort(OSSL_CMP_CTX *ctx, int port);
[all …]
H A DOSSL_CMP_exec_certreq.pod23 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 DOSSL_CMP_SRV_CTX_new.pod30 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 DOSSL_CMP_MSG_get0_header.pod22 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/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/test/
H A Dcmp_client_test.c26 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 Dcmp_ctx_test.c23 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()
326 typedef OSSL_CMP_CTX CMP_CTX; /* prevents rewriting type name by below macro */
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, \
[all …]
H A Dcmp_msg_test.c20 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 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_vfy_test.c33 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/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()
172 OSSL_CMP_CTX *client_ctx = OSSL_CMP_CTX_new(NULL, NULL); in FuzzerTestOneInput()
/freebsd/crypto/openssl/apps/
H A Dcmp.c58 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()
877 int (*set_fn) (OSSL_CMP_CTX *ctx, const X509_NAME *name), in set_name()
878 OSSL_CMP_CTX *ctx, const char *desc) in set_name()
895 static int set_gennames(OSSL_CMP_CTX *ctx, char *names, const char *desc) in set_gennames()
1022 OSSL_CMP_CTX *ctx; /* extra CMP (client) ctx partly used by server */ in setup_srv_ctx()
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()
1400 static int setup_protection_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) in setup_protection_ctx()
1519 static int setup_request_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) in setup_request_ctx()
[all …]

12