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.
This commit is contained in:
parent
daa182afa6
commit
70bd9784de
@ -632,7 +632,7 @@ static void HandshakeCallback(PRFileDesc *sock, void *arg)
|
|||||||
case SSL_NEXT_PROTO_NO_OVERLAP:
|
case SSL_NEXT_PROTO_NO_OVERLAP:
|
||||||
infof(conn->data, "TLS, neither ALPN nor NPN succeeded\n");
|
infof(conn->data, "TLS, neither ALPN nor NPN succeeded\n");
|
||||||
return;
|
return;
|
||||||
#ifdef SSL_NEXT_PROTO_SELECTED
|
#ifdef SSL_ENABLE_ALPN
|
||||||
case SSL_NEXT_PROTO_SELECTED:
|
case SSL_NEXT_PROTO_SELECTED:
|
||||||
infof(conn->data, "ALPN, server accepted to use %.*s\n", buflen, buf);
|
infof(conn->data, "ALPN, server accepted to use %.*s\n", buflen, buf);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user