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)
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
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
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;