Fix #1519 - make opts structs in API calls const

This commit is contained in:
Sergey Lyubka committed 2022-04-12 10:04:55 +01:00
1 parent 5f78d34f4d
commit db941e2627
10 files changed
+32 -30

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ struct mg_tls_opts {
struct mg_fs *fs; // FS API for reading certificate files
};
void mg_tls_init(struct mg_connection *, struct mg_tls_opts *);
void mg_tls_init(struct mg_connection *, const struct mg_tls_opts *);
void mg_tls_free(struct mg_connection *);
long mg_tls_send(struct mg_connection *, const void *buf, size_t len);
long mg_tls_recv(struct mg_connection *, void *buf, size_t len);