dep-openssl/include/internal
Nikola Pajkovsky 63afe63914 quic: report SRTM entry match status via an output argument
Coverity (CID 1696969, CHECKED_RETURN) flagged the ignored return value of
ossl_quic_srtm_remove() in ch_enqueue_retire_conn_id(). The return value
could not be usefully checked because 0 was overloaded to mean both "no
matching entry" and a genuine internal failure (alloc_failed or an
lhash consistency error).

Give the return value a single meaning (1 on success, 0 on internal
error) and report whether a matching entry was found through a new
uint8_t *match output argument, which may be NULL if the caller does not
need it.

Resolved: https://scan5.scan.coverity.com/#/project-view/65138/10222?selectedIssue=1696969
Signed-off-by: Nikola Pajkovsky <nikola@pajkovsky.cz>

Reviewed-by: Bob Beck <beck@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
MergeDate: Tue Jul 21 09:24:45 2026
(Merged from https://github.com/openssl/openssl/pull/31974)
2026-07-21 11:24:37 +02:00
..
__DECC_INCLUDE_EPILOGUE.H Following the license change, modify the boilerplates in include/ and crypto/include/ 2018-12-06 15:57:31 +01:00
__DECC_INCLUDE_PROLOGUE.H Following the license change, modify the boilerplates in include/ and crypto/include/ 2018-12-06 15:57:31 +01:00
asn1.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
bio.h Fix MINGW compilation 2026-03-25 15:12:53 +01:00
bio_addr.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
bio_tfo.h Add missing include guards in include 2026-05-06 13:35:24 +02:00
cms.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
common.h Move common macro definitions to internal/common.h and fix comments. 2026-06-11 17:51:31 +02:00
comp.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
conf.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
constant_time.h Add valgrind CT support to ML-DSA 2026-04-22 09:55:12 +02:00
core.h Extend refcounting on evp objects to provider requesed no-caching 2026-07-02 10:24:10 -04:00
crmf.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
cryptlib.h Avoid needless casting away of const in X509_VERIFY_PARAM_get1_ip_asc 2026-05-02 20:07:12 +02:00
dane.h make includes self-contained 2026-05-06 13:35:24 +02:00
deprecated.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
der.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
deterministic_nonce.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
dso.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
dsoerr.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
e_os.h Use more recent default for _WIN32_WINNT 2026-07-01 11:14:10 +02:00
e_winsock.h Drop Windows CE support. 2026-06-25 09:26:55 +02:00
ech_helpers.h make includes self-contained 2026-05-06 13:35:24 +02:00
encoder.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
endian.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
err.h Copyright year updates 2026-03-10 14:37:52 +00:00
ffc.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
fips.h Add IKEV2KDF implementation 2026-03-24 18:21:19 +01:00
hashfunc.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
hashtable.h include/internal/hashtable.h: avoid OOB read in ossl_ht_strcase() 2026-06-24 15:09:20 +02:00
hpke_util.h make includes self-contained 2026-05-06 13:35:24 +02:00
json_enc.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
ktls.h Copyright year updates 2026-03-10 14:37:52 +00:00
list.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
mem_alloc_utils.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
namemap.h Add missing include guards in include 2026-05-06 13:35:24 +02:00
nelem.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
numbers.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
o_dir.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
packet.h Copyright year updates 2026-03-10 14:37:52 +00:00
packet_quic.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
param_build_set.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
params.h Add missing include guards in include 2026-05-06 13:35:24 +02:00
passphrase.h make includes self-contained 2026-05-06 13:35:24 +02:00
priority_queue.h fix UB in priority_queue 2026-05-19 12:43:54 +02:00
property.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
propertyerr.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
provider.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
qlog.h make includes self-contained 2026-05-06 13:35:24 +02:00
qlog_event_helpers.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
qlog_events.inc qlog_events.h is not a self-contained header file 2026-05-06 13:35:24 +02:00
quic_ackm.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_cc.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_cfq.h QUIC stack must limit the number of PATH_CHALLENGE frames processed in RX 2026-06-11 17:08:41 +02:00
quic_channel.h Add test for path challenge flood mitigation 2026-06-11 17:08:41 +02:00
quic_demux.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_engine.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_error.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_fc.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_fifd.h QUIC stack must limit the number of PATH_CHALLENGE frames processed in RX 2026-06-11 17:08:41 +02:00
quic_lcidm.h Fix typos 2026-07-08 12:45:09 +02:00
quic_port.h quic: fix incoming port cleanup on failure 2026-05-12 08:00:59 -04:00
quic_predef.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_rcidm.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_reactor.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_reactor_wait_ctx.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_record_rx.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_record_tx.h QUIC: Make more transport parameters configurable 2026-03-17 09:15:04 -04:00
quic_record_util.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_rx_depack.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_sf_list.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_srt_gen.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_srtm.h quic: report SRTM entry match status via an output argument 2026-07-21 11:24:37 +02:00
quic_ssl.h remove ossl_quic_detach_stream() and ossl_quic_attach_stream() 2026-04-26 15:26:32 +02:00
quic_statm.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_stream.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_stream_map.h Make SSL_get_stream_write_state() safe for concluded streams 2026-04-28 14:34:12 +02:00
quic_thread_assist.h make includes self-contained 2026-05-06 13:35:24 +02:00
quic_tls.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_trace.h make includes self-contained 2026-05-06 13:35:24 +02:00
quic_tserver.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_txp.h QUIC: Make more transport parameters configurable 2026-03-17 09:15:04 -04:00
quic_txpim.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
quic_types.h quic: fix off-by-one in QUIC_MAX_MAX_ACK_DELAY 2026-03-24 18:55:43 +01:00
quic_vlint.h Fix typos 2026-07-08 12:45:09 +02:00
quic_wire.h Fix typos 2026-07-08 12:45:09 +02:00
quic_wire_pkt.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
rcu.h Fix ignored call in ossl_rcu_call when cb item alloc fails 2026-05-11 10:21:48 +02:00
recordmethod.h Removes unused args for new record layers. 2026-06-16 09:14:03 +02:00
refcount.h Make sure we always check return of CRYPTO_UP_REF which can fail. 2026-07-20 13:13:57 +02:00
ring_buf.h make includes self-contained 2026-05-06 13:35:24 +02:00
rio_notifier.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
safe_math.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
sha3.h ML-DSA: Add AVX512VL SHAKE x4 multi-buffer integration 2026-07-13 17:55:51 +02:00
sizes.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
skey.h make includes self-contained 2026-05-06 13:35:24 +02:00
sm3.h make includes self-contained 2026-05-06 13:35:24 +02:00
sockets.h Drop Windows CE support. 2026-06-25 09:26:55 +02:00
ssl.h Copyright year updates 2026-03-10 14:37:52 +00:00
ssl3_cbc.h Removes some stale SSLv3 support around the code and updated documentation to reflect removal. 2026-06-30 13:04:17 +02:00
ssl_unwrap.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
sslconf.h make includes self-contained 2026-05-06 13:35:24 +02:00
statem.h make includes self-contained 2026-05-06 13:35:24 +02:00
symhacks.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
thread.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
thread_arch.h Remove direct includes of windows.h where possible 2026-06-20 07:00:32 -04:00
thread_once.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
threads_common.h Fix OSSL_ATOMICS_LOCKLESS detection for Windows toolchains 2026-06-22 09:14:04 +02:00
time.h Unbreak some function signature that got broken up after the return type 2025-12-17 10:19:43 -05:00
tlsgroups.h make includes self-contained 2026-05-06 13:35:24 +02:00
tlssigalgs.h Add TLS 1.3 SignatureScheme definitions for SLH-DSA 2026-06-23 18:29:43 +02:00
to_hex.h make includes self-contained 2026-05-06 13:35:24 +02:00
tsan_assist.h Drop Windows CE support. 2026-06-25 09:26:55 +02:00
uint_set.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
unicode.h Deprecate UTF8_putc/getc() and use uint32_t for unicode 2026-05-18 13:00:12 +02:00
zeroization.h Fix typos 2026-07-08 12:45:09 +02:00