mirror of
https://github.com/curl/curl.git
synced 2026-07-23 15:37:16 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue