X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2Fdn.c;h=6ed1b0cda032e9a15af34ea0547824779e2a15ea;hb=8cfda61cb44dc96a80f1da244c1979a717c3a482;hp=05e5ea6916140b8a926ad9b9ce0edde7a7c33d9b;hpb=eb9720c8023564db2c1916c0c17080faed75afd1;p=openldap
diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c
index 05e5ea6916..6ed1b0cda0 100644
--- a/servers/slapd/dn.c
+++ b/servers/slapd/dn.c
@@ -2,7 +2,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -34,7 +34,6 @@
#include
#include "slap.h"
-#include "ldap_pvt.h" /* must be after slap.h, to get ldap_bv2dn_x() & co */
#include "lutil.h"
/*
@@ -1300,7 +1299,7 @@ build_new_dn( struct berval * new_dn,
new_dn->bv_len = parent_dn->bv_len + newrdn->bv_len + 1;
new_dn->bv_val = (char *) slap_sl_malloc( new_dn->bv_len + 1, memctx );
- ptr = lutil_strcopy( new_dn->bv_val, newrdn->bv_val );
+ ptr = lutil_strncopy( new_dn->bv_val, newrdn->bv_val, newrdn->bv_len );
*ptr++ = ',';
strcpy( ptr, parent_dn->bv_val );
}
@@ -1357,7 +1356,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)
{