From 0ac9b6889ee982dcfef5e894eaa1084700a3d156 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 20 Sep 2004 04:06:25 +0000 Subject: [PATCH] Remove unused variable if not compiling with HAVE_TLS - NB slapd always exposes register_certificate_map_function(), as better to return an error if a plugin is compiled to use it and slapd is not built with HAVE_TLS than failing with an unresolved symbol --- servers/slapd/dn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 05e5ea6916..7f3a34537f 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -1357,7 +1357,9 @@ dnIsOneLevelRDN( struct berval *rdn ) return 1; } +#ifdef HAVE_TLS static SLAP_CERT_MAP_FN *DNX509PeerNormalizeCertMap = NULL; +#endif int register_certificate_map_function(SLAP_CERT_MAP_FN *fn) { -- 2.39.5