Lines Matching refs:bio
52 int socketNew(BIO* bio) { in socketNew() argument
53 BIO_set_data(bio, reinterpret_cast<void*>(-1)); in socketNew()
54 BIO_set_init(bio, 0); in socketNew()
57 int socketFree(BIO* bio) { in socketFree() argument
58 LOG_ALWAYS_FATAL_IF(bio == nullptr); in socketFree()
61 int socketRead(BIO* bio, char* buf, int size) { in socketRead() argument
62 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketRead()
64 BIO_clear_retry_flags(bio); in socketRead()
66 BIO_set_retry_read(bio); in socketRead()
71 int socketWrite(BIO* bio, const char* buf, int size) { in socketWrite() argument
72 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketWrite()
74 BIO_clear_retry_flags(bio); in socketWrite()
76 BIO_set_retry_write(bio); in socketWrite()
81 long socketCtrl(BIO* bio, int cmd, long num, void*) { // NOLINT in socketCtrl() argument
82 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketCtrl()
424 bssl::UniquePtr<BIO> bio = newSocketBio(socket.fd); in setFdAndDoHandshake() local
425 TEST_AND_RETURN(false, bio != nullptr); in setFdAndDoHandshake()
426 auto [_, errorQueue] = ssl->call(SSL_set_bio, bio.get(), bio.get()); in setFdAndDoHandshake()
427 (void)bio.release(); // SSL_set_bio takes ownership. in setFdAndDoHandshake()