Matt Caswell [Fri, 13 Sep 2024 15:25:46 +0000 (16:25 +0100)]
Remove an obsolete comment
The comment is no longer accurance so it can be removed
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25457)
Matt Caswell [Fri, 13 Sep 2024 15:00:22 +0000 (16:00 +0100)]
Simplify the QUIC time override handling
Centralise the storage of the override in the QUIC_ENGINE rather than in
the QUIC_CONNECTION. We can now set the override on any type of QUIC SSL
object as needed.
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25457)
Viktor Dukhovni [Wed, 11 Sep 2024 09:44:43 +0000 (19:44 +1000)]
Handle a couple of NULL QUIC ctx.qc values
Now that we also QUIC server (listener) handles, we may have a NULL quic
connection (ctx.qc), and so need to either return early or handle the
NULL `qc` gracefully.
Reviewed-by: Sasa Nedvedicky <sashan@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25432)
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 13 May 2024 18:22:10 +0000 (19:22 +0100)]
Minor fix for Windows
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 11:36:21 +0000 (12:36 +0100)]
QUIC RADIX: Test domain functions as well
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 11:36:01 +0000 (12:36 +0100)]
QUIC: Add basic domain flags test
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 11:35:39 +0000 (12:35 +0100)]
Assorted bugfixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 09:52:32 +0000 (10:52 +0100)]
Doc fixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 09:24:30 +0000 (10:24 +0100)]
Allow use of socketpair, WSASocketA
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 09:20:39 +0000 (10:20 +0100)]
Minor fixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Mon, 29 Apr 2024 09:13:56 +0000 (10:13 +0100)]
RIO NOTIFIER: Fix symbol usage
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 12:52:26 +0000 (13:52 +0100)]
QUIC OBJ: Require blocking support in the domain flags to use blocking mode
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 09:04:25 +0000 (10:04 +0100)]
make update
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 12:22:49 +0000 (13:22 +0100)]
QUIC: Update listener documentation
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 12:20:44 +0000 (13:20 +0100)]
QUIC: Add documentation on concurrency model
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 12:17:06 +0000 (13:17 +0100)]
QUIC: Document SSL_new_domain, etc.
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 12:01:44 +0000 (13:01 +0100)]
QUIC APL: Refine domain flag handling
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 11:47:18 +0000 (12:47 +0100)]
QUIC CHANNEL: Notify other threads when needed
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 11:46:34 +0000 (12:46 +0100)]
QUIC REACTOR: Allow ticks to schedule notifications of other threads
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 11:26:40 +0000 (12:26 +0100)]
QUIC ENGINE: Notify when ticking
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 11:24:22 +0000 (12:24 +0100)]
QUIC REACTOR: Inter-thread notification
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 10:02:11 +0000 (11:02 +0100)]
QUIC APL: Default domain flags
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 09:53:54 +0000 (10:53 +0100)]
QUIC REACTOR: Integrate RIO NOTIFIER
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 09:53:43 +0000 (10:53 +0100)]
RIO: Add OS notifier
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 09:27:14 +0000 (10:27 +0100)]
QUIC APL: Use domain flag to determine thread assisted mode
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Hugo Landau [Wed, 24 Apr 2024 09:24:45 +0000 (10:24 +0100)]
QUIC APL: Add support for configuring domain flags
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)
ossl-nghttp3-demo-server.c: Fix compatibility with various clients
Fixes openssl/project#752
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24946)
Hugo Landau [Mon, 8 Apr 2024 14:12:24 +0000 (15:12 +0100)]
QUIC RADIX: Fix simple_conn test
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24064)
Hugo Landau [Thu, 21 Mar 2024 10:47:21 +0000 (10:47 +0000)]
Minor fixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 21 Mar 2024 10:44:04 +0000 (10:44 +0000)]
Minor doc fix
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Sun, 10 Mar 2024 00:29:07 +0000 (00:29 +0000)]
QUIC APL: Avoid having a mutex variable where not needed
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Sun, 10 Mar 2024 00:19:43 +0000 (00:19 +0000)]
QUIC OBJ: Use QUIC_OBJ pointer for parent references
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Sat, 9 Mar 2024 12:16:51 +0000 (12:16 +0000)]
Post-rebase fixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 17:22:53 +0000 (17:22 +0000)]
QUIC APL: Fix bug around default XSO handling on server side
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 17:32:51 +0000 (17:32 +0000)]
QUIC APL: Fix refcounting for listeners
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 16:31:23 +0000 (16:31 +0000)]
QUIC PORT: Allow QUIC_PORT to throw away incoming connections
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 16:17:37 +0000 (16:17 +0000)]
QUIC APL: Fix server API bugs discovered during test
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 14:38:04 +0000 (14:38 +0000)]
QUIC APL: Implement SSL_get0_listener
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 14:19:46 +0000 (14:19 +0000)]
QUIC APL: Free listeners correctly
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Mon, 5 Feb 2024 13:34:01 +0000 (13:34 +0000)]
QUIC APL: Fix QUIC_TLS free order
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 18 Jan 2024 16:33:27 +0000 (16:33 +0000)]
Minor fix to BIO refcount handling
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 18 Jan 2024 15:31:41 +0000 (15:31 +0000)]
Minor fixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 18 Jan 2024 15:23:38 +0000 (15:23 +0000)]
QUIC APL: Add TODOs for unfinished listener APIs
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 18 Jan 2024 14:36:30 +0000 (14:36 +0000)]
QUIC: Add manpage for listener API
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 18 Jan 2024 13:56:24 +0000 (13:56 +0000)]
make update
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 11 Jan 2024 15:22:59 +0000 (15:22 +0000)]
QUIC APL: Refactor block_until_pred
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Hugo Landau [Thu, 11 Jan 2024 13:20:05 +0000 (13:20 +0000)]
QUIC APL: Implement base listener API, move addressing mode handling into PORT
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)