Commit 70bd9784 authored by Fabian Frank's avatar Fabian Frank Committed by Daniel Stenberg
Browse files

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.
parent daa182af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;