spnego: make spnego_context public
authorSimo Sorce <idra@samba.org>
Fri, 3 Sep 2010 13:38:57 +0000 (09:38 -0400)
committerGünther Deschner <gd@samba.org>
Thu, 23 Sep 2010 17:54:23 +0000 (10:54 -0700)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/librpc/crypto/cli_spnego.c
source3/librpc/crypto/spnego.h

index 04a0922197c0c5cebf0444fc1375bdf8fb057c8e..60e9e8012f699b5a65fc015777d6c72468a7f522 100644 (file)
 #include "librpc/crypto/gse.h"
 #include "librpc/crypto/spnego.h"
 
-struct spnego_context {
-       enum spnego_mech mech;
-
-       bool do_sign;
-       bool do_seal;
-
-       union {
-               struct auth_ntlmssp_state *ntlmssp_state;
-               struct gse_context *gssapi_state;
-       } mech_ctx;
-
-       enum {
-               SPNEGO_CONV_INIT = 0,
-               SPNEGO_CONV_AUTH_MORE,
-               SPNEGO_CONV_AUTH_CONFIRM,
-               SPNEGO_CONV_AUTH_DONE
-       } state;
-};
-
 static NTSTATUS spnego_context_init(TALLOC_CTX *mem_ctx,
                                    bool do_sign, bool do_seal,
                                    struct spnego_context **spnego_ctx)
index e2a00b6ef6a4481006f4d61e7facac6702838986..9512ed632416b77d8bac83ca0609cc2e92dfc96f 100644 (file)
 #ifndef _CLI_SPNEGO_H_
 #define _CLI_SPENGO_H_
 
-struct spnego_context;
-
 enum spnego_mech {
        SPNEGO_NONE = 0,
        SPNEGO_KRB5,
        SPNEGO_NTLMSSP
 };
 
+struct spnego_context {
+       enum spnego_mech mech;
+
+       union {
+               struct auth_ntlmssp_state *ntlmssp_state;
+               struct gse_context *gssapi_state;
+       } mech_ctx;
+
+       enum {
+               SPNEGO_CONV_INIT = 0,
+               SPNEGO_CONV_AUTH_MORE,
+               SPNEGO_CONV_AUTH_CONFIRM,
+               SPNEGO_CONV_AUTH_DONE
+       } state;
+
+       bool do_sign;
+       bool do_seal;
+};
+
 NTSTATUS spnego_gssapi_init_client(TALLOC_CTX *mem_ctx,
                                   bool do_sign, bool do_seal,
                                   bool is_dcerpc,