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, MsvAvTimestamp,
MsvAvSingleHost, MsvAvSingleHost,
MsvAvTargetName, MsvAvTargetName,
MsvChannelBindings MsvAvChannelBindings
}; };
typedef enum _NTLM_AV_ID NTLM_AV_ID; 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"; return "MsvAvSingleHost";
case MsvAvTargetName: case MsvAvTargetName:
return "MsvAvTargetName"; return "MsvAvTargetName";
case MsvChannelBindings: case MsvAvChannelBindings:
return "MsvChannelBindings"; return "MsvAvChannelBindings";
default: default:
return "UNKNOWN"; return "UNKNOWN";
} }
@ -639,7 +639,7 @@ int ntlm_construct_authenticate_target_info(NTLM_CONTEXT* context)
* SEC_CHANNEL_BINDINGS structure * SEC_CHANNEL_BINDINGS structure
* http://msdn.microsoft.com/en-us/library/windows/desktop/dd919963/ * http://msdn.microsoft.com/en-us/library/windows/desktop/dd919963/
*/ */
AvPairsCount++; /* MsvChannelBindings */ AvPairsCount++; /* MsvAvChannelBindings */
AvPairsValueLength += 16; AvPairsValueLength += 16;
ntlm_compute_channel_bindings(context); ntlm_compute_channel_bindings(context);
@ -727,8 +727,8 @@ int ntlm_construct_authenticate_target_info(NTLM_CONTEXT* context)
if (!context->SuppressExtendedProtection) if (!context->SuppressExtendedProtection)
{ {
if (!ntlm_av_pair_add(AuthenticateTargetInfo, cbAuthenticateTargetInfo, MsvChannelBindings, if (!ntlm_av_pair_add(AuthenticateTargetInfo, cbAuthenticateTargetInfo,
context->ChannelBindingsHash, 16)) MsvAvChannelBindings, context->ChannelBindingsHash, 16))
goto fail; goto fail;
if (context->ServicePrincipalName.Length > 0) if (context->ServicePrincipalName.Length > 0)