1. 27 Aug, 1999 1 commit
    • Kurt Zeilenga's avatar
      Plug ber leakage: · 9bf50242
      Kurt Zeilenga authored
      result was leaking ber's in some error cases.  ber_flush now called
      with no freeing so that caller of send_ldap_ber() can free its own ber.
      c->c_currentber was also being leaked if connection was destory
      current when a PDU input was outstanding.
      Fixed ber_flush to free ber upon write only to file.
      9bf50242
  2. 28 Jun, 1999 2 commits
  3. 18 Jun, 1999 1 commit
    • Kurt Zeilenga's avatar
      ber_int_t, ber_tag_t, ber_socket_t, ber_len_t · 669b8f40
      Kurt Zeilenga authored
      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
      669b8f40
  4. 07 Jun, 1999 1 commit
  5. 03 Jun, 1999 2 commits
  6. 29 May, 1999 2 commits
    • Kurt Zeilenga's avatar
      First cut at ber_set_option(NULL,LBER_OPT_MEMORY_FN, myrealloc) where · 2f969f85
      Kurt Zeilenga authored
      myrealloc is pointer to a realloc() wrapper.
      Must be first library call or else.
      2f969f85
    • Kurt Zeilenga's avatar
      Add LBER_ and LDAP_ memory allocators/deallocators for internal · 1bcec8bf
      Kurt Zeilenga authored
      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, ...).
      1bcec8bf
  7. 28 May, 1999 2 commits
  8. 20 May, 1999 4 commits
  9. 19 May, 1999 2 commits
    • Kurt Zeilenga's avatar
      Add UL to LBER tags. · 6ee995f5
      Kurt Zeilenga authored
      6ee995f5
    • Kurt Zeilenga's avatar
      Vienna Bulk Commit · dc07e765
      Kurt Zeilenga authored
      This commit includes many changes.  All changes compile under NT but
      have not been tested under UNIX.
      
      A Summary of changes (likely incomplete):
      
      NT changes:
      	Removed lint.
      	Clean up configuration support for "Debug", "Release", "SDebug",
      		and "SRelease" configurations.
      	Share output directories for clients, libraries,
      		and slapd.  (maybe they should be combined further
      		and moved to build/{,S}{Debug,Release}).
      	Enable threading when _MT is defined.
      	Enable debuging when _DEBUG is defined.
      	Disable setting of NDEBUG under Release/SRelease.  Asserts
      		are disabled in <ac/assert.h> when LDAP_DEBUG is not
      		defined.
      	Added 'build/main.dsp' Master project.
      	Removed non-slapd projects from slapd.dsp (see main.dsp).
      	Removed replaced many uses of _WIN32 macro with feature based
      		macros.
      
      ldap_cdefs.h changes
      	#define LDAP_CONST const
      		(see below)
      	#define LDAP_F(type) LDAP_F_PRE type LDAP_F_POST
      		To allow specifiers to be added before and after
      		the type declaration.  (For DLL handling)
      
      LBER/LDAP changes
      	Namespace changes:
      		s/lber_/ber_/ for here and there.
      		s/NAME_ERROR/LDAP_NAME_ERROR/g
      	Deleted NULLMSG and other NULL* macros for namespace reasons.
      	"const" libraries.  Installed headers (ie: lber.h, ldap.h)
      		use LDAP_CONST macro.  Normally set to 'const' when
      		__STDC__.  Can be set externally to enable/disable
      		'constification' of external interface.  Internal
      		interface always uses 'const'.  Did not fix warnings
      		in -lldif (in lieu of new LDIF parser).
      
      	Added _ext API implementations (excepting search and bind).
      		Need to implement ldap_int_get_controls() for reponses
      		with controls.
      
      	Added numberous assert() checks.
      
      LDAP_R
      	_MT defines HAVE_NT_THREADS
      	Added numberous assert() checks.
      	Changed ldap_pthread_t back to unsigned long.  Used cast
      	to HANDLE in _join().
      
      LDBM
      	Replaced _WIN32 with HAVE_SYSLOG
      
      ud
      	Added version string if MKVERSION is not defined.  (MKVERSION
      		needs to be set under UNIX).
      
      slapd
      	Made connection sockbuf field a pointer to a sockbuf.  This
      		removed slap.h dependency on lber-int.h.  lber-int.h now only
      		included by those files needing to mess with the sockbuf.
      	Used ber_* functions/macros to access sockbuf internals whenever
      		possible.
      	Added version string if MKVERSION is not defined.  (MKVERSION
      		needs to be set under UNIX).
      	Removed FD_SET unsigned lint
      
      slapd/tools
      	Used EXEEXT to added ".exe" to routines.  Need to define EXEEXT
      		under UNIX.
      
      ldappasswd
      	Added ldappasswd.dsp.  Ported to NT.  Used getpid() to seed rand().
      
      nt_debug
      	Minor cleanup.  Added "portable.h" include and used <ac/*.h> where
      	appropriate.  Added const to char* format argument.
      dc07e765
  10. 27 Apr, 1999 1 commit
  11. 20 Mar, 1999 1 commit
    • Kurt Zeilenga's avatar
      Provide global assert solution. <ac/assert.h> (new) is now included · f999e135
      Kurt Zeilenga authored
      by portable.h with NDEBUG undefined.  This makes assert() is always
      available and automatically disables itself when LDAP_DEBUG is undefined.
      I've included a basic assert() for pre-STDC compilers.  It relies on
      abort() which may not actually be available.  (well replace abort()
      with whatever is appropriate if and when we're faced with a pre-STDC
      compiler that doesn't have assert()).
      f999e135
  12. 03 Mar, 1999 3 commits
  13. 02 Mar, 1999 1 commit
  14. 11 Feb, 1999 1 commit
  15. 29 Jan, 1999 1 commit
  16. 28 Dec, 1998 2 commits
  17. 22 Dec, 1998 1 commit
  18. 18 Dec, 1998 1 commit
  19. 18 Nov, 1998 1 commit
  20. 16 Nov, 1998 1 commit
    • Kurt Zeilenga's avatar
      Remove extern declarations of library functions from source.c. · b5494457
      Kurt Zeilenga authored
        This could cause problems on odd systems.  The generic
        headers should be extended as needed to include necessary
        system headers or, if necessary, make explicit declarations.
      Extended ac/string.h header to look for string.h/strings.h if
        STDC_HEADERS is not defined.  Also provide basic declarations for
        str*() functions.  This could cause problems on odd systems.
      Extended ac/unistd.h header to define basic declaration for misc
        functions that might be missing from headers.   This includes
        externs for getenv(), getopt(), mktemp(), tempname().
      Protect fax500.h from multiple inclusion.  Moved includes of
        system/generic headers back to source files.
      Made mail500 helper functions static.
      Fixed includes of ctype.h, signal.h, etc. to use generics.
      lutil/tempname.c: was including stdlib.h twice, one should stdio.h.
      Wrapped <sys/resource.h> with HAVE_SYS_RESOURCE_H.
      lber/io.c/ber_get_next(): Changed noctets back to signed.
        Used with BerRead which expects signed int as second arg and
        returns signed int.
      b5494457
  21. 15 Nov, 1998 1 commit
    • Hallvard Furuseth's avatar
      Protoized, moved extern definitions to .h files, fixed related bugs. · 7e6ad510
      Hallvard Furuseth authored
      Most function and variable definitions are now preceded by its extern
      definition, for error checking.  Retyped a number of functions, usually
      to return void.  Fixed a number of printf format errors.
      
      API changes (in ldap/include):
        Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
        for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
      
      A number of `extern' declarations are left (some added by protoize), to
      be cleaned away later.  Mostly strdup(), strcasecmp(), mktemp(), optind,
      optarg, errno.
      7e6ad510
  22. 04 Nov, 1998 1 commit
  23. 26 Oct, 1998 2 commits
  24. 25 Oct, 1998 1 commit
  25. 24 Oct, 1998 1 commit
  26. 22 Oct, 1998 1 commit
  27. 20 Oct, 1998 2 commits