Commit Graph

1791 Commits

Author SHA1 Message Date
Kurt Zeilenga
2718ec4238 Add "lutil*.h" to project. 1999-06-01 18:58:19 +00:00
Kurt Zeilenga
6d6e0dde91 Shouldn't need <sys/stat.h>. 1999-06-01 18:57:34 +00:00
Kurt Zeilenga
be3f7eadaa Update memory allocation calls. 1999-06-01 02:07:57 +00:00
Kurt Zeilenga
847c452c9d Add extended.c to projects
remove bogus libldap_r/apitest.ds[pw] files.
1999-06-01 02:07:05 +00:00
Kurt Zeilenga
f83e93af21 Share errcode lookup code. Modify ld_version conditions not to test absolutes.
Add asserts and additional param checks.
1999-06-01 02:06:12 +00:00
Kurt Zeilenga
60d9aeed6e Remove LDAP_LIBUI dependency. 1999-06-01 02:03:21 +00:00
Kurt Zeilenga
68e64e768b Use ber_mem* functions. 1999-06-01 00:04:36 +00:00
Kurt Zeilenga
c581055b54 Add skeleton ldap_extended_operation routines. 1999-05-31 21:19:07 +00:00
Kurt Zeilenga
95b3c92df7 use 'int' instead of 'char' for balance factor.
(barely) hide more internals.
1999-05-31 20:44:05 +00:00
Kurt Zeilenga
f704f1c475 (barely) hide AVL internals 1999-05-31 20:40:42 +00:00
Kurt Zeilenga
322bb86fa4 #ifdef out non-reentrant prototypes.
Only testavl uses this interface.
1999-05-31 20:32:21 +00:00
Kurt Zeilenga
a641a9266d use LDAP_MALLOC instead of malloc. Check for allocation errors. 1999-05-31 20:04:15 +00:00
Kurt Zeilenga
7bd5b261fb Move most header inclusion below #ifdef HAVE_XXX.
Use LDAP_MALLOC instead of ch_malloc
1999-05-31 19:59:29 +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
Julio Sánchez Fernández
ae4c85b84f Fudge oc_kind on synthesized objectclasses so that they are STRUCTURAL
instead of ABSTRACT.
1999-05-31 15:17:42 +00:00
Julio Sánchez Fernández
2b69b706de Syntaxes.
Accept X- experimental clauses.
1999-05-31 12:04:06 +00:00
Julio Sánchez Fernández
288c304aeb Syntaxes. 1999-05-31 12:02:43 +00:00
Julio Sánchez Fernández
f804c46da6 Cosmetic/spelling fixes. 1999-05-31 11:23:41 +00:00
Kurt Zeilenga
4c14412929 Remove lint. 1999-05-31 05:39:51 +00:00
Kurt Zeilenga
117d3275ac Genericize byte types into autoconf namespace. 1999-05-31 05:39:10 +00:00
Kurt Zeilenga
9417618276 Remove redundant WSAEWOULDBLOCK declaration. 1999-05-31 05:37:09 +00:00
Kurt Zeilenga
5176f4e356 Free strings returned by ldap_get_option(). 1999-05-31 05:34:49 +00:00
Kurt Zeilenga
d8032bcbaa Use #error if ctime_r nargs are screwy. 1999-05-31 05:34:13 +00:00
Kurt Zeilenga
c72cb0c8fe Remove dependency upon lber-int.h by using ber_set_option(). 1999-05-31 05:27:32 +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
4bba4a48dd Remove prototype for removed ber_clear(). 1999-05-30 21:59:45 +00:00
Julio Sánchez Fernández
21577a0966 Some definition reordering to satisfy dependencies. 1999-05-30 00:08:59 +00:00
Julio Sánchez Fernández
ae481022f9 Oops, fp_parse_line tokenizes in place, so we need to take a copy of
input before letting fp_parse_line ruin it.
1999-05-30 00:07:40 +00:00
Julio Sánchez Fernández
663d7e8627 Lose previously commented out old code.
Robustness fixes.
Fixed error reporting of non-existing attribute superior.
1999-05-30 00:05:24 +00:00
Julio Sánchez Fernández
be051c3fb3 Relax some rules to survive Netscape DS brokennes, more to come.
A few parse_whsp were missing.
Detect and survive null input.
1999-05-30 00:01:53 +00:00
Julio Sánchez Fernández
7129d11e8f New error code for null string input. 1999-05-29 23:57:39 +00:00
Kurt Zeilenga
2c6f4abc0a DEFAULT_DIRSEP -> DIRSEP 1999-05-29 19:10:01 +00:00
Kurt Zeilenga
c3b1baa89f Correct minor oversights from last commit. 1999-05-29 19:08:57 +00:00
Kurt Zeilenga
de7db04d0c Update DIRSEP handling (temporary, should be handled by autoconf) 1999-05-29 18:58:45 +00:00
Kurt Zeilenga
fbc0bd013e Minor adjustments to better handle NT vs UNIX. 1999-05-29 18:57:23 +00:00
Kurt Zeilenga
16366cff99 Add warnings if ldap_set_option() fails.
Check for ldap_set_option() error using LDAP_OPT_ERROR, not -1.
(probably should check != LDAP_OPT_SUCCESS instead).
Added additional usage errors.
Used return(EXIT_FAILURE) instead of exit(1).
Used DIRSEP instead of '/' && '\\'
Moved verbose output to stderr.
1999-05-29 18:53:40 +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
Howard Chu
193ab59661 Fix --enable-ldap behavior for back-ldap 1999-05-29 03:44:46 +00:00
Kurt Zeilenga
87a8abe880 old_abandon should be int* not long*. 1999-05-29 03:32:33 +00:00
Kurt Zeilenga
4839e570fb safe_free_string() should be static 1999-05-29 01:45:55 +00:00
Kurt Zeilenga
cad31e00cc Add memory.c to -llber 1999-05-29 01:35:34 +00:00
Julio Sánchez Fernández
e6f9faa94a Fixed parsing of noidlen 1999-05-29 01:32:37 +00:00
Julio Sánchez Fernández
fbcbf29651 Install ldap_schema.h 1999-05-29 01:28:36 +00:00
Kurt Zeilenga
6c9aa52b3b Fix allocator typo 1999-05-29 01:26:12 +00:00
Kurt Zeilenga
1bcec8bf6a Add LBER_ and LDAP_ memory allocators/deallocators for internal
library use:
  LBER_ macros expand to system routines.
  LDAP_ macros expand to new ber_ allocators.

