| /src/crypto/external/apache2/openssl/dist/test/ |
| quic_lcidm_test.c | 24 QUIC_LCIDM *lcidm; local 32 if (!TEST_ptr(lcidm = ossl_quic_lcidm_new(NULL, lcid_len))) 35 if (!TEST_size_t_eq(ossl_quic_lcidm_get_lcid_len(lcidm), lcid_len)) 38 if (!TEST_true(ossl_quic_lcidm_enrol_odcid(lcidm, ptrs + 0, &cid8_1)) 39 || !TEST_false(ossl_quic_lcidm_enrol_odcid(lcidm, ptrs + 0, &cid8_2)) 40 || !TEST_false(ossl_quic_lcidm_enrol_odcid(lcidm, ptrs + 1, &cid8_1)) 41 || !TEST_size_t_eq(ossl_quic_lcidm_get_num_active_lcid(lcidm, ptrs + 1), 0) 42 || !TEST_true(ossl_quic_lcidm_enrol_odcid(lcidm, ptrs + 1, &cid8_3)) 43 || !TEST_false(ossl_quic_lcidm_enrol_odcid(lcidm, ptrs + 1, &cid8_4)) 44 || !TEST_size_t_eq(ossl_quic_lcidm_get_num_active_lcid(lcidm, ptrs + 0), 1 [all...] |
| /src/crypto/external/apache2/openssl/dist/include/internal/ |
| quic_lcidm.h | 64 * contents of the opaque retry token.) Thus, the LCIDM is not actually involved 93 * In any case, this means that the LCIDM must necessarily support LCIDs of 101 * Creates a new LCIDM. lcid_len is the length to use for LCIDs in bytes, which 108 /* Frees a LCIDM. */ 109 void ossl_quic_lcidm_free(QUIC_LCIDM *lcidm); 111 /* Gets the local CID length this LCIDM was configured to use. */ 112 size_t ossl_quic_lcidm_get_lcid_len(const QUIC_LCIDM *lcidm); 118 size_t ossl_quic_lcidm_get_num_active_lcid(const QUIC_LCIDM *lcidm, 143 int ossl_quic_lcidm_enrol_odcid(QUIC_LCIDM *lcidm, void *opaque, 154 int ossl_quic_lcidm_retire_odcid(QUIC_LCIDM *lcidm, void *opaque) [all...] |
| quic_channel.h | 115 /* LCIDM to register LCIDs with. */ 116 QUIC_LCIDM *lcidm; member in struct:quic_channel_args_st
|
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_lcidm.c | 36 /* copy of the hash key from lcidm */ 113 QUIC_LCIDM *lcidm = NULL; local 118 if ((lcidm = OPENSSL_zalloc(sizeof(*lcidm))) == NULL) 122 if (!RAND_bytes_ex(libctx, (unsigned char *)&lcidm->hash_key, 126 if ((lcidm->lcids = lh_QUIC_LCID_new(lcid_hash, lcid_comp)) == NULL) 129 if ((lcidm->conns = lh_QUIC_LCIDM_CONN_new(lcidm_conn_hash, 134 lcidm->libctx = libctx; 135 lcidm->lcid_len = lcid_len; 136 return lcidm; [all...] |
| quic_port_local.h | 80 /* LCIDM used for incoming packet routing by DCID. */ 81 QUIC_LCIDM *lcidm; member in struct:quic_port_st
|
| quic_channel_local.h | 74 /* Port LCIDM we use to register LCIDs. */ 75 QUIC_LCIDM *lcidm; member in struct:quic_channel_st
|
| quic_port.c | 160 if ((port->lcidm = ossl_quic_lcidm_new(port->engine->libctx, 204 ossl_quic_lcidm_free(port->lcidm); 205 port->lcidm = NULL; 517 args.lcidm = port->lcidm; 1140 ok = ossl_quic_lcidm_get_unused_cid(port->lcidm, &hdr.src_conn_id); 1399 if (!ossl_quic_lcidm_get_unused_cid(port->lcidm, odcid)) 1505 && ossl_quic_lcidm_lookup(port->lcidm, dcid, NULL,
|
| quic_channel.c | 167 if (ch->port == NULL || ch->lcidm == NULL || ch->srtm == NULL) 256 && !ossl_quic_lcidm_generate_initial(ch->lcidm, ch, &ch->init_scid)) 398 ossl_quic_lcidm_cull(ch->lcidm, ch); 469 ch->lcidm = args->lcidm; 3670 /* Register the peer ODCID in the LCIDM. */ 3671 if (!ossl_quic_lcidm_enrol_odcid(ch->lcidm, ch, peer_odcid == NULL ? &ch->init_dcid : peer_odcid)) 3688 if (!ossl_quic_lcidm_generate_initial(ch->lcidm, ch, &ch->cur_local_cid)) 3728 if (!ossl_quic_lcidm_bind_channel(ch->lcidm, ch, peer_dcid)) 3955 /* Remove the current LCID from the LCIDM. * [all...] |
| /src/crypto/external/apache2/openssl/dist/fuzz/ |
| quic-lcidm.c | 69 QUIC_LCIDM *lcidm = NULL; local 88 if ((lcidm = ossl_quic_lcidm_new(NULL, lcidl)) == NULL) { 108 ossl_quic_lcidm_enrol_odcid(lcidm, (void *)(uintptr_t)arg_opaque, 118 ossl_quic_lcidm_retire_odcid(lcidm, (void *)(uintptr_t)arg_opaque); 127 ossl_quic_lcidm_generate_initial(lcidm, (void *)(uintptr_t)arg_opaque, 137 ossl_quic_lcidm_generate(lcidm, (void *)(uintptr_t)arg_opaque, 148 ossl_quic_lcidm_retire(lcidm, (void *)(uintptr_t)arg_opaque, 160 ossl_quic_lcidm_cull(lcidm, (void *)(uintptr_t)arg_opaque); 169 ossl_quic_lcidm_lookup(lcidm, &arg_cid, &seq_num_out, &opaque_out); 179 ossl_quic_lcidm_free(lcidm); [all...] |