diff options
author | Stefan Metzmacher <metze@samba.org> | 2023-05-16 13:09:23 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2023-05-17 07:34:28 +0000 |
commit | e03e738dfc96b3c8ce54e2d280143965713f4778 (patch) | |
tree | 666ed90a7d6651faa65bd9e1f01d976e580ac074 /librpc | |
parent | 8296b6884dfcc2b3e94f60b0479ef92a5b50f53e (diff) | |
download | samba-e03e738dfc96b3c8ce54e2d280143965713f4778.tar.gz |
librpc/rpc: allow smb3_sid_parse() to accept modern encryption algorithms
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
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/dcerpc_helper.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/librpc/rpc/dcerpc_helper.c b/librpc/rpc/dcerpc_helper.c index eec78e034ee..e1589f90794 100644 --- a/librpc/rpc/dcerpc_helper.c +++ b/librpc/rpc/dcerpc_helper.c @@ -49,7 +49,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; } |