s4:smb_server: avoid using gensec_update_ev() for the negotiate blob
authorStefan Metzmacher <metze@samba.org>
Thu, 11 May 2017 13:36:31 +0000 (15:36 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 21 May 2017 19:05:08 +0000 (21:05 +0200)
commit314b577861ee0e6f5498fd2d0a49a76892772849
treed3d670b707cfc95d77cf032387f246abed5aa81e
parentf4424579a0b4305751b308588c40cb7c005bd9e9
s4:smb_server: avoid using gensec_update_ev() for the negotiate blob

Getting the SPNEGO mech type blob, we don't expect to block for
any network io, so we can also use gensec_update() which creates
a temporary event context.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/smb_server/smb/negprot.c
source4/smb_server/smb2/negprot.c