Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
BIO_should_read, BIO_should_write, BIO_should_io_special, BIO_retry_type, BIO_should_retry, BIO_get_retry_BIO, BIO_get_retry_reason, BIO_set_retry_reason — BIO retry functionsSYNOPSIS
#include <openssl/bio.h>BIO_should_read(BIO *b);
BIO_should_write(BIO *b);
BIO_should_io_special(BIO *b);
BIO_retry_type(BIO *b);
BIO_should_retry(BIO *b);
#define BIO_FLAGS_WRITE 0x02
#define BIO_FLAGS_IO_SPECIAL 0x04
#define BIO_FLAGS_RWS \
(BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)
#define BIO_FLAGS_SHOULD_RETRY 0x08
BIO_get_retry_BIO(BIO *bio, int *reason);
BIO_get_retry_reason(BIO *bio);
BIO_set_retry_reason(BIO *bio, int reason);
DESCRIPTION
These functions determine why a BIO is not able to read or write data. They will typically be called after a failed BIO_read(3) or BIO_write(3) call.- 0
- There is no special condition.
- BIO_RR_ACCEPT
- accept(2) would have blocked. This can occur for BIOs created from BIO_s_accept(3) or BIO_f_ssl(3).
- BIO_RR_CONNECT
- connect(2) would have blocked. This can occur for BIOs created from BIO_s_connect(3) or BIO_f_ssl(3).
- BIO_RR_SSL_X509_LOOKUP
- An application callback set by SSL_CTX_set_client_cert_cb(3) has asked to be called again. This can occur for BIOs created from BIO_f_ssl(3).