blob: 7ded63ad300ce1b0fb4f0a2c356ca2d64bf55783 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef STUBS_ESP_TLS_H
#define STUBS_ESP_TLS_H
#include "esp_err.h"
typedef struct esp_tls esp_tls_t;
typedef struct {
void *crt_bundle_attach;
int use_global_ca_store;
} esp_tls_cfg_t;
static inline esp_tls_t *esp_tls_init(void) { return (esp_tls_t*)1; }
static inline int esp_tls_conn_new_sync(const char *h, int hl, int port, const esp_tls_cfg_t *cfg, esp_tls_t *tls) {
(void)h; (void)hl; (void)port; (void)cfg; (void)tls; return -1;
}
static inline int esp_tls_conn_write(esp_tls_t *tls, const void *data, size_t len) {
(void)tls; (void)data; (void)len; return len;
}
static inline int esp_tls_conn_read(esp_tls_t *tls, void *data, size_t len) {
(void)tls; (void)data; (void)len; return 0;
}
static inline void esp_tls_conn_destroy(esp_tls_t *tls) { (void)tls; }
#endif
|