summaryrefslogtreecommitdiff
path: root/server.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-23 23:42:54 +0100
committerTreeki <treeki@gmail.com>2014-01-23 23:42:54 +0100
commitf923cd4beaf1c97f5873a9549b216c67520a8cca (patch)
treecacc1560bab125b3c849560d0d03c3c5b099e869 /server.cpp
parent57f49f495d799a435b95d72021c004752628994b (diff)
downloadbounce4-f923cd4beaf1c97f5873a9549b216c67520a8cca.tar.gz
bounce4-f923cd4beaf1c97f5873a9549b216c67520a8cca.zip
add build_static.sh, make gnutls usage a define
Diffstat (limited to '')
-rw-r--r--server.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.cpp b/server.cpp
index 820c579..16c754b 100644
--- a/server.cpp
+++ b/server.cpp
@@ -115,6 +115,7 @@ void Server::connectionSuccessful() {
outputBuf.clear();
// Do we need to do any TLS junk?
+#ifdef USE_GNUTLS
if (useTls) {
state = CS_TLS_HANDSHAKE;
@@ -135,7 +136,9 @@ void Server::connectionSuccessful() {
gnutls_transport_set_int(tls, sock);
tlsActive = true;
- } else {
+ } else
+#endif
+ {
connectedEvent();
}
}