blob: 13b400ed5264fdf346ea3632b51ab61a236a0093 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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
size_t pbufsiz;
char *pbufpos;
char *pbuffer;
#endif
} nixio_tls_sock;
#endif /* NIXIO_TLS_H_ */
|