Re: BIO_do_accept Issue

2020-04-09 Thread Viktor Dukhovni
On Thu, Apr 09, 2020 at 11:42:11AM +0100, Scott Morgan via openssl-users wrote: > > It seems to me that since commit 417be660e1c BIO_do_accept() has > > incomplete error handling, "ret" isn't assigned when bind() or listen() > > fail: > > > .. > > > > So the function returns the wrong value

Re: BIO_do_accept Issue

2020-04-09 Thread Scott Morgan via openssl-users
On 08/04/2020 18:06, Viktor Dukhovni wrote: > On Wed, Apr 08, 2020 at 11:47:19AM +0100, Scott Morgan via openssl-users > wrote: > >> Run into an odd issue. >> >> Consider the following program, based on the documentation[0], using >> OpenSSL 1.1.1f >> >> abio = BIO_new_accept(""); >>

Re: BIO_do_accept Issue

2020-04-08 Thread Viktor Dukhovni
On Wed, Apr 08, 2020 at 11:47:19AM +0100, Scott Morgan via openssl-users wrote: > Run into an odd issue. > > Consider the following program, based on the documentation[0], using > OpenSSL 1.1.1f > > abio = BIO_new_accept(""); > res = BIO_do_accept(abio); It seems to me that sinc

BIO_do_accept Issue

2020-04-08 Thread Scott Morgan via openssl-users
Run into an odd issue. Consider the following program, based on the documentation[0], using OpenSSL 1.1.1f ==BEGIN== #include #include #include int main(int argc, char** argv) { BIO *abio; int res; abio = BIO_new_accept(""); res = BIO_do_accept(abio);