Don't define SMB_TRANS_ENC_GSS if we don't have KRB5.
authorJeremy Allison <jra@samba.org>
Thu, 28 Feb 2008 13:54:50 +0000 (05:54 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 28 Feb 2008 13:54:50 +0000 (05:54 -0800)
Jeremy.
(This used to be commit 6f2b33f6072629be393f88d4450fa6631ef672f6)

source3/include/client.h

index f8adf567de904e5edc65db31d4064d837b8d1504..d29a2e73413a85000c0f2bd4239637f0a35ff3b7 100644 (file)
@@ -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 {