Add ber_ and ldap_ memory allocators/deallocator:
  ber_ routines are wrappers of LBER_ macros.
  ldap_ routines are wrappers of ber_ routines.

Removed safe_realloc() macro from various files.  This issue
(if an issue) should be resolved across whole package.

ldapmodify.c now uses ber_ allocators to resolve ber_bvfree()
vs. WIN32 multiple heaps issue.

These changes should facilate implementation of
  ber_set_option( NULL, LBER_OPT_MEMORY_FN, ...)
and
  ldap_set_option( NULL, LDAP_OPT_MEMORY_FN, ...).
1999-05-29 01:19:14 +00:00
Kurt Zeilenga
27caa58f51 ber_clear() no longer needed. Removed. 1999-05-28 20:19:28 +00:00
Kurt Zeilenga
4e5ed2dffc Changed lc_conn to be a pointer to a BerElement to aid in state management.
Added validation to exposed opaque data structures (BerElement, Sockbuf,
and LDAP).  Added macros BER_VALID, SOCKBUF_VALID, LDAP_VALID.
Added ber_pvt_ber_bytes() and ber_pvt_ber_remaining() macros to hide
some ber internals.  These really should be handled by ber_get_option().
1999-05-28 19:33:05 +00:00
Julio Sánchez Fernández
a97e3e94e6 Provide (and use) #define shortcuts
Really kill global_oc & global_at
Publish schema through LDAP (really, it's there at last :-)
1999-05-28 18:56:47 +00:00
Julio Sánchez Fernández
06c5f96b49 safe_string_free was freeing the string value, so we have to save it. 1999-05-28 18:51:21 +00:00
Julio Sánchez Fernández
7f357399cf First step in new schema support. 1999-05-28 14:27:07 +00:00