MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / SSL_WriteAll

Function SSL_WriteAll

src/SSL.c:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231cc_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
241cc_result SSL_Free(void* ctx_) {
242 SSLContext* ctx = (SSLContext*)ctx_;

Callers 1

HttpConnection_WriteFunction · 0.85

Calls 1

SSL_GetErrorFunction · 0.85

Tested by

no test coverage detected