We see the same problem with DTLS over SCTP.

In our application, there are messages as large as 60K, so we are interested in 
knowing if there is a way to send them over DTLS. 

-Brian

-----Original Message-----
From: Iñaki Baz Castillo [mailto:i...@aliax.net] 
Sent: Thursday, August 21, 2014 1:34 PM
To: openssl-users@openssl.org
Subject: SSL_MODE_ENABLE_PARTIAL_WRITE does not work in DTLS

Hi,

I've a SSL in DTLS mode. Previously in its SSL_CTX I set the 
SSL_MODE_ENABLE_PARTIAL_WRITE option to enable SSL_write() to return less than 
the given data length.

It does not work. I call SSL_write() by passing a very long data
(65536) and it still returns -1. So, in case I want to write a big data over a 
DTLS UDP connection, how can I do that? I expected that 
SSL_MODE_ENABLE_PARTIAL_WRITE would work in a way that SSL_write() returns a 
value suitable for a UDP datagram so I send it and then call
SS_write() again by passing the following chuck in my data buffer.

Is it a bug? or am I missing something?

Thanks a lot.

--
Iñaki Baz Castillo
<i...@aliax.net>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to