[openssl-users] Query regarding MSG_NOSIGNAL with SSL_Write

Viktor Dukhovni openssl-users at dukhovni.org
Thu Apr 27 15:50:26 UTC 2017


On Thu, Apr 27, 2017 at 04:32:33PM +0100, Matt Caswell wrote:

> >>> Does openssl  provide any way to set MSG_NOSIGNAL on sendmsg (Underlying TCP/IP socket layer) ?
> >>
> >> No.  You will have to modify the code yourself.
> > 
> > Actually, it is possible to do the I/O in application code, using
> > any "write some data down a socket" API of the application's choice.
> 
> The OP is using SCTP (which uses DTLS). The above approach is
> problematic in DTLS. ...

Thanks, I missed the SCTP part of the requirements.

On Thu, Apr 27, 2017 at 04:26:22PM +0530, mahesh gs wrote:

> We are using Openssl for establish a secure communications for both
> TCP/SCTP connections.

The approach I suggested will only work for TLS with TCP.  For DTLS
with SCTP you'll need something else.  Does SCTP also raise SIGPIPE
on write() when the remote end is closed?

-- 
	Viktor.


More information about the openssl-users mailing list