r4114: added have_features bits to gensec schannel code. This fixes our
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Dec 2004 10:32:43 +0000 (10:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:28 +0000 (13:06 -0500)
schannel code.

I would also like to give a gentle reminder to everyone to please run
the appropriate test scripts when you change a subsystem. It's a shame
to have this test code and not use it, and it takes much longer for
another developer to track down a bug in your new code than it would
take for you fix to it at the time you first add it.

 - for rpc changes run test_rpc.sh
 - for CIFS changes run test_posix.sh
 - for ldb changes run test-tdb in lib/ldb/
(This used to be commit 0c58b254cabd236911021aff87c73183356fa8e3)

source4/librpc/rpc/dcerpc_schannel.c

index 5d6a995cff1bba99ca1b668ba53b58719ff1aa40..ab32a8293429cec1169c1748ecc4582a6fd3bb46 100644 (file)
@@ -277,6 +277,10 @@ static NTSTATUS dcerpc_schannel_start(struct gensec_security *gensec_security)
 
        dce_schan_state->state = DCERPC_SCHANNEL_STATE_START;
        gensec_security->private_data = dce_schan_state;
 
        dce_schan_state->state = DCERPC_SCHANNEL_STATE_START;
        gensec_security->private_data = dce_schan_state;
+       gensec_security->have_features = 
+               GENSEC_FEATURE_SESSION_KEY | 
+               GENSEC_FEATURE_SIGN | 
+               GENSEC_FEATURE_SEAL;
        
        return NT_STATUS_OK;
 }
        
        return NT_STATUS_OK;
 }