我在linux平台上使用openssl库。根据手册页:Renegotiation will happen during SSL_read/write, user should repeat that call with the SAME arguments
。所以这是我的方案,是对还是错?
1:SSL_read
返回SSL_WANT_WRITE,然后我调用SSL_write
来写一些数据(希望SSL_write
可以完成SSL_read
留下的握手)
2:SSL_read(ssl, buf, size)
返回SSL_WANT_WRITE,然后调用SSL_read(ssl, buf2, size2)
(buf
参数已更改)
祝你好运