Improve NLA error code logging.
@@ -2115,6 +2115,8 @@ static int nla_decode_ts_request(rdpNla* nla, wStream* s)
{
if (!ber_read_integer(s, &nla->errorCode))
return -1;
+ WLog_WARN(TAG, "SPNEGO received NTSTATUS: %s [0x%08" PRIX32 "] from server",
+ GetSecurityStatusString(nla->errorCode), nla->errorCode);
}
if (nla->peerVersion >= 5)
@@ -2190,7 +2192,8 @@ int nla_recv_pdu(rdpNla* nla, wStream* s)
break;
default:
- WLog_ERR(TAG, "SPNEGO failed with NTSTATUS: 0x%08" PRIX32 "", nla->errorCode);
+ WLog_ERR(TAG, "SPNEGO failed with NTSTATUS: %s [0x%08" PRIX32 "]",
+ GetSecurityStatusString(nla->errorCode), nla->errorCode);
code = FREERDP_ERROR_AUTHENTICATION_FAILED;
break;
}
