mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
TLS layer: c->rtls to optimise recvd TLS data
This commit is contained in:
1 parent
98d877c5f0
commit
144c2f443e
12 files changed
+248
-120
No files matched your search
@@ -1254,6 +1254,7 @@ struct mg_connection {
|
||||
struct mg_iobuf recv; // Incoming data
|
||||
struct mg_iobuf send; // Outgoing data
|
||||
struct mg_iobuf prof; // Profile data enabled by MG_ENABLE_PROFILE
|
||||
struct mg_iobuf rtls; // TLS only. Incoming encrypted data
|
||||
mg_event_handler_t fn; // User-specified event handler function
|
||||
void *fn_data; // User-specified function parameter
|
||||
mg_event_handler_t pfn; // Protocol-specific handler function
|
||||
@@ -1526,6 +1527,7 @@ struct mg_tls {
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
struct mg_tls {
|
||||
BIO_METHOD *bm;
|
||||
SSL_CTX *ctx;
|
||||
SSL *ssl;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user