From: Luke Howard Date: Mon, 20 Sep 2004 04:06:25 +0000 (+0000) Subject: Remove unused variable if not compiling with HAVE_TLS - NB slapd always X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~517 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ac9b6889ee982dcfef5e894eaa1084700a3d156;p=openldap 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 --- 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) {