winpr: Fix typo in NTLM_AV_ID member.

According to Microsoft specifications[1] the 10th member is named as MsvAvChannelBindings.
[1]: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/
This commit is contained in:
Biswapriyo Nath 2021-06-23 10:09:10 +05:30 committed by akallabeth
parent 534d30beb3
commit a22bd407b0
2 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ enum _NTLM_AV_ID
MsvAvTimestamp,
MsvAvSingleHost,
MsvAvTargetName,
MsvChannelBindings
MsvAvChannelBindings
};
typedef enum _NTLM_AV_ID NTLM_AV_ID;

View File

@ -75,8 +75,8 @@ static const char* get_av_pair_string(UINT16 pair)
return "MsvAvSingleHost";
case MsvAvTargetName:
return "MsvAvTargetName";
case MsvChannelBindings:
return "MsvChannelBindings";
case MsvAvChannelBindings:
return "MsvAvChannelBindings";
default:
return "UNKNOWN";
}
@ -639,7 +639,7 @@ int ntlm_construct_authenticate_target_info(NTLM_CONTEXT* context)
* SEC_CHANNEL_BINDINGS structure
* http://msdn.microsoft.com/en-us/library/windows/desktop/dd919963/
*/
AvPairsCount++; /* MsvChannelBindings */
AvPairsCount++; /* MsvAvChannelBindings */
AvPairsValueLength += 16;
ntlm_compute_channel_bindings(context);
@ -727,8 +727,8 @@ int ntlm_construct_authenticate_target_info(NTLM_CONTEXT* context)
if (!context->SuppressExtendedProtection)
{
if (!ntlm_av_pair_add(AuthenticateTargetInfo, cbAuthenticateTargetInfo, MsvChannelBindings,
context->ChannelBindingsHash, 16))
if (!ntlm_av_pair_add(AuthenticateTargetInfo, cbAuthenticateTargetInfo,
MsvAvChannelBindings, context->ChannelBindingsHash, 16))
goto fail;
if (context->ServicePrincipalName.Length > 0)