]> git.sur5r.net Git - openldap/commitdiff
Put dnX509 normalizers behind #ifdef HAVE_TLS
authorHoward Chu <hyc@openldap.org>
Fri, 19 Apr 2002 01:25:15 +0000 (01:25 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 19 Apr 2002 01:25:15 +0000 (01:25 +0000)
servers/slapd/dn.c

index 3c68a0b98ab55b6ad7ef3ae815a397b2ec59e8a6..6c59b455c78c501f7e9d21220b354c485475c449 100644 (file)
@@ -830,6 +830,7 @@ dnIsSuffix(
        return( strcmp( dn->bv_val + d, suffix->bv_val ) == 0 );
 }
 
+#ifdef HAVE_TLS
 /*
  * Convert an X.509 DN into a normalized LDAP DN
  */
@@ -848,3 +849,4 @@ dnX509peerNormalize( void *ssl )
 {
        return ldap_pvt_tls_get_peer_dn( ssl, (LDAPDN_rewrite_dummy *)LDAPDN_rewrite, 0 );
 }
+#endif