]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix inverted BIO enum server/client values
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 14 Jan 2017 14:34:07 +0000 (03:34 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 14 Jan 2017 14:34:07 +0000 (03:34 +1300)
src/security/forward.h

index d35510ec3671be38f058cfe9e431f924120899f6..9845b522003b8946628bcad331bf85f955f650d5 100644 (file)
@@ -112,8 +112,10 @@ namespace Io
 {
     enum Type {
 #if USE_GNUTLS
-        BIO_TO_CLIENT = GNUTLS_CLIENT,
-        BIO_TO_SERVER = GNUTLS_SERVER
+        // NP: this is odd looking but correct.
+        // 'to-client' means we are a server, and vice versa.
+        BIO_TO_CLIENT = GNUTLS_SERVER,
+        BIO_TO_SERVER = GNUTLS_CLIENT
 #else
         BIO_TO_CLIENT = 6000,
         BIO_TO_SERVER