summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-02 23:12:16 +0200
committerGünther Deschner <gd@samba.org>2010-08-06 15:43:37 +0200
commit257a1f1097576fa981341521bda15824e7fac555 (patch)
treedc158d75613aadd8eeed05a9f32a3b9b45b301b0
parent2523aec6d19c519280793020f6db21c65a3c95ea (diff)
downloadsamba-257a1f1097576fa981341521bda15824e7fac555.tar.gz
samba-257a1f1097576fa981341521bda15824e7fac555.tar.bz2
samba-257a1f1097576fa981341521bda15824e7fac555.zip
s3-krb5: include krb5pac.h where needed.
Guenther
-rw-r--r--source3/include/krb5_protos.h3
-rw-r--r--source3/libads/kerberos_proto.h2
-rw-r--r--source3/libads/kerberos_verify.c1
-rw-r--r--source3/libsmb/clikrb5.c1
-rw-r--r--source3/smbd/sesssetup.c1
-rw-r--r--source3/smbd/smb2_sesssetup.c1
-rw-r--r--source3/winbindd/winbindd_pam.c1
7 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/krb5_protos.h b/source3/include/krb5_protos.h
index 97e6871c89..0b8aa71288 100644
--- a/source3/include/krb5_protos.h
+++ b/source3/include/krb5_protos.h
@@ -1,3 +1,6 @@
+struct PAC_DATA;
+struct PAC_SIGNATURE_DATA;
+
/* work around broken krb5.h on sles9 */
#ifdef SIZEOF_LONG
#undef SIZEOF_LONG
diff --git a/source3/libads/kerberos_proto.h b/source3/libads/kerberos_proto.h
index 7be81fa9a5..afd57fe220 100644
--- a/source3/libads/kerberos_proto.h
+++ b/source3/libads/kerberos_proto.h
@@ -1,3 +1,5 @@
+struct PAC_LOGON_INFO;
+
/* The following definitions come from libads/kerberos_verify.c */
NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index aaeff59182..887dac0502 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -27,6 +27,7 @@
#include "smb_krb5.h"
#include "libads/kerberos_proto.h"
#include "secrets.h"
+#include "../librpc/gen_ndr/krb5pac.h"
#ifdef HAVE_KRB5
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index fb2fdba86d..4eb43cfff1 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "smb_krb5.h"
+#include "../librpc/gen_ndr/krb5pac.h"
#ifndef KRB5_AUTHDATA_WIN2K_PAC
#define KRB5_AUTHDATA_WIN2K_PAC 128
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 514170e5fa..35b8c04747 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -28,6 +28,7 @@
#include "../libcli/auth/ntlmssp.h"
#include "ntlmssp_wrap.h"
#include "librpc/gen_ndr/messaging.h"
+#include "../librpc/gen_ndr/krb5pac.h"
#include "libads/kerberos_proto.h"
/* For split krb5 SPNEGO blobs. */
diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c
index 4f6d5d2e13..8e8e26c2a3 100644
--- a/source3/smbd/smb2_sesssetup.c
+++ b/source3/smbd/smb2_sesssetup.c
@@ -25,6 +25,7 @@
#include "../libcli/auth/spnego.h"
#include "../libcli/auth/ntlmssp.h"
#include "ntlmssp_wrap.h"
+#include "../librpc/gen_ndr/krb5pac.h"
#include "libads/kerberos_proto.h"
static NTSTATUS smbd_smb2_session_setup(struct smbd_smb2_request *smb2req,
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 11b16310b4..70adc29b1e 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -33,6 +33,7 @@
#include "../lib/crypto/arcfour.h"
#include "../libcli/security/dom_sid.h"
#include "ads.h"
+#include "../librpc/gen_ndr/krb5pac.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND