summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-03-19 00:44:20 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-03-19 03:20:05 +0100
commit8823aeaf24dc3c8f0690c2139ea52a94be14767f (patch)
tree92298ea681770d15c285fe8d9135cae66ff8a1f4 /source4/auth/gensec
parent942c6eedf7dec7de7979609789ddd08e308e70c2 (diff)
downloadsamba-8823aeaf24dc3c8f0690c2139ea52a94be14767f.tar.gz
samba-8823aeaf24dc3c8f0690c2139ea52a94be14767f.tar.bz2
samba-8823aeaf24dc3c8f0690c2139ea52a94be14767f.zip
source4/auth/gensec: Fix prototypes for all functions.
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/cyrus_sasl.c2
-rw-r--r--source4/auth/gensec/gensec.c1
-rw-r--r--source4/auth/gensec/gensec.h1
-rw-r--r--source4/auth/gensec/gensec_gssapi.c2
-rw-r--r--source4/auth/gensec/gensec_krb5.c2
-rw-r--r--source4/auth/gensec/schannel.c2
-rw-r--r--source4/auth/gensec/spnego.c2
7 files changed, 11 insertions, 1 deletions
diff --git a/source4/auth/gensec/cyrus_sasl.c b/source4/auth/gensec/cyrus_sasl.c
index e05a3b8222..bd7664878c 100644
--- a/source4/auth/gensec/cyrus_sasl.c
+++ b/source4/auth/gensec/cyrus_sasl.c
@@ -26,6 +26,8 @@
#include "auth/gensec/gensec_proto.h"
#include <sasl/sasl.h>
+NTSTATUS gensec_sasl_init(void);
+
struct gensec_sasl_state {
sasl_conn_t *conn;
int step;
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index b9385debc3..e632aec2dc 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -29,6 +29,7 @@
#include "librpc/rpc/dcerpc.h"
#include "auth/credentials/credentials.h"
#include "auth/gensec/gensec.h"
+#include "auth/gensec/gensec_proto.h"
#include "auth/auth.h"
#include "auth/system_session_proto.h"
#include "param/param.h"
diff --git a/source4/auth/gensec/gensec.h b/source4/auth/gensec/gensec.h
index 3c5257c195..48268c421e 100644
--- a/source4/auth/gensec/gensec.h
+++ b/source4/auth/gensec/gensec.h
@@ -274,7 +274,6 @@ NTSTATUS gensec_server_start(TALLOC_CTX *mem_ctx,
struct gensec_security **gensec_security);
NTSTATUS gensec_session_info(struct gensec_security *gensec_security,
struct auth_session_info **session_info);
-NTSTATUS nt_status_squash(NTSTATUS nt_status);
struct netlogon_creds_CredentialState;
NTSTATUS dcerpc_schannel_creds(struct gensec_security *gensec_security,
TALLOC_CTX *mem_ctx,
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index 307a507d6d..59029e6fc9 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -42,6 +42,8 @@
#include "auth/gensec/gensec_gssapi.h"
#include "lib/util/util_net.h"
+_PUBLIC_ NTSTATUS gensec_gssapi_init(void);
+
static size_t gensec_gssapi_max_input_size(struct gensec_security *gensec_security);
static size_t gensec_gssapi_max_wrapped_size(struct gensec_security *gensec_security);
diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c
index 4f452a07ee..e6497bb905 100644
--- a/source4/auth/gensec/gensec_krb5.c
+++ b/source4/auth/gensec/gensec_krb5.c
@@ -39,6 +39,8 @@
#include "auth/auth_sam_reply.h"
#include "lib/util/util_net.h"
+_PUBLIC_ NTSTATUS gensec_krb5_init(void);
+
enum GENSEC_KRB5_STATE {
GENSEC_KRB5_SERVER_START,
GENSEC_KRB5_CLIENT_START,
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c
index 45e5954b94..2e3f0219e9 100644
--- a/source4/auth/gensec/schannel.c
+++ b/source4/auth/gensec/schannel.c
@@ -30,6 +30,8 @@
#include "librpc/rpc/dcerpc.h"
#include "param/param.h"
+_PUBLIC_ NTSTATUS gensec_schannel_init(void);
+
static size_t schannel_sig_size(struct gensec_security *gensec_security, size_t data_size)
{
struct schannel_state *state = (struct schannel_state *)gensec_security->private_data;
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c
index 99687c71eb..1423423cc0 100644
--- a/source4/auth/gensec/spnego.c
+++ b/source4/auth/gensec/spnego.c
@@ -30,6 +30,8 @@
#include "auth/gensec/gensec_proto.h"
#include "param/param.h"
+_PUBLIC_ NTSTATUS gensec_spnego_init(void);
+
enum spnego_state_position {
SPNEGO_SERVER_START,
SPNEGO_CLIENT_START,