auth/gensec: make sure gensec_start_mech_by_authtype() resets SIGN/SEAL before starting
commitf6e6167655ebe8b9aaa3c6336d62f26eb732a502
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Jun 2015 14:19:31 +0000 (20 16:19 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 5 Jul 2015 19:30:16 +0000 (5 21:30 +0200)
tree6746b9a3738ecf17090a73d594ff1c47684629bd
parent685876abbcc6f1e38ec021c60ec3b651327deafe
auth/gensec: make sure gensec_start_mech_by_authtype() resets SIGN/SEAL before starting

We want to set GENSEC_FEATURE_SIGN and GENSEC_FEATURE_SEAL based on the given
auth_level and should not have GENSEC_FEATURE_SEAL if
DCERPC_AUTH_LEVEL_INTEGRITY is desired.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 756508c8c37b0370301a096e35abc171fe08d31c)
auth/gensec/gensec_start.c