mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-29 16:25:54 +08:00
Tuning test
This commit is contained in:
parent
136a37ef73
commit
1d0e65d17a
10
src/tls.c
10
src/tls.c
@ -7,12 +7,10 @@
|
||||
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <mbedtls/version.h>
|
||||
#if MBEDTLS_VERSION_NUMBER > 0x02070000
|
||||
#include <mbedtls/net_sockets.h>
|
||||
#else
|
||||
#include <mbedtls/net.h>
|
||||
#endif
|
||||
|
||||
// Different versions have those in different files, so declare here
|
||||
int mbedtls_net_recv(void *ctx, unsigned char *buf, size_t len);
|
||||
int mbedtls_net_send(void *ctx, const unsigned char *buf, size_t len);
|
||||
|
||||
struct mg_tls {
|
||||
char *cafile; // CA certificate path
|
||||
|
Loading…
x
Reference in New Issue
Block a user