mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
Make tls_builtin build with current API
This commit is contained in:
1 parent
22fc01d5f2
commit
bb5aba2e19
2 files changed
+8
-8
No files matched your search
+4
-4
@@ -42,7 +42,7 @@ static inline void add32(struct mg_iobuf *io, uint32_t data) {
|
||||
mg_iobuf_add(io, io->len, &data, sizeof(data));
|
||||
}
|
||||
|
||||
void mg_tls_init(struct mg_connection *c, struct mg_str hostname) {
|
||||
void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
|
||||
struct tls_data *tls = (struct tls_data *) calloc(1, sizeof(struct tls_data));
|
||||
if (tls != NULL) {
|
||||
tls->send.align = tls->recv.align = MG_IO_SIZE;
|
||||
@@ -51,7 +51,7 @@ void mg_tls_init(struct mg_connection *c, struct mg_str hostname) {
|
||||
} else {
|
||||
mg_error(c, "tls oom");
|
||||
}
|
||||
(void) hostname;
|
||||
(void) opts;
|
||||
}
|
||||
void mg_tls_free(struct mg_connection *c) {
|
||||
struct tls_data *tls = c->tls;
|
||||
@@ -159,7 +159,7 @@ void mg_tls_handshake(struct mg_connection *c) {
|
||||
void mg_tls_ctx_free(struct mg_mgr *mgr) {
|
||||
mgr->tls_ctx = NULL;
|
||||
}
|
||||
void mg_tls_ctx_init(struct mg_mgr *mgr, const struct mg_tls_opts *opts) {
|
||||
(void) opts, (void) mgr;
|
||||
void mg_tls_ctx_init(struct mg_mgr *mgr) {
|
||||
(void) mgr;
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user