]> git.sur5r.net Git - openldap/commitdiff
Remove unused variable if not compiling with HAVE_TLS - NB slapd always
authorLuke Howard <lukeh@openldap.org>
Mon, 20 Sep 2004 04:06:25 +0000 (04:06 +0000)
committerLuke Howard <lukeh@openldap.org>
Mon, 20 Sep 2004 04:06:25 +0000 (04:06 +0000)
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

index 05e5ea6916140b8a926ad9b9ce0edde7a7c33d9b..7f3a34537ff421d9554c3a9a2eb0eded6db50a6e 100644 (file)
@@ -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)
 {