]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc/rpc: allow smb3_sid_parse() to accept modern encryption algorithms
authorStefan Metzmacher <metze@samba.org>
Tue, 16 May 2023 11:09:23 +0000 (13:09 +0200)
committerJule Anger <janger@samba.org>
Tue, 23 May 2023 07:13:09 +0000 (07:13 +0000)
We should not limit the possible encryption algorithms to the currently
known ones.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15374

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed May 17 07:34:28 UTC 2023 on atb-devel-224

(cherry picked from commit e03e738dfc96b3c8ce54e2d280143965713f4778)

librpc/rpc/dcerpc_helper.c

index cf0deeb20794ba3a5b1a3118b9470f6225276884..48a9a0e46d6858a4e479c51469d7fa21185bcb96 100644 (file)
@@ -48,7 +48,12 @@ static bool smb3_sid_parse(const struct dom_sid *sid,
        }
 
        cipher = sid->sub_auths[3];
-       if (cipher > SMB2_ENCRYPTION_AES128_GCM) {
+       if (cipher > 256) {
+               /*
+                * It is unlikely that we
+                * ever have more then 256
+                * encryption algorithms
+                */
                return false;
        }