summaryrefslogtreecommitdiff
path: root/src/tls.h
blob: ff7998de30d401d17afa8ec6e0c1d2b39796df90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _TLS_H_
#define _TLS_H_

#include <gnutls/gnutls.h>

void tls_init(void);
int tls_connect(const char* const host, const unsigned short port);
int tls_read(int (*input_handler_callback)(const char* const sbuf, const int len));
void tls_send(char *buf, int len);
void tls_close(void);
void tls_clean(void);

#endif