Home
last modified time | relevance | path

Searched refs:OSSL_CMP_MSG (Results 1 – 25 of 30) sorted by relevance

12

/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()
35 return OSSL_CMP_MSG_dup((OSSL_CMP_MSG *) 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()
103 const OSSL_CMP_MSG *cert_req, in process_cert_request()
116 const OSSL_CMP_MSG *rr, in process_rr()
125 const OSSL_CMP_MSG *genm, in process_genm()
133 static void process_error(OSSL_CMP_SRV_CTX *srv_ctx, const OSSL_CMP_MSG *error, in process_error()
142 const OSSL_CMP_MSG *certConf, int certReqId, in process_certConf()
151 const OSSL_CMP_MSG *pollReq, int certReqId, in process_pollReq()
[all …]
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_msg.c23 OSSL_CMP_MSG *OSSL_CMP_MSG_new(OSSL_LIB_CTX *libctx, const char *propq) in OSSL_CMP_MSG_new()
25 OSSL_CMP_MSG *msg = NULL; in OSSL_CMP_MSG_new()
27 msg = (OSSL_CMP_MSG *)ASN1_item_new_ex(ASN1_ITEM_rptr(OSSL_CMP_MSG), in OSSL_CMP_MSG_new()
36 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg) in OSSL_CMP_MSG_free()
38 ASN1_item_free((ASN1_VALUE *)msg, ASN1_ITEM_rptr(OSSL_CMP_MSG)); in OSSL_CMP_MSG_free()
46 int ossl_cmp_msg_set0_libctx(OSSL_CMP_MSG *msg, OSSL_LIB_CTX *libctx, in ossl_cmp_msg_set0_libctx()
63 OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg) in OSSL_CMP_MSG_get0_header()
87 int ossl_cmp_msg_set_bodytype(OSSL_CMP_MSG *msg, int type) in ossl_cmp_msg_set_bodytype()
96 int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg) in OSSL_CMP_MSG_get_bodytype()
161 OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype) in ossl_cmp_msg_create()
[all …]
H A Dcmp_local.h209 typedef STACK_OF(OSSL_CMP_MSG) OSSL_CMP_MSGS;
676 OSSL_CMP_MSG *OSSL_CMP_MSG_new(OSSL_LIB_CTX *libctx, const char *propq);
677 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg);
861 int ossl_cmp_msg_set0_libctx(OSSL_CMP_MSG *msg, OSSL_LIB_CTX *libctx,
864 int ossl_cmp_msg_set_bodytype(OSSL_CMP_MSG *msg, int type);
865 OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype);
866 OSSL_CMP_MSG *ossl_cmp_certreq_new(OSSL_CMP_CTX *ctx, int bodytype,
868 OSSL_CMP_MSG *ossl_cmp_certrep_new(OSSL_CMP_CTX *ctx, int bodytype,
873 OSSL_CMP_MSG *ossl_cmp_rr_new(OSSL_CMP_CTX *ctx);
874 OSSL_CMP_MSG *ossl_cmp_rp_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si,
[all …]
H A Dcmp_server.c157 static OSSL_CMP_MSG *process_cert_request(OSSL_CMP_SRV_CTX *srv_ctx, in process_cert_request()
158 const OSSL_CMP_MSG *req) in process_cert_request()
160 OSSL_CMP_MSG *msg = NULL; in process_cert_request()
249 static OSSL_CMP_MSG *process_rr(OSSL_CMP_SRV_CTX *srv_ctx, in process_rr()
250 const OSSL_CMP_MSG *req) in process_rr()
252 OSSL_CMP_MSG *msg = NULL; in process_rr()
297 static OSSL_CMP_MSG *process_genm(OSSL_CMP_SRV_CTX *srv_ctx, in process_genm()
298 const OSSL_CMP_MSG *req) in process_genm()
301 OSSL_CMP_MSG *msg; in process_genm()
314 static OSSL_CMP_MSG *process_error(OSSL_CMP_SRV_CTX *srv_ctx, in process_error()
[all …]
H A Dcmp_http.c51 OSSL_CMP_MSG *OSSL_CMP_MSG_http_perform(OSSL_CMP_CTX *ctx, in OSSL_CMP_MSG_http_perform()
52 const OSSL_CMP_MSG *req) in OSSL_CMP_MSG_http_perform()
58 const ASN1_ITEM *it = ASN1_ITEM_rptr(OSSL_CMP_MSG); in OSSL_CMP_MSG_http_perform()
60 OSSL_CMP_MSG *res = NULL; in OSSL_CMP_MSG_http_perform()
91 res = (OSSL_CMP_MSG *)ASN1_item_d2i_bio(it, rsp, NULL); in OSSL_CMP_MSG_http_perform()
H A Dcmp_asn.c214 OSSL_CMP_MSG *msg = (OSSL_CMP_MSG *)*pval; in ossl_cmp_msg_cb()
223 OSSL_CMP_MSG *old = exarg; in ossl_cmp_msg_cb()
442 ASN1_SIMPLE(OSSL_CMP_MSG, header, OSSL_CMP_PKIHEADER),
443 ASN1_SIMPLE(OSSL_CMP_MSG, body, OSSL_CMP_PKIBODY)
447 ASN1_SEQUENCE_cb(OSSL_CMP_MSG, ossl_cmp_msg_cb) = {
448 ASN1_SIMPLE(OSSL_CMP_MSG, header, OSSL_CMP_PKIHEADER),
449 ASN1_SIMPLE(OSSL_CMP_MSG, body, OSSL_CMP_PKIBODY),
450 ASN1_EXP_OPT(OSSL_CMP_MSG, protection, ASN1_BIT_STRING, 0),
452 ASN1_EXP_SEQUENCE_OF_OPT(OSSL_CMP_MSG, extraCerts, X509, 1)
453 } ASN1_SEQUENCE_END_cb(OSSL_CMP_MSG, OSSL_CMP_MSG)
[all …]
H A Dcmp_client.c33 const OSSL_CMP_MSG *rep, in unprotected_exception()
126 static int send_receive_check(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *req, in send_receive_check()
127 OSSL_CMP_MSG **rep, int expected_type) in send_receive_check()
254 OSSL_CMP_MSG **rep, int *checkAfter) in poll_for_response()
256 OSSL_CMP_MSG *preq = NULL; in poll_for_response()
257 OSSL_CMP_MSG *prep = NULL; in poll_for_response()
366 OSSL_CMP_MSG *certConf; in ossl_cmp_exchange_certConf()
367 OSSL_CMP_MSG *PKIconf = NULL; in ossl_cmp_exchange_certConf()
387 OSSL_CMP_MSG *error = NULL; in ossl_cmp_exchange_error()
389 OSSL_CMP_MSG *PKIconf = NULL; in ossl_cmp_exchange_error()
[all …]
H A Dcmp_vfy.c26 const OSSL_CMP_MSG *msg, X509 *cert) in verify_signature()
77 static int verify_PBMAC(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) in verify_PBMAC()
229 const OSSL_CMP_MSG *msg) in cert_acceptable()
303 const OSSL_CMP_MSG *msg, X509 *scrt) in check_cert_path_3gpp()
345 const OSSL_CMP_MSG *msg) in check_msg_given_cert()
362 const OSSL_CMP_MSG *msg, int mode_3gpp) in check_msg_with_certs()
404 static int check_msg_all_certs(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg, in check_msg_all_certs()
449 static int check_msg_find_cert(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) in check_msg_find_cert()
550 int OSSL_CMP_validate_msg(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) in OSSL_CMP_validate_msg()
665 int ossl_cmp_msg_check_update(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg, in ossl_cmp_msg_check_update()
[all …]
H A Dcmp_protect.c31 const OSSL_CMP_MSG *msg) 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()
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()
/freebsd/crypto/openssl/include/openssl/
H A Dcmp.h.in218 typedef struct ossl_cmp_msg_st OSSL_CMP_MSG; typedef
219 DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_MSG)
220 DECLARE_ASN1_ENCODE_FUNCTIONS(OSSL_CMP_MSG, OSSL_CMP_MSG, OSSL_CMP_MSG)
262 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg);
307 typedef OSSL_CMP_MSG *(*OSSL_CMP_transfer_cb_t) (OSSL_CMP_CTX *ctx,
308 const OSSL_CMP_MSG *req);
384 OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
385 int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
386 int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
387 int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
[all …]
H A Dcmp.h217 typedef struct ossl_cmp_msg_st OSSL_CMP_MSG; typedef
218 DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_MSG)
219 DECLARE_ASN1_ENCODE_FUNCTIONS(OSSL_CMP_MSG, OSSL_CMP_MSG, OSSL_CMP_MSG)
381 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg);
426 typedef OSSL_CMP_MSG *(*OSSL_CMP_transfer_cb_t) (OSSL_CMP_CTX *ctx,
427 const OSSL_CMP_MSG *req);
503 OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
504 int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
505 int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506 int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DOSSL_CMP_MSG_get0_header.pod20 OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
21 int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
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);
25 OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx, const char *propq);
26 int OSSL_CMP_MSG_write(const char *file, const OSSL_CMP_MSG *msg);
27 OSSL_CMP_MSG *d2i_OSSL_CMP_MSG_bio(BIO *bio, OSSL_CMP_MSG **msg);
28 int i2d_OSSL_CMP_MSG_bio(BIO *bio, const OSSL_CMP_MSG *msg);
100 OSSL_CMP_MSG_read() loads a DER-encoded OSSL_CMP_MSG from I<file>.
102 OSSL_CMP_MSG_write() stores the given OSSL_CMP_MSG to I<file> in DER encoding.
[all …]
H A DOSSL_CMP_SRV_CTX_new.pod28 OSSL_CMP_MSG *OSSL_CMP_SRV_process_request(OSSL_CMP_SRV_CTX *srv_ctx,
29 const OSSL_CMP_MSG *req);
30 OSSL_CMP_MSG *OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx,
31 const OSSL_CMP_MSG *req);
37 const OSSL_CMP_MSG *req,
45 const OSSL_CMP_MSG *req,
49 const OSSL_CMP_MSG *req,
53 const OSSL_CMP_MSG *req,
58 const OSSL_CMP_MSG *req,
63 const OSSL_CMP_MSG *req,
[all …]
H A DOSSL_CMP_MSG_http_perform.pod12 OSSL_CMP_MSG *OSSL_CMP_MSG_http_perform(OSSL_CMP_CTX *ctx,
13 const OSSL_CMP_MSG *req);
/freebsd/crypto/openssl/doc/internal/man3/
H A Dossl_cmp_certreq_new.pod24 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);
40 OSSL_CMP_MSG *ossl_cmp_error_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si,
[all …]
H A Dossl_cmp_msg_create.pod73 int ossl_cmp_msg_get_bodytype(const OSSL_CMP_MSG *msg);
74 int ossl_cmp_msg_set_bodytype( OSSL_CMP_MSG *msg, int type);
75 OSSL_CMP_MSG *ossl_cmp_msg_create(OSSL_CMP_CTX *ctx, int bodytype);
76 int ossl_cmp_msg_gen_ITAV_push0(OSSL_CMP_MSG *msg, OSSL_CMP_ITAV *itav);
77 int ossl_cmp_msg_gen_ITAVs_push1(OSSL_CMP_MSG *msg,
92 ossl_cmp_msg_create() creates and initializes an B<OSSL_CMP_MSG> structure,
97 Returns pointer to created B<OSSL_CMP_MSG> on success, NULL on error.
H A Dossl_cmp_msg_protect.pod15 const OSSL_CMP_MSG *msg);
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_msg_check_update.pod14 const OSSL_CMP_MSG *msg,
17 int ossl_cmp_msg_check_update(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg,
/freebsd/crypto/openssl/test/
H A Dcmp_server_test.c18 OSSL_CMP_MSG *req;
23 static OSSL_CMP_MSG *request = NULL;
50 const OSSL_CMP_MSG *cert_req, in process_cert_request()
68 OSSL_CMP_MSG *rsp = NULL; in execute_test_handle_request()
H A Dcmp_msg_test.c27 OSSL_CMP_MSG *msg;
71 OSSL_CMP_MSG *msg = NULL; \
433 OSSL_CMP_MSG *rpmsg = NULL; in execute_rp_create()
471 OSSL_CMP_MSG *pollrep; in execute_pollrep_create()
/freebsd/crypto/openssl/test/helpers/
H A Dcmp_testlib.c15 OSSL_CMP_MSG *load_pkimsg(const char *file, OSSL_LIB_CTX *libctx) in load_pkimsg()
17 OSSL_CMP_MSG *msg; in load_pkimsg()
26 int valid_asn1_encoding(const OSSL_CMP_MSG *msg) in valid_asn1_encoding()
H A Dcmp_testlib.h24 OSSL_CMP_MSG *load_pkimsg(const char *file, OSSL_LIB_CTX *libctx);
25 int valid_asn1_encoding(const OSSL_CMP_MSG *msg);
/freebsd/crypto/openssl/apps/lib/
H A Dcmp_mock_srv.c26 OSSL_CMP_MSG *certReq; /* ir/cr/p10cr/kur remembered while polling */
174 const OSSL_CMP_MSG *cert_req, in process_cert_request()
263 const OSSL_CMP_MSG *rr, in process_rr()
295 const OSSL_CMP_MSG *genm, in process_genm()
317 static void process_error(OSSL_CMP_SRV_CTX *srv_ctx, const OSSL_CMP_MSG *error, in process_error()
364 const OSSL_CMP_MSG *certConf, in process_certConf()
395 const OSSL_CMP_MSG *pollReq, in process_pollReq()
397 OSSL_CMP_MSG **certReq, int64_t *check_after) in process_pollReq()
/freebsd/crypto/openssl/apps/
H A Dcmp.c738 static int write_PKIMESSAGE(const OSSL_CMP_MSG *msg, char **filenames) in write_PKIMESSAGE()
761 static OSSL_CMP_MSG *read_PKIMESSAGE(const char *desc, char **filenames) in read_PKIMESSAGE()
764 OSSL_CMP_MSG *ret; in read_PKIMESSAGE()
792 static OSSL_CMP_MSG *read_write_req_resp(OSSL_CMP_CTX *ctx, in read_write_req_resp()
793 const OSSL_CMP_MSG *req) in read_write_req_resp()
795 OSSL_CMP_MSG *req_new = NULL; in read_write_req_resp()
796 OSSL_CMP_MSG *res = NULL; in read_write_req_resp()
826 const OSSL_CMP_MSG *actual_req = req_new != NULL ? req_new : req; in read_write_req_resp()
2693 OSSL_CMP_MSG *req = NULL; in cmp_server()
2694 OSSL_CMP_MSG *resp = NULL; in cmp_server()
[all …]
/freebsd/crypto/openssl/util/
H A Dcheck-format-test-negatives.c290 typedef OSSL_CMP_MSG *(*cmp_srv_process_cb_t)
291 (OSSL_CMP_SRV_CTX *ctx, OSSL_CMP_MSG *msg)

12