Bob Beck
2fab90bb5e
4.0-POST-CLANG-FORMAT-WEBKIT
...
Reviewed-by: Saša Nedvědický <sashan@openssl.org >
Reviewed-by: Neil Horman <nhorman@openssl.org >
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/29242 )
2025-12-09 00:28:19 -07:00
openssl-machine
0c679f5566
Copyright year updates
...
Reviewed-by: Neil Horman <nhorman@openssl.org >
Reviewed-by: Matt Caswell <matt@openssl.org >
Release: yes
2025-03-12 13:35:59 +00:00
Andrew Dinh
dad45ea769
Adds a new demo blocking QUIC server for use with the existing demo QUIC clients
...
Remove util/quicserver.c
Reviewed-by: Saša Nedvědický <sashan@openssl.org >
Reviewed-by: Neil Horman <nhorman@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/25465 )
2025-02-17 11:27:33 -05:00
Neil Horman
5091aadc22
augment quic demos to support ipv4/6 connections
...
Because the quicserver utility supports expressly listening in ipv4/6
mode, its possible/likely that the server will listen on an ipv4
address, while the clients will connect via ipv6, leading to connection
failures.
Augment quic demo clients to afford them the same -6 option that the
server has so that connection family can be co-ordinated
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
Reviewed-by: Matt Caswell <matt@openssl.org >
Reviewed-by: Richard Levitte <levitte@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/22577 )
2023-11-21 13:01:54 +01:00
Matt Caswell
420037c82c
Update the QUIC demos to accept hostname/port on the command line
...
Reviewed-by: Paul Dale <pauli@openssl.org >
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Richard Levitte <levitte@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/22552 )
2023-11-02 08:14:46 +00:00
James Muir
59d8a338ed
quic: documentation and demo nits
...
The code for the quic demos (from the openssl guide) is presented as
modifications of tls-client-block.c. Make it so that the quic code
better matches the tls code (drop unneeded assignments to "ret", use
the same comment on SSL_connect(), add the same printf() statement).
Also fix some minor typos.
Reviewed-by: Paul Dale <pauli@openssl.org >
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
Reviewed-by: Matt Caswell <matt@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/22483 )
2023-10-25 09:44:32 +01:00
Matt Caswell
11b7d46fa7
Return NULL if we fail to create a BIO in the demos/quicserver
...
Strictly speaking the previous code was still correct since BIO_set_fd
is tolerant of a NULL BIO. But this way is more clear.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21950 )
2023-09-08 15:44:37 +01:00
Matt Caswell
cdedecd503
Add a missing call to BIO_closesocket()
...
A couple of the demos missed a call to this function in an error case.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21950 )
2023-09-08 15:44:37 +01:00
Matt Caswell
38c3c1dbef
Expand the explanation of how to go and do useful work in non-blocking
...
Add additional commentary to the non-blocking examples explaining where to
add code to go and do other useful work.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21950 )
2023-09-08 15:44:37 +01:00
Matt Caswell
b71784f741
Add a QUIC non-blocking demo
...
Show how to write a QUIC client using a non-blocking socket
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21950 )
2023-09-08 15:44:37 +01:00
Matt Caswell
02e36ed352
Update demos/tutorial to distinguish between stream and connection errors
...
We can use SSL_get_stream_read_state() to distinguish these cases.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21765 )
2023-08-25 11:42:51 +01:00
Matt Caswell
8d74a13160
Add some additional comments to the demos
...
Add some additional explanation for some code lines in the demos that did
not have a comment.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21765 )
2023-08-25 11:42:51 +01:00
Matt Caswell
584140fa4b
Add a QUIC multi-stream client demo
...
Demonstrate how to use the QUIC multi-stream APIs with a simple blocking
client.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21765 )
2023-08-25 11:42:51 +01:00
Matt Caswell
b7f3d5d67d
Update the desciption of shutdown in the QUIC client blocking tutorial
...
Give a better description of the shutdown process in QUIC.
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21765 )
2023-08-25 11:42:51 +01:00
Hugo Landau
ce7a9e23fb
QUIC: Rename SSL_set_initial_peer_addr to SSL_set1_initial_peer_addr
...
Fixes #21701
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Matt Caswell <matt@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21814 )
2023-08-24 11:47:57 +01:00
Dimitri Papadopoulos
4409e1522f
Fix new typo found by codespell in demo
...
Reviewed-by: Matt Caswell <matt@openssl.org >
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com >
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21322 )
2023-07-01 00:10:15 +10:00
Matt Caswell
23fe02e597
Add a non-blocking QUIC client demo
...
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Hugo Landau <hlandau@openssl.org >
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21204 )
2023-06-28 09:53:22 +10:00