aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorFabian Frank <fabian@pagefault.de>2014-02-09 17:58:54 -0800
committerDaniel Stenberg <daniel@haxx.se>2014-02-10 08:09:02 +0100
commit70bd9784de06c0154663126e406b946befef2b5a (patch)
treecefb9a3b4427aaf07d0b7f12c6bf4e22ba013330 /lib/vtls
parentdaa182afa6748e2596a46388a652aed925b5947b (diff)
nss: use correct preprocessor macro
SSL_ENABLE_ALPN can be used for preprocessor ALPN feature detection, but not SSL_NEXT_PROTO_SELECTED, since it is an enum value and not a preprocessor macro.
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 59cc769cf..b679c12bb 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -632,7 +632,7 @@ static void HandshakeCallback(PRFileDesc *sock, void *arg)
case SSL_NEXT_PROTO_NO_OVERLAP:
infof(conn->data, "TLS, neither ALPN nor NPN succeeded\n");
return;
-#ifdef SSL_NEXT_PROTO_SELECTED
+#ifdef SSL_ENABLE_ALPN
case SSL_NEXT_PROTO_SELECTED:
infof(conn->data, "ALPN, server accepted to use %.*s\n", buflen, buf);
break;