summaryrefslogtreecommitdiffstats
path: root/source/include/client.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-28 05:54:50 -0800
committerJeremy Allison <jra@samba.org>2008-02-28 05:54:50 -0800
commit6f2b33f6072629be393f88d4450fa6631ef672f6 (patch)
tree8b2d67ffa582e6a364174e3ebf5ef82541320d48 /source/include/client.h
parent735235e32bf41a7564ce2d585c1dae187b00bf6b (diff)
downloadsamba-6f2b33f6072629be393f88d4450fa6631ef672f6.tar.gz
samba-6f2b33f6072629be393f88d4450fa6631ef672f6.tar.xz
samba-6f2b33f6072629be393f88d4450fa6631ef672f6.zip
Don't define SMB_TRANS_ENC_GSS if we don't have KRB5.
Jeremy.
Diffstat (limited to 'source/include/client.h')
-rw-r--r--source/include/client.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/include/client.h b/source/include/client.h
index f8adf567de9..d29a2e73413 100644
--- a/source/include/client.h
+++ b/source/include/client.h
@@ -82,7 +82,12 @@ struct rpc_pipe_client {
};
/* Transport encryption state. */
-enum smb_trans_enc_type { SMB_TRANS_ENC_NTLM, SMB_TRANS_ENC_GSS };
+enum smb_trans_enc_type {
+ SMB_TRANS_ENC_NTLM
+#if defined(HAVE_GSSAPI) && defined(HAVE_KRB5)
+ , SMB_TRANS_ENC_GSS
+#endif
+};
#if defined(HAVE_GSSAPI) && defined(HAVE_KRB5)
struct smb_tran_enc_state_gss {