From: Amos Jeffries Date: Sat, 14 Jan 2017 14:34:07 +0000 (+1300) Subject: Fix inverted BIO enum server/client values X-Git-Tag: M-staged-PR71~284^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d92a8a81c0f66ea5eede0d787fffaca672f97875;p=thirdparty%2Fsquid.git Fix inverted BIO enum server/client values --- diff --git a/src/security/forward.h b/src/security/forward.h index d35510ec36..9845b52200 100644 --- a/src/security/forward.h +++ b/src/security/forward.h @@ -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