DTLSv1_listen Nonblock IO failure not returning SSL_ERROR_WANT_READ

Matt Caswell matt at openssl.org
Wed Mar 6 10:59:45 UTC 2019



On 06/03/2019 10:51, Raja Ashok wrote:
> Hi,
> 
> When Nonblock IO failure happens on DTLSv1_listen() its returning 0. But
> SSL_get_error() is not returning SSL_ERROR_WANT_READ. Instead it
> returns SSL_ERROR_SYSCALL. 
> 
> Can someone tell its intentionally kept this behaviour ?

You are not supposed to call SSL_get_error() after DTLSv1_listen().

See the DTLSv1_listen() documentation here:

https://www.openssl.org/docs/man1.1.1/man3/DTLSv1_listen.html

Matt



More information about the openssl-users mailing list