| 229 | } |
| 230 | |
| 231 | cc_result SSL_WriteAll(void* ctx_, const cc_uint8* data, cc_uint32 count) { |
| 232 | SSLContext* ctx = (SSLContext*)ctx_; |
| 233 | // TODO: just br_sslio_write ?? |
| 234 | int res = br_sslio_write_all(&ctx->ioc, data, count); |
| 235 | if (res < 0) return SSL_GetError(ctx); |
| 236 | |
| 237 | br_sslio_flush(&ctx->ioc); |
| 238 | return 0; |
| 239 | } |
| 240 | |
| 241 | cc_result SSL_Free(void* ctx_) { |
| 242 | SSLContext* ctx = (SSLContext*)ctx_; |
no test coverage detected