Move TLS API to tls.h, fix builtin handshake codepath

This commit is contained in:
cpq committed 2023-12-08 00:30:09 +00:00
1 parent 4fc43cfbf7
commit 6e68124405
5 files changed
+18 -18

No files matched your search

+5
View File
@@ -31,3 +31,8 @@ void mg_tls_handshake(struct mg_connection *);
// Private
void mg_tls_ctx_init(struct mg_mgr *);
void mg_tls_ctx_free(struct mg_mgr *);
// Low-level IO primives used by TLS layer
enum { MG_IO_ERR = -1, MG_IO_WAIT = -2, MG_IO_RESET = -3 };
long mg_io_send(struct mg_connection *c, const void *buf, size_t len);
long mg_io_recv(struct mg_connection *c, void *buf, size_t len);