We should check that we can actually negotiated the strong AES
crypto instead of just checking that NETLOGON_NEG_ARCFOUR is not
there...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit
3dcbc8eea5bc53a8332b3ad93ea4c3df99af7830)
if (!weak_crypto_allowed) {
torture_assert(tctx,
- (negotiate_flags & NETLOGON_NEG_ARCFOUR) == 0,
- "Server should not announce RC4 support");
+ (negotiate_flags & NETLOGON_NEG_SUPPORTS_AES),
+ "Server negotiate AES support");
}
/* Prove that requesting a challenge again won't break it */