mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
http_negotiate: fix non-SSL build with GSSAPI
Fixes #16919 Closes #16921
This commit is contained in:
parent
87168807b2
commit
fe5f435b42
@ -110,8 +110,8 @@ CURLcode Curl_input_negotiate(struct Curl_easy *data, struct connectdata *conn,
|
||||
#endif
|
||||
/* Check if the connection is using SSL and get the channel binding data */
|
||||
#ifdef HAVE_GSSAPI
|
||||
Curl_dyn_init(&neg_ctx->channel_binding_data, SSL_CB_MAX_SIZE + 1);
|
||||
#ifdef USE_SSL
|
||||
Curl_dyn_init(&neg_ctx->channel_binding_data, SSL_CB_MAX_SIZE + 1);
|
||||
if(Curl_conn_is_ssl(conn, FIRSTSOCKET)) {
|
||||
result = Curl_ssl_get_channel_binding(
|
||||
data, FIRSTSOCKET, &neg_ctx->channel_binding_data);
|
||||
@ -120,6 +120,8 @@ CURLcode Curl_input_negotiate(struct Curl_easy *data, struct connectdata *conn,
|
||||
return result;
|
||||
}
|
||||
}
|
||||
#else
|
||||
Curl_dyn_init(&neg_ctx->channel_binding_data, 1);
|
||||
#endif /* USE_SSL */
|
||||
#endif /* HAVE_GSSAPI */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user