mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
7.0 refactor
This commit is contained in:
1 parent
34d4fb8cf0
commit
f2fba1d200
838 files changed
+14236
-255316
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "net.h"
|
||||
|
||||
struct mg_tls_opts {
|
||||
const char *ca; // CA certificate file. For both listeners and clients
|
||||
const char *cert; // Certificate
|
||||
const char *certkey; // Certificate key
|
||||
const char *ciphers; // Cipher list
|
||||
const char *srvname; // If not NULL, enables server name verification
|
||||
};
|
||||
|
||||
int mg_tls_init(struct mg_connection *, struct mg_tls_opts *);
|
||||
int mg_tls_free(struct mg_connection *);
|
||||
int mg_tls_send(struct mg_connection *, const void *buf, size_t len, int *fail);
|
||||
int mg_tls_recv(struct mg_connection *, void *buf, size_t len, int *fail);
|
||||
int mg_tls_handshake(struct mg_connection *);
|
||||
Reference in new issue
Block a user