2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
#ifndef EL__NETWORK_SSL_SOCKET_H
|
|
|
|
#define EL__NETWORK_SSL_SOCKET_H
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#ifdef CONFIG_SSL
|
|
|
|
|
|
|
|
struct socket;
|
|
|
|
|
|
|
|
int ssl_connect(struct socket *socket);
|
2021-01-02 10:20:27 -05:00
|
|
|
ssize_t ssl_write(struct socket *socket, char *data, int len);
|
|
|
|
ssize_t ssl_read(struct socket *socket, char *data, int len);
|
2005-09-15 09:58:31 -04:00
|
|
|
int ssl_close(struct socket *socket);
|
|
|
|
|
|
|
|
#endif
|
2020-10-05 14:14:55 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|