@@ -95,7 +95,7 @@ Connection::Connection(const String & host_, UInt16 port_,
9595 const String & user_, const String & password_,
9696 const String & proto_send_chunked_, const String & proto_recv_chunked_,
9797 [[maybe_unused]] const SSHKey & ssh_private_key_,
98- const String & jwt_,
98+ [[maybe_unused]] const String & jwt_,
9999 const String & quota_key_,
100100 const String & cluster_,
101101 const String & cluster_secret_,
@@ -110,7 +110,9 @@ Connection::Connection(const String & host_, UInt16 port_,
110110 , ssh_private_key(ssh_private_key_)
111111#endif
112112 , quota_key(quota_key_)
113+ #if USE_JWT_CPP && USE_SSL
113114 , jwt(jwt_)
115+ #endif
114116 , cluster(cluster_)
115117 , cluster_secret(cluster_secret_)
116118 , client_name(client_name_)
@@ -446,11 +448,13 @@ void Connection::sendHello([[maybe_unused]] const Poco::Timespan & handshake_tim
446448 performHandshakeForSSHAuth (handshake_timeout);
447449 }
448450#endif
451+ #if USE_JWT_CPP && USE_SSL
449452 else if (!jwt.empty ())
450453 {
451454 writeStringBinary (EncodedUserInfo::JWT_AUTHENTICAION_MARKER, *out);
452455 writeStringBinary (jwt, *out);
453456 }
457+ #endif
454458 else
455459 {
456460 writeStringBinary (user, *out);
0 commit comments