summaryrefslogtreecommitdiff
path: root/source3
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
commita763f4b79f56b09d633114aed776f168356741ae (patch)
tree0b4cc8cf66655c7e6d2073b9914c4cf6ad379d06 /source3
parent642f46dcf9717c274bb93abc20cf19a8a757ecae (diff)
downloadsamba-a763f4b79f56b09d633114aed776f168356741ae.tar.gz
samba-a763f4b79f56b09d633114aed776f168356741ae.tar.bz2
samba-a763f4b79f56b09d633114aed776f168356741ae.zip
Don't define SMB_TRANS_ENC_GSS if we don't have KRB5.
Jeremy. (This used to be commit 6f2b33f6072629be393f88d4450fa6631ef672f6)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/client.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index f8adf567de..d29a2e7341 100644
--- a/source3/include/client.h
+++ b/source3/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 {