I am confused.
When I used a simple c++ program which uses SSL functions for the first
time, I need not implement  a protocol. when I tell SSL_write( ) to send 5
bytes and tell SSL_read( ) to read 10 bytes, the last reads 5 bytes ! (
doesn't it ? am I wrong ? I assume SSL reads expect \0 then it stop
reading). Anyway, when SSL_write( ) sends "TEST", SSL_read( ) reads "TEST"
and not "TEST��y 0�y ..."

Now, in my python program, the difference between my simple c++ program is
that, I retrieve a string ( a_string.data( ), a_string.size( ) ) and tell
SLL_write through my API to send this string.



2011/3/17 David Schwartz <dav...@webmaster.com>

> On 3/17/2011 6:40 AM, ikuzar wrote:
>
>  Why do we expect \r\n ? why not \0 ?
>>
>
> That's why you need to implement a protocol.
>
> DS
>
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>

Reply via email to