SSL_connect returns SSL_ERROR_SYSCALL and errno == EWOULDBLOCK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
We are using OpenSSl 1.0.2n in our server running on LINUX.
We call SSL_connect() on async socket (after TCP connect completion) to establish a secure connection.
According to DOC SSL_get_error(() has to be called if SSL_connect() returns <=0
 
We do not understand what to do if SSL_get_error(() returns SSL_ERROR_SYSCALL and errno is EWOULDBLOCK
If SSL_get_error returns SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE it pretty clear what to do…
(we set the socket descriptor either in the readfds or writefds and call select to wait until the socket becomes readable or writeable (or times-out)
But when EWOULDBLOCK is indicated, we do not know whether to wait for readable/writeable……
(setting both might be an idea but could easily lead to a live-loop as we suppose that the handshake either waits for a read or for a write but not both…
 
Any ideas?
Thanks
 
Mit freundlichen Grüßen/Best regards,
____________
Gerhard Jahn

Identity and Access Management
 
Phone:  +49 (211) 399-33276
Phone:  +49 (211) 399-22891
Email: gerhard.jahn@xxxxxxxx
Otto-Hahn-Ring 6
81739 München, Germany
de.atos.net

Atos Information Technology GmbH; Geschäftsführung: Winfried Holz, Udo Littke; Vorsitzender des Aufsichtsrats: N.N.; Sitz der Gesellschaft: München; Registergericht: München, HRB 235509.

Diese E-Mail und etwaige Anlagen enthalten firmenvertrauliche Informationen, die ausschließlich für den Empfänger bestimmt sind. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie bitte unverzüglich den Absender per Antwort-Mail und löschen Sie diese E-Mail nebst Anlagen von Ihrem System. Da die Integrität innerhalb des Internets nicht zu gewährleisten ist, kann die Atos Gruppe für die Inhalte der Nachricht kein Haftung übernehmen. Obwohl der Absender anstrebt ein virusfreies Computernetzwerk sicherzustellen, kann der Absender nicht gewährleisten, dass diese E-Mail virusfrei ist und wird damit keine Haftung bei Schäden auf Grund einer Virusübermittlung übernehmen.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
 
 
 
 
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux