Howard Chu
60d621fc04
Fix typo
2003-01-23 03:35:31 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Kurt Zeilenga
9cfcdc432b
Fix ITS#2142
2002-10-17 16:55:42 +00:00
Kurt Zeilenga
f833b02518
Fix realloc() bugs
2002-10-08 20:37:30 +00:00
Howard Chu
1c69a2ab2b
ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup.
2002-08-06 02:35:51 +00:00
Pierangelo Masarati
2aec424646
use memchr in ber_bvchr
2002-02-14 21:10:13 +00:00
Pierangelo Masarati
215448ac83
substrings match works with NULs in UTF8 strings
2002-02-14 18:55:38 +00:00
Pierangelo Masarati
39891e4e5b
make UTF8STringNormalize handle NUL
2002-02-13 21:25:57 +00:00
Howard Chu
ac1332cdb8
Renamed BVarray to BerVarray. Moved slapd:bvarray_{add,free} to
...
liblber:ber_bvarray_{add,free}.
2002-01-14 01:43:17 +00:00
Kurt Zeilenga
c36352c173
Misc allocator cleanup
2002-01-05 19:38:54 +00:00
Kurt Zeilenga
f1afebe727
struct * are not to be const'ified
2002-01-05 18:54:04 +00:00
Pierangelo Masarati
d0261ee534
leftover ber_bvdup eliminated; rewritten ber_bvdup in terms of ber_dupbv; eliminated wrapper macro; other ber_* improvements
2002-01-05 17:49:59 +00:00
Kurt Zeilenga
0e2af54a3f
Update copyright statements
2002-01-04 21:17:25 +00:00
Howard Chu
327f253183
Add optional len to ber_str2bv
2001-12-26 13:45:22 +00:00
Howard Chu
733056970e
Changed ber_bvdup to ber_dupbv with destination provided
2001-12-26 11:15:28 +00:00
Howard Chu
fb3af1ccbd
Merged ber_bvstr and ber_bvstrdup into ber_str2bv.
2001-12-26 10:06:19 +00:00
Pierangelo Masarati
97e8a2a9da
fixes ITS#1398
2001-10-20 15:49:05 +00:00
Pierangelo Masarati
fefc29786c
skeleton of ldap_str2nd/dn2str; works with most of the simple cases, but there's much to do with unicode, I think
2001-10-18 19:00:07 +00:00
Kurt Zeilenga
978e417699
Make some additional UTF8 public
...
Remove lint
2001-07-21 23:13:04 +00:00
Kurt Zeilenga
1dc469e064
Remove max buffer constraint!
...
and general cleanup
2000-10-11 02:43:14 +00:00
Kurt Zeilenga
ce856bd5c2
ber_bvstr() shouldn't play games with input string.
2000-08-15 17:01:40 +00:00
Kurt Zeilenga
5b856458a2
s/SAFEMEMCPY/AC_MEMCPY/
...
Use AC_FMEMCPY where appropriate (-llber)
2000-07-28 01:07:07 +00:00
Kurt Zeilenga
060ee8ee88
Add Steve Sonntag's (Novell) memory debugging extensions
2000-07-04 18:47:06 +00:00
Kurt Zeilenga
7b836babb6
Fix LBER_MEMORY_DEBUG failed realloc bug
2000-06-10 00:17:55 +00:00
Kurt Zeilenga
29d9fa20a2
Y2k copyright update
2000-05-13 02:36:07 +00:00
Kurt Zeilenga
6c6ecc15d5
Add comment concern appropriate use of LDAP_MEMORY_DEBUG
...
(basically, it's for testing internals, don't enable it otherwise)
2000-02-16 23:51:34 +00:00
Kurt Zeilenga
0dbaf87730
Another round of changes behind -DSLAPD_SCHEMA_NOT_COMPAT
...
plus these changes unhidden changes:
remove now meaning --enable-discreteaci configure option
fix ITS#451, slapd filters
Add ber_bvecadd() to support above
constify ldap_pvt_find_wildcard() and misc slapd routines
renamed some slap.h macros
likely broken something
2000-02-14 20:57:34 +00:00
Kurt Zeilenga
22ba55371e
Move ldap_utf8_*() declarations from ldap-int.h to ldap_pvt.h.
...
We may likely want to expose the routines at a later date (ldap_utf8.h?).
2000-01-22 21:09:24 +00:00
Kurt Zeilenga
6437785a82
Initial implementation of Kerberos password verification for
...
simple bind via:
{KERBEROS}principal
Code is disabled by default (for security reasons). Use
--enable-kpasswd to enable. Behind SLAPD_KPASSWD.
Reworked Kerberos detection and split out KBIND as independent
feature (--disable-kbind) (LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND).
KBIND depends upon detection of KRB4 (or KRB425) support. Detection,
building with eBones (as distributed with FreeBSD 3.4) okay, but
wasn't able to test as I don't have a K4 KDC handy.
--with-kerberos has a number of detection options... most likely
don't work properly.
2000-01-08 18:42:11 +00:00
Kurt Zeilenga
37d28e7d0d
Add ber_bvstr and ber_bvstrdup string to berval allocators.
1999-12-17 05:37:33 +00:00
Kurt Zeilenga
b1639dadd6
Remove lint
...
Add copyrights
1999-12-13 04:53:59 +00:00
Kurt Zeilenga
942d37afc5
Set ber_errno here and there.
1999-12-06 06:33:26 +00:00
Kurt Zeilenga
403f4479bc
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
...
Replace old Id as needed (back-tcl).
Leave updating of contribWare to contributors (for now).
1999-09-08 19:06:24 +00:00
Hallvard Furuseth
2026aa84fa
Add bmu_funcp to bmu_align_u
1999-07-13 03:54:42 +00:00
Kurt Zeilenga
669b8f4047
ber_int_t, ber_tag_t, ber_socket_t, ber_len_t
...
added lber_types.h.nt, lber_types.h.in
removal of NULLxxx internal macros (in favor of NULL).
ch_free added to slapd,slurpd/ch_malloc.c
#define free ch_free (should be removed after s/free/ch_free/g) in proto-slap.h
ch_malloc and friends use ber_memalloc and friends
1999-06-18 23:53:05 +00:00
Kurt Zeilenga
f34c94e5d5
Disable LDAP_MEMORY_DEBUG on NT (should not have been enabled by default).
...
Fix LDAP_MEMORY_DEBUG realloc size bug, thanks Alex.
1999-06-10 00:56:00 +00:00
Kurt Zeilenga
c6cf2815cb
Add missing ';' after BER_MEM_VALID macro calls.
1999-06-08 01:41:38 +00:00
Kurt Zeilenga
82def24b31
don't test BER_MEM_VALID forever.
1999-06-08 01:37:47 +00:00
Kurt Zeilenga
ca00536233
Minor clean of assert() and comments.
1999-06-07 23:12:34 +00:00
Kurt Zeilenga
b09e658d5b
Add and use a BER_MEM_VALID macro (behind ifdef LDAP_MEMORY_DEBUG).
...
Make sure LBER_INTIALIZED is set on any ber_mem* call.
1999-06-07 19:33:08 +00:00
Kurt Zeilenga
012f4e29b0
Hide assert(p == NULL) behind LDAP_MEMORY_DEBUG.
...
Add detection for duplicate free in LDAP_MEMORY_DEBUG code.
1999-06-07 18:48:22 +00:00
Kurt Zeilenga
9fef42d3f8
Enable browsing info in MSVC debugging configurations.
...
Toy with dllimport/dllexport stuff (think I'll leave the real dll work to
somebody else).
Added ldap_strdup() wrapper of ber_strdup().
1999-06-03 18:24:22 +00:00
Kurt Zeilenga
21c70857f1
s/<stdlib.h>/<ac/stdlib.h>/
1999-06-03 00:37:44 +00:00
Kurt Zeilenga
1f52f6e43e
Add ber_strdup(), remove ldap_int_strdup(), add LDAP_STRDUP macro
...
and ripple change through -lldap.
1999-06-02 22:28:22 +00:00
Kurt Zeilenga
09fe2bc905
Add experimental wrong heap detection behind LDAP_MEMORY_DEBUG macro.
1999-06-02 21:34:34 +00:00
Kurt Zeilenga
4ccab0d4df
move berval memory routines to memory.c
...
Add ber_memvfree(void** vector)
1999-06-01 19:01:05 +00:00
Kurt Zeilenga
37636eabd3
Clean up LDAP_BOOL_GET and fetching via ldap_get_option().
...
Modify apitest to test for non-zero instead of LDAP_OPT_ON.
1999-05-31 17:30:22 +00:00
Kurt Zeilenga
2e5a52414a
Initial round 2 memory allocation changes. THIS IS A WORK IN PROGRESS.
...
includes single to multiple hooks changes.
ber_mem* reimplementation.
namespace glue (finally naming has not be decided upon nor implemented).
Added ldap_int_strdup to handle "internal" strdup'ing, this version uses hooks.
ldap_pvt_strdup still available for when strdup() is missing, this version
directly uses system allocators.
Updated -lldif to use ber allocators. Items returned by ldif routines
should be ber_memfree()d as needed.
1999-05-30 23:00:52 +00:00
Kurt Zeilenga
fbc0bd013e
Minor adjustments to better handle NT vs UNIX.
1999-05-29 18:57:23 +00:00
Kurt Zeilenga
2f969f8552
First cut at ber_set_option(NULL,LBER_OPT_MEMORY_FN, myrealloc) where
...
myrealloc is pointer to a realloc() wrapper.
Must be first library call or else.
1999-05-29 05:16:31 +00:00