mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
CVE-2022-37966 s3:net_ads: remove unused ifdef HAVE_ENCTYPE_AES*
aes encryption types are always supported.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit f3fe1f2ce6
)
This commit is contained in:
parent
c0bbcc442b
commit
0c7af9838f
@ -3494,12 +3494,8 @@ static int net_ads_enctypes_set(struct net_context *c, int argc, const char **ar
|
||||
}
|
||||
|
||||
etype_list = ENC_CRC32 | ENC_RSA_MD5 | ENC_RC4_HMAC_MD5;
|
||||
#ifdef HAVE_ENCTYPE_AES128_CTS_HMAC_SHA1_96
|
||||
etype_list |= ENC_HMAC_SHA1_96_AES128;
|
||||
#endif
|
||||
#ifdef HAVE_ENCTYPE_AES256_CTS_HMAC_SHA1_96
|
||||
etype_list |= ENC_HMAC_SHA1_96_AES256;
|
||||
#endif
|
||||
|
||||
if (argv[1] != NULL) {
|
||||
sscanf(argv[1], "%i", &etype_list);
|
||||
|
Loading…
Reference in New Issue
Block a user