From 4df0a33063960b1ab660a1d8ceb3211766627b78 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Jun 2019 18:11:44 +0200 Subject: Add STARTTLS support --- types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'types.h') 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; -- cgit v1.2.3-55-g7522