Home
last modified time | relevance | path

Searched refs:cid (Results 1 – 25 of 35) sorted by relevance

12

/openssl/crypto/ess/
H A Dess_lib.c89 return cid; in ESS_CERT_ID_new_init()
117 return cid; in ESS_CERT_ID_new_init()
139 if (cid == NULL) { in OSSL_ESS_signing_cert_v2_new_init()
147 cid = NULL; in OSSL_ESS_signing_cert_v2_new_init()
160 cid = NULL; in OSSL_ESS_signing_cert_v2_new_init()
174 ESS_CERT_ID_V2 *cid; in ESS_CERT_ID_V2_new_init() local
215 return cid; in ESS_CERT_ID_V2_new_init()
242 return cid; in ESS_CERT_ID_V2_new_init()
287 if (cid != NULL) in find()
317 if (memcmp(cid != NULL ? cid->hash->data : cid_v2->hash->data, in find()
[all …]
/openssl/crypto/ocsp/
H A Docsp_lib.c50 OCSP_CERTID *cid = NULL; in OCSP_cert_id_new() local
53 if ((cid = OCSP_CERTID_new()) == NULL) in OCSP_cert_id_new()
56 alg = &cid->hashAlgorithm; in OCSP_cert_id_new()
70 if (!(ASN1_OCTET_STRING_set(&cid->issuerNameHash, md, i))) in OCSP_cert_id_new()
77 if (!(ASN1_OCTET_STRING_set(&cid->issuerKeyHash, md, i))) in OCSP_cert_id_new()
81 if (ASN1_STRING_copy(&cid->serialNumber, serialNumber) == 0) in OCSP_cert_id_new()
84 return cid; in OCSP_cert_id_new()
88 OCSP_CERTID_free(cid); in OCSP_cert_id_new()
H A Docsp_vfy.c22 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid,
269 OCSP_CERTID *tmpid, *cid; in ocsp_check_ids() local
278 cid = sk_OCSP_SINGLERESP_value(sresp, 0)->certId; in ocsp_check_ids()
284 if (OCSP_id_issuer_cmp(cid, tmpid)) { in ocsp_check_ids()
287 cid->hashAlgorithm.algorithm)) in ocsp_check_ids()
295 *ret = cid; in ocsp_check_ids()
303 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid, in ocsp_match_issuerid() argument
310 if (cid != NULL) { in ocsp_match_issuerid()
335 if (cid->issuerNameHash.length != mdlen || in ocsp_match_issuerid()
336 cid->issuerKeyHash.length != mdlen) { in ocsp_match_issuerid()
[all …]
H A Docsp_srv.c40 ASN1_INTEGER **pserial, OCSP_CERTID *cid) in OCSP_id_get0_info() argument
42 if (!cid) in OCSP_id_get0_info()
45 *pmd = cid->hashAlgorithm.algorithm; in OCSP_id_get0_info()
47 *piNameHash = &cid->issuerNameHash; in OCSP_id_get0_info()
49 *pikeyHash = &cid->issuerKeyHash; in OCSP_id_get0_info()
51 *pserial = &cid->serialNumber; in OCSP_id_get0_info()
86 OCSP_CERTID *cid, in OCSP_basic_add1_status() argument
112 if ((single->certId = OCSP_CERTID_dup(cid)) == NULL) in OCSP_basic_add1_status()
H A Docsp_ext.c363 OCSP_CRLID *cid = NULL; in OCSP_crlID_new() local
365 if ((cid = OCSP_CRLID_new()) == NULL) in OCSP_crlID_new()
368 if ((cid->crlUrl = ASN1_IA5STRING_new()) == NULL) in OCSP_crlID_new()
370 if (!(ASN1_STRING_set(cid->crlUrl, url, -1))) in OCSP_crlID_new()
374 if ((cid->crlNum = ASN1_INTEGER_new()) == NULL) in OCSP_crlID_new()
376 if (!(ASN1_INTEGER_set(cid->crlNum, *n))) in OCSP_crlID_new()
380 if ((cid->crlTime = ASN1_GENERALIZEDTIME_new()) == NULL) in OCSP_crlID_new()
382 if (!(ASN1_GENERALIZEDTIME_set_string(cid->crlTime, tim))) in OCSP_crlID_new()
385 x = X509V3_EXT_i2d(NID_id_pkix_OCSP_CrlID, 0, cid); in OCSP_crlID_new()
387 OCSP_CRLID_free(cid); in OCSP_crlID_new()
H A Docsp_prn.c93 OCSP_CERTID *cid = NULL; in OCSP_REQUEST_print() local
112 cid = one->reqCert; in OCSP_REQUEST_print()
113 ocsp_certid_print(bp, cid, 8); in OCSP_REQUEST_print()
138 OCSP_CERTID *cid = NULL; in OCSP_RESPONSE_print() local
193 cid = single->certId; in OCSP_RESPONSE_print()
194 if (ocsp_certid_print(bp, cid, 4) <= 0) in OCSP_RESPONSE_print()
/openssl/ssl/quic/
H A Dquic_lcidm.c32 QUIC_CONN_ID cid; member
79 return bin_hash(lcid_obj->cid.id, lcid_obj->cid.id_len); in lcid_hash()
84 return !ossl_quic_conn_id_eq(&a->cid, &b->cid); in lcid_comp()
169 key.cid = *lcid; in lcidm_get0_lcid()
171 if (key.cid.id_len > QUIC_MAX_CONN_ID_LEN) in lcidm_get0_lcid()
252 lcid_obj->cid = *lcid; in lcidm_conn_new_lcid()
297 *cid = lcidm->next_lcid; in lcidm_generate_cid()
339 key.cid = *lcid_out; in lcidm_generate()
373 key.cid = *initial_odcid; in ossl_quic_lcidm_enrol_odcid()
525 key.cid = *lcid; in ossl_quic_lcidm_debug_remove()
[all …]
H A Dquic_types.c15 QUIC_CONN_ID *cid) in ossl_quic_gen_rand_conn_id() argument
20 cid->id_len = (unsigned char)len; in ossl_quic_gen_rand_conn_id()
22 if (RAND_bytes_ex(libctx, cid->id, len, len * 8) != 1) { in ossl_quic_gen_rand_conn_id()
24 cid->id_len = 0; in ossl_quic_gen_rand_conn_id()
H A Dquic_rcidm.c129 QUIC_CONN_ID cid; /* The actual CID string for this RCID */ member
265 assert(rcid->cid.id_len > 0 && rcid->cid.id_len <= QUIC_MAX_CONN_ID_LEN); in rcidm_check_rcid()
342 const QUIC_CONN_ID *cid, in rcidm_create_rcid() argument
347 if (cid->id_len < 1 || cid->id_len > QUIC_MAX_CONN_ID_LEN in rcidm_create_rcid()
357 rcid->cid = *cid; in rcidm_create_rcid()
505 rcidm_set_preferred_rcid(rcidm, &rcidm->cur_rcid->cid); in rcidm_update()
H A Dquic_wire.c431 const QUIC_CONN_ID *cid) in ossl_quic_wire_encode_transport_param_cid() argument
433 if (cid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_wire_encode_transport_param_cid()
437 cid->id, in ossl_quic_wire_encode_transport_param_cid()
438 cid->id_len) == NULL) in ossl_quic_wire_encode_transport_param_cid()
961 QUIC_CONN_ID *cid) in ossl_quic_wire_decode_transport_param_cid() argument
970 cid->id_len = (unsigned char)len; in ossl_quic_wire_decode_transport_param_cid()
971 memcpy(cid->id, body, cid->id_len); in ossl_quic_wire_decode_transport_param_cid()
1000 || !PACKET_copy_bytes(&pkt2, p->cid.id, cidl) in ossl_quic_wire_decode_transport_param_preferred_addr()
1007 p->cid.id_len = (unsigned char)cidl; in ossl_quic_wire_decode_transport_param_preferred_addr()
/openssl/crypto/x509/
H A Dpcy_data.c39 const ASN1_OBJECT *cid, int crit) in ossl_policy_data_new() argument
44 if (policy == NULL && cid == NULL) in ossl_policy_data_new()
46 if (cid) { in ossl_policy_data_new()
47 id = OBJ_dup(cid); in ossl_policy_data_new()
/openssl/crypto/crmf/
H A Dcrmf_lib.c180 OSSL_CRMF_CERTID *cid = NULL; in IMPLEMENT_CRMF_CTRL_FUNC() local
187 if ((cid = OSSL_CRMF_CERTID_new()) == NULL) in IMPLEMENT_CRMF_CTRL_FUNC()
190 if (!X509_NAME_set(&cid->issuer->d.directoryName, issuer)) in IMPLEMENT_CRMF_CTRL_FUNC()
192 cid->issuer->type = GEN_DIRNAME; in IMPLEMENT_CRMF_CTRL_FUNC()
194 ASN1_INTEGER_free(cid->serialNumber); in IMPLEMENT_CRMF_CTRL_FUNC()
198 return cid; in IMPLEMENT_CRMF_CTRL_FUNC()
201 OSSL_CRMF_CERTID_free(cid); in IMPLEMENT_CRMF_CTRL_FUNC()
577 return cid != NULL && cid->issuer->type == GEN_DIRNAME ? in OSSL_CRMF_CERTID_get0_issuer()
578 cid->issuer->d.directoryName : NULL; in OSSL_CRMF_CERTID_get0_issuer()
582 *cid) in OSSL_CRMF_CERTID_get0_serialNumber() argument
[all …]
/openssl/doc/man3/
H A DOCSP_REQUEST_new.pod16 OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);
34 OCSP_request_add0_id() adds certificate ID B<cid> to B<req>. It returns
59 OCSP_request_add0_id() returns the B<OCSP_ONEREQ> structure containing B<cid>
85 OCSP_ID *cid;
90 cid = OCSP_cert_to_id(EVP_sha1(), cert, issuer);
91 if (cid == NULL)
94 if (OCSP_REQUEST_add0_id(req, cid) == NULL)
H A DOSSL_CRMF_MSG_get0_tmpl.pod34 *OSSL_CRMF_CERTID_get0_serialNumber(const OSSL_CRMF_CERTID *cid);
35 const X509_NAME *OSSL_CRMF_CERTID_get0_issuer(const OSSL_CRMF_CERTID *cid);
64 of the given CertId I<cid>.
67 of the given CertId I<cid>, which must be of ASN.1 type GEN_DIRNAME.
H A DOCSP_cert_to_id.pod27 ASN1_INTEGER **pserial, OCSP_CERTID *cid);
48 serial number contained in B<cid>. If any of the values are not required the
/openssl/test/
H A Docspapitest.c74 OCSP_CERTID *cid = NULL; in make_dummy_resp() local
90 cid = OCSP_cert_id_new(EVP_sha256(), name, key, serial); in make_dummy_resp()
94 || !TEST_ptr(cid) in make_dummy_resp()
95 || !TEST_true(OCSP_basic_add1_status(bs, cid, in make_dummy_resp()
106 OCSP_CERTID_free(cid); in make_dummy_resp()
H A Dcmp_msg_test.c430 OSSL_CRMF_CERTID *cid = NULL; in execute_rp_create() local
440 || (cid = OSSL_CRMF_CERTID_gen(issuer, serial)) == NULL in execute_rp_create()
441 || (rpmsg = ossl_cmp_rp_new(fixture->cmp_ctx, si, cid, 1)) == NULL) in execute_rp_create()
454 OSSL_CRMF_CERTID_free(cid); in execute_rp_create()
/openssl/fuzz/
H A Dquic-rcidm.c62 static int get_cid(PACKET *pkt, QUIC_CONN_ID *cid) in get_cid() argument
68 || !PACKET_copy_bytes(pkt, cid->id, cidl)) in get_cid()
71 cid->id_len = (unsigned char)cidl; in get_cid()
H A Dquic-lcidm.c53 static int get_cid(PACKET *pkt, QUIC_CONN_ID *cid) in get_cid() argument
59 || !PACKET_copy_bytes(pkt, cid->id, cidl)) in get_cid()
62 cid->id_len = (unsigned char)cidl; in get_cid()
/openssl/apps/
H A Docsp.c1037 OCSP_CERTID *cid; in make_ocsp_response() local
1068 cid = OCSP_onereq_get0_id(one); in make_ocsp_response()
1070 OCSP_id_get0_info(NULL, &cert_id_md_oid, NULL, NULL, cid); in make_ocsp_response()
1082 if (OCSP_id_issuer_cmp(ca_id, cid) == 0) { in make_ocsp_response()
1089 OCSP_id_get0_info(NULL, NULL, NULL, &serial, cid); in make_ocsp_response()
1093 cid = (cid_resp_md != NULL) ? cid_resp_md : cid; in make_ocsp_response()
1096 OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1102 OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1106 OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1117 single = OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
/openssl/crypto/cmp/
H A Dcmp_msg.c351 OSSL_CRMF_CERTID *cid = in OSSL_CMP_CTX_setup_CRM() local
356 if (cid == NULL) in OSSL_CMP_CTX_setup_CRM()
358 ret = OSSL_CRMF_MSG_set1_regCtrl_oldCertID(crm, cid); in OSSL_CMP_CTX_setup_CRM()
359 OSSL_CRMF_CERTID_free(cid); in OSSL_CMP_CTX_setup_CRM()
582 const OSSL_CRMF_CERTID *cid, int unprotectedErrors) in ossl_cmp_rp_new() argument
606 if (cid != NULL) { in ossl_cmp_rp_new()
607 if ((cid_copy = OSSL_CRMF_CERTID_dup(cid)) == NULL) in ossl_cmp_rp_new()
966 OSSL_CRMF_CERTID *cid = NULL; in ossl_cmp_revrepcontent_get_CertId() local
971 if ((cid = sk_OSSL_CRMF_CERTID_value(rrep->revCerts, rsid)) != NULL) in ossl_cmp_revrepcontent_get_CertId()
972 return cid; in ossl_cmp_revrepcontent_get_CertId()
/openssl/include/internal/
H A Dquic_wire.h472 const QUIC_CONN_ID *cid);
767 QUIC_CONN_ID *cid);
776 QUIC_CONN_ID cid; member
H A Dquic_types.h95 QUIC_CONN_ID *cid);
/openssl/include/openssl/
H A Dcrmf.h.in127 const OSSL_CRMF_CERTID *cid);
172 *OSSL_CRMF_CERTID_get0_issuer(const OSSL_CRMF_CERTID *cid);
174 *OSSL_CRMF_CERTID_get0_serialNumber(const OSSL_CRMF_CERTID *cid);
/openssl/doc/designs/quic-design/
H A Dconnection-id-cache.md120 int ossl_quic_conn_id_set(QUIC_CONN_ID *cid, unsigned char *id,
123 int ossl_quic_conn_id_generate(QUIC_CONN_ID *cid);
155 const QUIC_CONNECTION *conn, QUIC_CONN_ID **cid);
189 QUIC_CONN_ID **cid);

Completed in 46 milliseconds

12