Using SSL_want before performing SSL_read or SSL_write operation?

I planned to use SSL_want call before performing read or write operation so that we can avoid SSL errors like WANT_READ or WANT_WRITE . Please provide your suggestion.

Upvotes: 1

Views: 240

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123320

It does not work like this. SSL_want just reads the current state, which is set by SSL_read and SSL_write. So using SSL_want without a preceding SSL_read or SSL_write makes no sense.

Upvotes: 3

Related Questions