diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-05 21:31:25 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-05 21:31:25 +0200 |
commit | f974e2337977119ad9d5781a0fe88579f73215b0 (patch) | |
tree | f9b4d1b0dc76d34af4a60b3cc3e49d89402e04f6 /nslcd/cfg.c | |
parent | bd216388f655dd170d71c5413052412cd96b810f (diff) |
some compatibility improvements
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@998 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/cfg.c')
-rw-r--r-- | nslcd/cfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c index 1a09b9d..e8a5408 100644 --- a/nslcd/cfg.c +++ b/nslcd/cfg.c @@ -457,6 +457,7 @@ static void get_gid(const char *filename,int lnr, exit(EXIT_FAILURE); } +#ifdef LDAP_OPT_X_TLS static void get_reqcert(const char *filename,int lnr, const char *keyword,char **line, int *var) @@ -483,6 +484,7 @@ static void get_reqcert(const char *filename,int lnr, exit(EXIT_FAILURE); } } +#endif /* LDAP_OPT_X_TLS */ static void parse_krb5_ccname_statement(const char *filename,int lnr, const char *keyword,char *line) @@ -659,8 +661,10 @@ static void cfg_read(const char *filename,struct ldap_config *cfg) char keyword[32]; char token[64]; int i; +#ifdef LDAP_OPT_X_TLS int rc; char *value; +#endif /* open config file */ if ((fp=fopen(filename,"r"))==NULL) { |