summaryrefslogtreecommitdiff
path: root/source3/librpc/crypto
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-09-03 09:38:57 -0400
committerGünther Deschner <gd@samba.org>2010-09-23 10:54:23 -0700
commit77c73a5ec92f9294195dfef977f66dfe66182c6d (patch)
tree7bf97542d92c13004a7f112e0ae7c80e5f422539 /source3/librpc/crypto
parent2c9f420d75ac0a231b84c2d85e9470bb595d6daf (diff)
downloadsamba-77c73a5ec92f9294195dfef977f66dfe66182c6d.tar.gz
samba-77c73a5ec92f9294195dfef977f66dfe66182c6d.tar.bz2
samba-77c73a5ec92f9294195dfef977f66dfe66182c6d.zip
spnego: make spnego_context public
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/librpc/crypto')
-rw-r--r--source3/librpc/crypto/cli_spnego.c19
-rw-r--r--source3/librpc/crypto/spnego.h21
2 files changed, 19 insertions, 21 deletions
diff --git a/source3/librpc/crypto/cli_spnego.c b/source3/librpc/crypto/cli_spnego.c
index 04a0922197..60e9e8012f 100644
--- a/source3/librpc/crypto/cli_spnego.c
+++ b/source3/librpc/crypto/cli_spnego.c
@@ -24,25 +24,6 @@
#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)
diff --git a/source3/librpc/crypto/spnego.h b/source3/librpc/crypto/spnego.h
index e2a00b6ef6..9512ed6324 100644
--- a/source3/librpc/crypto/spnego.h
+++ b/source3/librpc/crypto/spnego.h
@@ -20,14 +20,31 @@
#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,