From: Stefan Metzmacher Date: Wed, 23 Nov 2022 14:19:48 +0000 (+0100) Subject: CVE-2022-37966 s3:libnet: remove unused ifdef HAVE_ENCTYPE_AES* X-Git-Tag: samba-4.15.13~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c23c17a8d7546df897654c4205d421de98c0598b;p=thirdparty%2Fsamba.git CVE-2022-37966 s3:libnet: 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 Reviewed-by: Joseph Sutton Reviewed-by: Andrew Bartlett (cherry picked from commit 1a36c348d7a984bed8d0f3de5bf9bebd1cb3c47a) --- diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index 4c67e9af5c4..79cbe29d594 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -2518,12 +2518,8 @@ WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx, ctx->in.desired_encryption_types = ENC_CRC32 | ENC_RSA_MD5 | ENC_RC4_HMAC_MD5; -#ifdef HAVE_ENCTYPE_AES128_CTS_HMAC_SHA1_96 ctx->in.desired_encryption_types |= ENC_HMAC_SHA1_96_AES128; -#endif -#ifdef HAVE_ENCTYPE_AES256_CTS_HMAC_SHA1_96 ctx->in.desired_encryption_types |= ENC_HMAC_SHA1_96_AES256; -#endif *r = ctx;