From 8a196fe228dbe5c38bbb39a9d42845257cab605c Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 19 May 2021 17:20:53 +0200 Subject: [PATCH] BIO_s_accept.pod: Document port auto-selection feature of BIO_set_accept_port() Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15354) --- doc/man3/BIO_s_accept.pod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/man3/BIO_s_accept.pod b/doc/man3/BIO_s_accept.pod index 02c6006453e..f49eb532fcd 100644 --- a/doc/man3/BIO_s_accept.pod +++ b/doc/man3/BIO_s_accept.pod @@ -77,6 +77,8 @@ port. "port" has the same syntax as the port specified in BIO_set_conn_port() for connect BIOs, that is it can be a numerical port string or a string to lookup using getservbyname() and a string table. +If the given port is C<0> then a random available port is chosen. +It may be queried using BIO_sock_info() and L. BIO_new_accept() combines BIO_new() and BIO_set_accept_name() into a single call: that is it creates a new accept BIO with port -- 2.47.3