projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Cicrumvent possible segfaults in axTLS
[project/luci.git]
/
libs
/
nixio
/
src
/
nixio-tls.h
1
#ifndef NIXIO_TLS_H_
2
#define NIXIO_TLS_H_
3
4
#include "nixio.h"
5
6
#ifndef WITHOUT_OPENSSL
7
#include <openssl/ssl.h>
8
#endif
9
10
#define NIXIO_TLS_CTX_META "nixio.tls.ctx"
11
#define NIXIO_TLS_SOCK_META "nixio.tls.sock"
12
13
typedef struct nixio_tls_socket {
14
SSL *socket;
15
#ifdef WITH_AXTLS
16
char connected;
17
size_t pbufsiz;
18
char *pbufpos;
19
char *pbuffer;
20
#endif
21
} nixio_tls_sock;
22
23
#endif /* NIXIO_TLS_H_ */