ssl - How to handle renegotiation in openssl (returned by SSL_read, SSL_write) -
i'm using openssl library on linux platform. according man page: renegotiation happen during ssl_read/write, user should repeat call same arguments
. here scenario, right or wrong?
1: ssl_read
returns ssl_want_write, call ssl_write
write data (hoping ssl_write
can finish handshake left ssl_read
)
2: ssl_read(ssl, buf, size)
returns ssl_want_write, call ssl_read(ssl, buf2, size2)
(the buf
arguments have been changed)
best regards
Comments
Post a Comment