r23792: convert Samba4 to GPLv3
[garming/samba-autobuild/.git] / source4 / auth / gensec / schannel.c
index 10c8f9853a0cf0693aed7579f27f43c3a54865ff..bc616dc64ec58019121e4fa5f0250395735dbe5d 100644 (file)
@@ -8,7 +8,7 @@
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_schannel.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/gensec/schannel.h"
+#include "auth/gensec/schannel_state.h"
+#include "auth/gensec/schannel_proto.h"
+#include "librpc/rpc/dcerpc.h"
 
 static size_t schannel_sig_size(struct gensec_security *gensec_security, size_t data_size)
 {
@@ -145,7 +149,8 @@ static NTSTATUS schannel_update(struct gensec_security *gensec_security, TALLOC_
  * Make sure not to call this unless gensec is using schannel...
  */
 
-NTSTATUS dcerpc_schannel_creds(struct gensec_security *gensec_security,
+/* TODO: make this non-public */
+_PUBLIC_ NTSTATUS dcerpc_schannel_creds(struct gensec_security *gensec_security,
                               TALLOC_CTX *mem_ctx,
                               struct creds_CredentialState **creds)
 { 
@@ -251,7 +256,8 @@ static const struct gensec_security_ops gensec_schannel_security_ops = {
        .session_info   = schannel_session_info,
        .sig_size       = schannel_sig_size,
        .have_feature   = schannel_have_feature,
-       .enabled        = True
+       .enabled        = True,
+       .priority       = GENSEC_SCHANNEL
 };
 
 NTSTATUS gensec_schannel_init(void)