diff --git a/lib/vauth/krb5_gssapi.c b/lib/vauth/krb5_gssapi.c index 58d835b5f7..ea4995c72d 100644 --- a/lib/vauth/krb5_gssapi.c +++ b/lib/vauth/krb5_gssapi.c @@ -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) { diff --git a/lib/vauth/krb5_sspi.c b/lib/vauth/krb5_sspi.c index 983171c8ed..08644d79c2 100644 --- a/lib/vauth/krb5_sspi.c +++ b/lib/vauth/krb5_sspi.c @@ -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) {