diff options
author | Matt Caswell <matt@openssl.org> | 2023-08-17 10:49:17 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-08-25 11:42:51 +0100 |
commit | 8d74a1316025a4730f18674ccf187c3d630d7c92 (patch) | |
tree | 3ef27da2caf639e7af409d823fcd3991b9d4c4c4 /demos | |
parent | 4a5ba9ae1325f2a02ab670b530a39568cb4f691f (diff) |
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)
Diffstat (limited to 'demos')
-rw-r--r-- | demos/guide/quic-client-block.c | 2 | ||||
-rw-r--r-- | demos/guide/quic-multi-stream.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/demos/guide/quic-client-block.c b/demos/guide/quic-client-block.c index be17934f6b..be797707f1 100644 --- a/demos/guide/quic-client-block.c +++ b/demos/guide/quic-client-block.c @@ -202,11 +202,13 @@ int main(void) goto end; } + /* Set the IP address of the remote peer */ if (!SSL_set1_initial_peer_addr(ssl, peer_addr)) { printf("Failed to set the initial peer address\n"); goto end; } + /* Connect to the server and perform the TLS handshake */ if ((ret = SSL_connect(ssl)) < 1) { /* * If the failure is due to a verification error we can get more diff --git a/demos/guide/quic-multi-stream.c b/demos/guide/quic-multi-stream.c index 67f2f83652..7a40d61ad4 100644 --- a/demos/guide/quic-multi-stream.c +++ b/demos/guide/quic-multi-stream.c @@ -214,11 +214,13 @@ int main(void) goto end; } + /* Set the IP address of the remote peer */ if (!SSL_set_initial_peer_addr(ssl, peer_addr)) { printf("Failed to set the initial peer address\n"); goto end; } + /* Connect to the server and perform the TLS handshake */ if ((ret = SSL_connect(ssl)) < 1) { /* * If the failure is due to a verification error we can get more |