summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/nixio-tls.h
blob: 4c58dd1361fd3a442093935c16ae3f3d217a96d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef NIXIO_TLS_H_
#define NIXIO_TLS_H_

#include "nixio.h"

#ifndef WITHOUT_OPENSSL
#include <openssl/ssl.h>
#endif

#define NIXIO_TLS_CTX_META "nixio.tls.ctx"
#define NIXIO_TLS_SOCK_META "nixio.tls.sock"

typedef struct nixio_tls_socket {
	SSL		*socket;
#ifdef WITH_AXTLS
	char	connected;
	size_t	pbufsiz;
	char	*pbufpos;
	char	*pbuffer;
#endif
} nixio_tls_sock;

#endif /* NIXIO_TLS_H_ */