From 6f2b33f6072629be393f88d4450fa6631ef672f6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 28 Feb 2008 05:54:50 -0800 Subject: [PATCH] Don't define SMB_TRANS_ENC_GSS if we don't have KRB5. Jeremy. --- source/include/client.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 { -- 2.11.4.GIT