diff options
| author | Pali Rohár <[email protected]> | 2024-10-06 17:20:13 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-04-09 18:34:32 +0000 |
| commit | 16cb6b0509b65ac89187e9402e0b7a9ddf1765ef (patch) | |
| tree | 9ecd11381aec0da27982ebbc5d9f202304735216 /rust/helpers/platform.c | |
| parent | smb: client: fix UAF in decryption with multichannel (diff) | |
| download | kernel-16cb6b0509b65ac89187e9402e0b7a9ddf1765ef.tar.gz kernel-16cb6b0509b65ac89187e9402e0b7a9ddf1765ef.zip | |
cifs: Fix encoding of SMB1 Session Setup Kerberos Request in non-UNICODE mode
Like in UNICODE mode, SMB1 Session Setup Kerberos Request contains oslm and
domain strings.
Extract common code into ascii_oslm_strings() and ascii_domain_string()
functions (similar to unicode variants) and use these functions in
non-UNICODE code path in sess_auth_kerberos().
Decision if non-UNICODE or UNICODE mode is used is based on the
SMBFLG2_UNICODE flag in Flags2 packed field, and not based on the
capabilities of server. Fix this check too.
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
