Refactoring BIO: adapt BIO_s_connect and BIO_s_accept
[openssl.git] / doc / crypto / BIO_f_ssl.pod
index bf3151f10b6b1a9b00c0a9b4bb1815ee227d1d07..bd9b6056022352f4a1ae2c07b762ff01ccdfce3a 100644 (file)
@@ -169,7 +169,8 @@ unencrypted example in L<BIO_s_connect(3)>.
 
  /* We might want to do other things with ssl here */
 
- BIO_set_conn_hostname(sbio, "localhost:https");
+ /* An empty host part means the loopback address */
+ BIO_set_conn_hostname(sbio, ":https");
 
  out = BIO_new_fp(stdout, BIO_NOCLOSE);
  if(BIO_do_connect(sbio) <= 0) {