auth: we do not support a security layer after kerberos authentication

Closes #7008
This commit is contained in:
Patrick Monnerat 2021-08-16 08:35:22 +02:00 committed by Daniel Stenberg
parent 3f9b1d0c9d
commit 0a1c85e39b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,7 @@ CURLcode Curl_auth_create_gssapi_security_message(struct Curl_easy *data,
gss_release_buffer(&unused_status, &username_token);
return CURLE_BAD_CONTENT_ENCODING;
}
sec_layer &= GSSAUTH_P_NONE; /* We do not support a security layer */
/* Process the maximum message size the server can receive */
if(max_size > 0) {

View File

@ -338,6 +338,7 @@ CURLcode Curl_auth_create_gssapi_security_message(struct Curl_easy *data,
infof(data, "GSSAPI handshake failure (invalid security layer)");
return CURLE_BAD_CONTENT_ENCODING;
}
sec_layer &= KERB_WRAP_NO_ENCRYPT; /* We do not support a security layer */
/* Process the maximum message size the server can receive */
if(max_size > 0) {