| 368 | return res; |
| 369 | } |
| 370 | int strm_write(BIO *b, const char *buf, int len) { |
| 371 | auto *stream = static_cast<SslStreamImpl *>(BIO_get_data(b)); |
| 372 | CHECK(stream != nullptr); |
| 373 | BIO_clear_retry_flags(b); |
| 374 | CHECK(buf != nullptr); |
| 375 | return narrow_cast<int>(stream->flow_write(Slice(buf, len))); |
| 376 | } |
| 377 | } // namespace |
| 378 | |
| 379 | } // namespace detail |
nothing calls this directly
no test coverage detected