Home
last modified time | relevance | path

Searched refs:srtm (Results 1 – 10 of 10) sorted by relevance

/openssl/ssl/quic/
H A Dquic_srtm.c112 QUIC_SRTM *srtm = NULL; in ossl_quic_srtm_new() local
119 if ((srtm = OPENSSL_zalloc(sizeof(*srtm))) == NULL) in ossl_quic_srtm_new()
140 return srtm; in ossl_quic_srtm_new()
166 if (srtm == NULL) in ossl_quic_srtm_free()
176 OPENSSL_free(srtm); in ossl_quic_srtm_free()
309 if (!srtm_check_lh(srtm, srtm->items_fwd)) { in ossl_quic_srtm_add()
317 if (!srtm_check_lh(srtm, srtm->items_fwd)) { in ossl_quic_srtm_add()
329 if (!srtm_check_lh(srtm, srtm->items_rev)) in ossl_quic_srtm_add()
341 if (!srtm_check_lh(srtm, srtm->items_rev)) in ossl_quic_srtm_add()
364 if (!srtm_check_lh(srtm, srtm->items_rev)) in srtm_remove_from_rev()
[all …]
H A Dquic_port.c82 if ((port->srtm = ossl_quic_srtm_new(port->engine->libctx, in port_init()
110 ossl_quic_srtm_free(port->srtm); in port_cleanup()
111 port->srtm = NULL; in port_cleanup()
315 args.srtm = port->srtm; in port_make_channel()
478 if (!ossl_quic_srtm_lookup(port->srtm, in port_try_handle_stateless_reset()
H A Dquic_port_local.h72 QUIC_SRTM *srtm; member
H A Dquic_channel_local.h50 QUIC_SRTM *srtm; member
H A Dquic_channel.c171 if (ch->port == NULL || ch->lcidm == NULL || ch->srtm == NULL) in ch_init()
376 ossl_quic_srtm_cull(ch->srtm, ch); in ch_cleanup()
430 ch->srtm = args->srtm; in ossl_quic_channel_new()
1514 if (!ossl_quic_srtm_add(ch->srtm, ch, ch->cur_remote_seq_num, in ch_on_transport_params()
2971 ossl_quic_srtm_remove(ch->srtm, ch, seq_num); in ch_enqueue_retire_conn_id()
3076 if (!ossl_quic_srtm_add(ch->srtm, ch, new_remote_seq_num, in ossl_quic_channel_on_new_conn_id()
/openssl/test/
H A Dquic_srtm_test.c26 QUIC_SRTM *srtm; in test_srtm() local
30 if (!TEST_ptr(srtm = ossl_quic_srtm_new(NULL, NULL))) in test_srtm()
33 if (!TEST_true(ossl_quic_srtm_add(srtm, ptrs + 0, 0, &token_1)) in test_srtm()
35 || !TEST_false(ossl_quic_srtm_remove(srtm, ptrs + 0, 1)) in test_srtm()
36 || !TEST_false(ossl_quic_srtm_remove(srtm, ptrs + 3, 0)) in test_srtm()
37 || !TEST_true(ossl_quic_srtm_cull(srtm, ptrs + 3)) in test_srtm()
38 || !TEST_true(ossl_quic_srtm_cull(srtm, ptrs + 3)) in test_srtm()
45 || !TEST_true(ossl_quic_srtm_remove(srtm, ptrs + 3, 3)) in test_srtm()
62 || !TEST_true(ossl_quic_srtm_cull(srtm, ptrs + 0)) in test_srtm()
69 || !TEST_true(ossl_quic_srtm_remove(srtm, ptrs + 2, 0)) in test_srtm()
[all …]
/openssl/fuzz/
H A Dquic-srtm.c48 QUIC_SRTM *srtm = NULL; in FuzzerTestOneInput() local
55 if ((srtm = ossl_quic_srtm_new(NULL, NULL)) == NULL) { in FuzzerTestOneInput()
80 ossl_quic_srtm_add(srtm, (void *)(uintptr_t)arg_opaque, in FuzzerTestOneInput()
82 ossl_quic_srtm_check(srtm); in FuzzerTestOneInput()
90 ossl_quic_srtm_remove(srtm, (void *)(uintptr_t)arg_opaque, in FuzzerTestOneInput()
92 ossl_quic_srtm_check(srtm); in FuzzerTestOneInput()
99 ossl_quic_srtm_cull(srtm, (void *)(uintptr_t)arg_opaque); in FuzzerTestOneInput()
100 ossl_quic_srtm_check(srtm); in FuzzerTestOneInput()
109 ossl_quic_srtm_lookup(srtm, &arg_token, (size_t)arg_idx, in FuzzerTestOneInput()
111 ossl_quic_srtm_check(srtm); in FuzzerTestOneInput()
[all …]
H A Dbuild.info34 PROGRAMS{noinst}=quic-client quic-srtm quic-lcidm quic-rcidm
121 SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c
122 INCLUDE[quic-srtm]=../include {- $ex_inc -}
123 DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -}
169 PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test
258 SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c
259 INCLUDE[quic-srtm-test]=../include
260 DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a
/openssl/include/internal/
H A Dquic_srtm.h62 void ossl_quic_srtm_free(QUIC_SRTM *srtm);
69 int ossl_quic_srtm_add(QUIC_SRTM *srtm, void *opaque, uint64_t seq_num,
76 int ossl_quic_srtm_remove(QUIC_SRTM *srtm, void *opaque, uint64_t seq_num);
99 int ossl_quic_srtm_lookup(QUIC_SRTM *srtm,
105 void ossl_quic_srtm_check(const QUIC_SRTM *srtm);
H A Dquic_channel.h118 QUIC_SRTM *srtm; member

Completed in 45 milliseconds