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:
Родитель
daa182afa6
Коммит
70bd9784de
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче