summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-13 18:11:44 +0200
committerSimon Rettberg2019-06-13 18:11:44 +0200
commit4df0a33063960b1ab660a1d8ceb3211766627b78 (patch)
tree316d3c939bd815ea47b9e80a3e006c3d9a8cbde2 /types.h
parenttag class CONTEXT_SPECIFIC <-> PRIVATE was swapped (diff)
downloadldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.tar.gz
ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.tar.xz
ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.zip
Add STARTTLS support
Diffstat (limited to 'types.h')
-rw-r--r--types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/types.h b/types.h
index 94e2ddd..ff2ddf4 100644
--- a/types.h
+++ b/types.h
@@ -86,6 +86,7 @@ struct _epoll_server_t_ {
BOOL bound; // Already bound to server?
BOOL dynamic;
BOOL sslConnected;
+ uint32_t startTlsId; // Whether STARTTLS request was already sent (>0)
BOOL kill; // Should the connection be killed?
BOOL writeBlocked; // An SSL_write returned WANT_*, so we must not reallocate the current send buffer
time_t lastActive;
@@ -129,6 +130,7 @@ struct _server_t_ {
BOOL plainLdap;
BOOL fixNumeric; // prefix numeric account names with an 's'
BOOL genUidNumber; // generate uidNumber attribute locally (and keep track)
+ BOOL useStartTls; // Establish plain connection, then upgrade via STARTTLS
uint16_t port;
SSL_CTX *sslContext;
epoll_server_t con;