diff options
-rw-r--r-- | demos/guide/quic-client-block.c | 2 | ||||
-rw-r--r-- | demos/guide/quic-multi-stream.c | 2 | ||||
-rw-r--r-- | doc/man7/ossl-guide-quic-client-block.pod | 1 |
3 files changed, 5 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 diff --git a/doc/man7/ossl-guide-quic-client-block.pod b/doc/man7/ossl-guide-quic-client-block.pod index 10658f9bc8..6ae193567f 100644 --- a/doc/man7/ossl-guide-quic-client-block.pod +++ b/doc/man7/ossl-guide-quic-client-block.pod @@ -222,6 +222,7 @@ is being connected to. In L</Creating the socket and BIO> above we saved that address away for future use. Now we need to use it via the L<SSL_set1_initial_peer_addr(3)> function. + /* 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; |