]> git.sur5r.net Git - openldap/commitdiff
- Fixed some memory leak detected by Jeff Costlow <j.costlow@f5.com>
authorRalf Haferkamp <ralf@openldap.org>
Thu, 15 Mar 2001 11:07:58 +0000 (11:07 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Thu, 15 Mar 2001 11:07:58 +0000 (11:07 +0000)
- Fixed some trouble time.h / sys/time.h
- modified include statements

38 files changed:
contrib/ldapc++/Makefile.in
contrib/ldapc++/aclocal.m4
contrib/ldapc++/src/LDAPAddRequest.h
contrib/ldapc++/src/LDAPAsynConnection.cpp
contrib/ldapc++/src/LDAPAsynConnection.h
contrib/ldapc++/src/LDAPAttribute.h
contrib/ldapc++/src/LDAPAttributeList.h
contrib/ldapc++/src/LDAPBindRequest.h
contrib/ldapc++/src/LDAPCompareRequest.h
contrib/ldapc++/src/LDAPConnection.cpp
contrib/ldapc++/src/LDAPConnection.h
contrib/ldapc++/src/LDAPConstraints.cpp
contrib/ldapc++/src/LDAPConstraints.h
contrib/ldapc++/src/LDAPControlSet.h
contrib/ldapc++/src/LDAPDeleteRequest.h
contrib/ldapc++/src/LDAPEntry.h
contrib/ldapc++/src/LDAPEntryList.h
contrib/ldapc++/src/LDAPExtRequest.h
contrib/ldapc++/src/LDAPExtResult.h
contrib/ldapc++/src/LDAPMessage.h
contrib/ldapc++/src/LDAPMessageQueue.h
contrib/ldapc++/src/LDAPModDNRequest.h
contrib/ldapc++/src/LDAPModList.h
contrib/ldapc++/src/LDAPModification.h
contrib/ldapc++/src/LDAPModifyRequest.h
contrib/ldapc++/src/LDAPRebind.h
contrib/ldapc++/src/LDAPReferenceList.h
contrib/ldapc++/src/LDAPReferralException.h
contrib/ldapc++/src/LDAPRequest.h
contrib/ldapc++/src/LDAPResult.h
contrib/ldapc++/src/LDAPSearchReference.h
contrib/ldapc++/src/LDAPSearchRequest.cpp
contrib/ldapc++/src/LDAPSearchRequest.h
contrib/ldapc++/src/LDAPSearchResult.h
contrib/ldapc++/src/LDAPSearchResults.h
contrib/ldapc++/src/LDAPUrl.h
contrib/ldapc++/src/LDAPUrlList.h
contrib/ldapc++/src/StringList.h

index e2c7795a3045213af60f85fa526bb3b1df049dc5..cd0d17c9e18209c5a3552c683155da220fe9de46 100644 (file)
@@ -80,10 +80,9 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ./src/config.h
 CONFIG_CLEAN_FILES = 
-DIST_COMMON =  README AUTHORS INSTALL Makefile.am Makefile.in TODO \
-acconfig.h aclocal.m4 config.guess config.sub configure configure.in \
-install-sh ltconfig ltmain.sh missing mkinstalldirs src/config.h.in \
-src/stamp-h.in
+DIST_COMMON =  README AUTHORS Makefile.am Makefile.in TODO acconfig.h \
+aclocal.m4 config.guess config.sub configure configure.in install-sh \
+ltconfig ltmain.sh missing mkinstalldirs src/config.h.in src/stamp-h.in
 
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
index 228d0f5e8bffe0cb079240cc7c3a112e17318ce5..f2a44c4271c4dc55ed6dadb9d5b97dde0d03bc1f 100644 (file)
@@ -476,31 +476,35 @@ esac
 ])
 
 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
-# the libltdl convenience library, adds --enable-ltdl-convenience to
-# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
-# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
-# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
-# '${top_builddir}/' (note the single quotes!) if your package is not
-# flat, and, if you're not using automake, define top_builddir as
-# appropriate in the Makefiles.
+# the libltdl convenience library and INCLTDL to the include flags for
+# the libltdl header and adds --enable-ltdl-convenience to the
+# configure arguments.  Note that LIBLTDL and INCLTDL are not
+# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
+# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
+# with '${top_builddir}/' and INCLTDL will be prefixed with
+# '${top_srcdir}/' (note the single quotes!).  If your package is not
+# flat and you're not using automake, define top_builddir and
+# top_srcdir appropriately in the Makefiles.
 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   case "$enable_ltdl_convenience" in
   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
   "") enable_ltdl_convenience=yes
       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
   esac
-  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
-  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
+  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
+  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 ])
 
 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
-# the libltdl installable library, and adds --enable-ltdl-install to
-# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
-# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
-# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
-# '${top_builddir}/' (note the single quotes!) if your package is not
-# flat, and, if you're not using automake, define top_builddir as
-# appropriate in the Makefiles.
+# the libltdl installable library and INCLTDL to the include flags for
+# the libltdl header and adds --enable-ltdl-install to the configure
+# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
+# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
+# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
+# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
+# with '${top_srcdir}/' (note the single quotes!).  If your package is
+# not flat and you're not using automake, define top_builddir and
+# top_srcdir appropriately in the Makefiles.
 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   AC_CHECK_LIB(ltdl, main,
@@ -513,8 +517,8 @@ AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   ])
   if test x"$enable_ltdl_install" = x"yes"; then
     ac_configure_args="$ac_configure_args --enable-ltdl-install"
-    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
-    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
+    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
+    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
   else
     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
     LIBLTDL="-lltdl"
index c8db2c192521010523caee87e78c0026d1475b3b..686f1c6f0c866fc8b914fad5f835afa03723e8ee 100644 (file)
@@ -6,8 +6,8 @@
 #ifndef LDAP_ADD_REQUEST_H
 #define  LDAP_ADD_REQUEST_H
 
-#include "LDAPRequest.h"
-#include "LDAPEntry.h"
+#include <LDAPRequest.h>
+#include <LDAPEntry.h>
 
 class LDAPMessageQueue;
 
index 9638717a0f7396b0e3e4ca303d663fcbedfc6406..d422dff332eeb08329386f176eeb1f6e2a18d71a 100644 (file)
@@ -36,6 +36,7 @@ LDAPAsynConnection::LDAPAsynConnection(const string& hostname, int port,
 LDAPAsynConnection::~LDAPAsynConnection(){
     DEBUG(LDAP_DEBUG_DESTROY,
             "LDAPAsynConnection::~LDAPAsynConnection()" << endl);
+    delete m_constr;        
     unbind();
 }
 
index 43c2b4626386060a674d308e624b46c76e003793..899af2d15d78f80c2e6f46e307e576dce340e8b5 100644 (file)
 #include<ldap.h>
 #include<lber.h>
 
-#include "LDAPMessageQueue.h"
-#include "LDAPConstraints.h"
-#include "LDAPModification.h"
-#include "LDAPModList.h"
-#include "LDAPUrl.h"
-#include "LDAPUrlList.h"
+#include <LDAPMessageQueue.h>
+#include <LDAPConstraints.h>
+#include <LDAPModification.h>
+#include <LDAPModList.h>
+#include <LDAPUrl.h>
+#include <LDAPUrlList.h>
 
 class LDAPEntry;
 class LDAPAttribute;
index 82b12324a3f7e58fcbff3178f9a7b37fddea6bac..ed191056bd5c4e1cab60ef7f4badd8e79a7170f5 100644 (file)
@@ -12,7 +12,7 @@
 #include<ldap.h>
 #include<lber.h> 
 
-#include "StringList.h"
+#include <StringList.h>
 
 /**
  * Represents the name an value(s) of an Attribute 
index 816129336479b5208672c6cf521a19416fbe785f..5cbe8f55f4132d68b536a566291548150794f2e2 100644 (file)
@@ -18,12 +18,12 @@ typedef list<LDAPAttribute> AttrList;
  * This container class is used to store multiple LDAPAttribute-objects.
  */
 class LDAPAttributeList{
-    typedef AttrList::const_iterator const_iterator;
-
        private :
                AttrList m_attrs;
 
        public :
+               typedef AttrList::const_iterator const_iterator;
+
 
         /**
          * Copy-constructor
index be8b98cab4ebec8440a2b2de819d38e89f637043..1e0ae4869ffeb61dd58b7a73ec3d24fd1bb1e3b8 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef LDAP_BIND_REQUEST_H
 #define LDAP_BIND_REQUEST_H
 
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 
 class LDAPBindRequest : LDAPRequest {
     private:
index f30cd5384a2b38c57fcc425f991927f905b355e8..f283329821b81e3e42d66ca4634aa2843b77fe26 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef LDAP_COMPARE_REQUEST_H
 #define LDAP_COMPARE_REQUEST_H
 
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 
 class LDAPMessageQueue;
 
index 7baa9333a77162f02809b36adfd23f111824e4d1..de83f32093c5a689de443dba96e7681388fb4ddd 100644 (file)
@@ -50,6 +50,7 @@ void LDAPConnection::bind(const string& dn, const string& passwd,
         }
     }
     delete res;
+    delete msg;   // memcheck
 }
 
 void LDAPConnection::unbind(){
@@ -243,11 +244,12 @@ LDAPSearchResults* LDAPConnection::search(const string& base, int scope,
     LDAPSearchResults* results= 0;
     
     try{
+        results = new LDAPSearchResults();
         msgq = LDAPAsynConnection::search(base,scope, filter, attrs, attrsOnly,
                 cons);
-        results = new LDAPSearchResults();
         res = results->readMessageQueue(msgq);
     }catch(LDAPException e){
+        delete results; // memcheck
         delete msgq;
         throw;
     }
@@ -262,12 +264,14 @@ LDAPSearchResults* LDAPConnection::search(const string& base, int scope,
             case LDAPResult::REFERRAL :
             {
                 LDAPUrlList urls = res->getReferralUrls();
+                delete results; // memcheck
                 delete res;
                 delete msgq;
                 throw LDAPReferralException(urls);
             }
             break;
             default :
+                delete results; // memcheck
                 delete res;
                 delete msgq;
                 throw LDAPException(resCode);
index 036e54cada53052ea0b1712c7c523f2936f2d8f1..7016665fe325328ff7cf021f2686c267df1f12b5 100644 (file)
@@ -6,9 +6,9 @@
 #ifndef LDAP_CONNECTION_H
 #define LDAP_CONNECTION_H
 
-#include "LDAPSearchResults.h"
-#include "LDAPExtResult.h"
-#include "LDAPAsynConnection.h" 
+#include <LDAPSearchResults.h>
+#include <LDAPExtResult.h>
+#include <LDAPAsynConnection.h> 
 
 /** Main class for synchronous LDAP-Communication
  *
@@ -48,7 +48,7 @@ class LDAPConnection : private LDAPAsynConnection {
          *      this connection
          */
         LDAPConnection(const string& hostname="localhost", int port=389,
-                LDAPConstraints* cons=0);
+                LDAPConstraints* cons=new LDAPConstraints());
         
         /**
          * Destructor
index d98a0e38e49724171b17b79a08b2aea13b10f879..194da6400086758b6769779066114d6d9d231e12 100644 (file)
@@ -5,6 +5,8 @@
 
 
 #include "debug.h"
+#include "config.h"
+#include "ac/time.h"
 #include "LDAPConstraints.h"
 #include "LDAPControlSet.h"
 
index c54db4f2370d5671cc0281c6cee57ca9b702412b..0cecbc1410c1d82b9ee19f3eba808165ce00fb49 100644 (file)
@@ -7,12 +7,10 @@
 #ifndef LDAP_CONSTRAINTS_H
 #define LDAP_CONSTRAINTS_H 
 #include <list>
-#include "config.h"
-#include "ac/time.h"
 
-#include "LDAPControl.h"
-#include "LDAPControlSet.h"
-#include "LDAPRebind.h"
+#include <LDAPControl.h>
+#include <LDAPControlSet.h>
+#include <LDAPRebind.h>
 
 //TODO!!
 // * implement the Alias-Handling Option (OPT_DEREF)
index 8ab8a12446f5bf7059ff4ccd58e65d07ab70dddb..8538294e01c56c1899b0e4e287f4a414848f904b 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <list>
 #include <ldap.h>
-#include "LDAPControl.h"
+#include <LDAPControl.h>
 
 typedef list<LDAPCtrl> CtrlList;
 
index 3186c6825b8549870dbdd2f0a6d26adf00ce2d55..2c68dde66f435595293805dd33d40944eb3f624a 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef LDAP_DELETE_REQUEST_H
 #define LDAP_DELETE_REQUEST_H
 
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 class LDAPMessageQueue;
 
 class LDAPDeleteRequest : public LDAPRequest{
index e8341604bb5254e2c1ccdd4ea1f635a8751b7d06..f6a89fcbbc69a5d742a72b457080baf5a6468076 100644 (file)
@@ -8,8 +8,8 @@
 #define LDAP_ENTRY_H
 #include <ldap.h>
 
-#include "LDAPAsynConnection.h"
-#include "LDAPAttributeList.h"
+#include <LDAPAsynConnection.h>
+#include <LDAPAttributeList.h>
 
 /**
  * This class is used to store every kind of LDAP Entry.
index a081b279116f04da615ac555ad6e52e2014d7905..4b459642b7334d4c76de753ee84a22c8176b3354 100644 (file)
@@ -19,9 +19,9 @@ typedef list<LDAPEntry> EntryList;
  * LDAPEntry-Objects
  */
 class LDAPEntryList{
-    typedef EntryList::const_iterator const_iterator;
-
     public:
+       typedef EntryList::const_iterator const_iterator;
+
         /**
          * Copy-Constructor
          */
index dc46b896e13b58765ffa0e69210b3fb84fabade1..311dc11dd330014691711ea1204ff9185529b251 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef LDAP_EXT_REQUEST_H
 #define LDAP_EXT_REQUEST_H
 
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 
 class LDAPExtRequest : LDAPRequest {
 
index 13d0cc9ab29c86677388aeb07771a6aef999a0e6..09634b546845d7eb5ffc3f9dff08ff691804e4a2 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <ldap.h>
 
-#include "LDAPResult.h"
+#include <LDAPResult.h>
 
 class LDAPRequest;
 
index 130a030b94041db87b0839248b845d1c2053b270..1f57fdd90cc067d44e127e73d54f14b8ea01262d 100644 (file)
@@ -8,7 +8,7 @@
 #define LDAP_MSG_H
 #include <ldap.h>
 
-#include "LDAPControlSet.h"
+#include <LDAPControlSet.h>
 
 class LDAPRequest;
 /**
index dcab47e2923aa23dc21a553befc038ddf6bbac2b..6894a7e013bb68f51b380fc95fa5444e4f59654f 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <stack>
 
-#include "LDAPUrlList.h"
+#include <LDAPUrlList.h>
 
 class LDAPAsynConnection;
 class LDAPMsg;
index 2119eebe18f705840c2479334d3d0d982f084597..ff92ea97d6bb4c57c13675c071c5c32fa089515e 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef LDAP_MOD_DN_REQUEST_H
 #define LDAP_MOD_DN_REQUEST_H
 
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 
 class LDAPModDNRequest : LDAPRequest {
 
index 6fc1d74afa4153c66558dcf3ca7738db697174c8..e85631821c3697de0f977c1a26295749f3c0181f 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <ldap.h>
 #include <list>
-#include "LDAPModification.h"
+#include <LDAPModification.h>
 
 typedef list<LDAPModification> ModList;
 
index 5d99b1337b73ff7fe623eec549db06fe04cfc337..553af0ba5ab298b32ffeceabc638ee152ac51b17 100644 (file)
@@ -8,7 +8,7 @@
 #define LDAP_MODIFICATION_H
 
 #include <ldap.h>
-#include "LDAPAttribute.h"
+#include <LDAPAttribute.h>
 
 class LDAPModification{
        public:
index c24227b49e266bcbfd44d1fa02a4e94e8e4beff6..58df605eca18d7aee955a6b8c02ea9b4338a98cb 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef LDAP_MODIFY_REQUEST_H
 #define LDAP_MODIFY_REQUEST_H
 
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 
 class LDAPMessageQueue;
 
index 7fa553a3ea425d4d16717da0bd74d6a2be6ce535..578971e60c1d3f7343f0e1409a9700aa623b8366 100644 (file)
@@ -7,7 +7,7 @@
 #define LDAP_REBIND_H
 
 #include <string>
-#include "LDAPRebindAuth.h"
+#include <LDAPRebindAuth.h>
 
 /**
  * Just an abstract class to provide a mechnism for rebind to another
index 7cbe278ef4189b8bf55feadbdc00739a1a233a5c..4d26fdc54f84cbaffed12ef9c6211ce535a883f3 100644 (file)
@@ -18,9 +18,9 @@ typedef list<LDAPSearchReference> RefList;
  * Used internally only by LDAPSearchResults
  */
 class LDAPReferenceList{
-    typedef RefList::const_iterator const_iterator;
-
     public:
+       typedef RefList::const_iterator const_iterator;
+
         /**
          * Constructs an empty list.
          */   
index 8f7a37b53101add3f9465135a617ebff3395de13..f604f67adc7adc3efab64265fb1a356c3af6462d 100644 (file)
@@ -8,8 +8,8 @@
 #define LDAP_REFERRAL_EXCEPTION_H
 
 #include <list>
-#include "LDAPMessage.h"
-#include "LDAPUrlList.h"
+#include <LDAPMessage.h>
+#include <LDAPUrlList.h>
 
 class LDAPUrlList;
 
index 172e98c2a5f81976216350ac9fe313dd72a3abce..7f3a3a2755a3b4bd1843c0ed63640330b6077a22 100644 (file)
@@ -7,9 +7,9 @@
 #ifndef LDAP_REQUEST_H
 #define LDAP_REQUEST_H
 
-#include "LDAPConstraints.h"
-#include "LDAPAsynConnection.h"
-#include "LDAPMessageQueue.h"
+#include <LDAPConstraints.h>
+#include <LDAPAsynConnection.h>
+#include <LDAPMessageQueue.h>
 
 class LDAPUrl;
 
index 14ff5584509169a4d6acd51ff196a8e21044ce08..d53fd8496e695a54fe6cbba68db86aab7c133c20 100644 (file)
@@ -9,9 +9,9 @@
 
 #include<iostream>
 #include<ldap.h>
-#include "LDAPMessage.h"
-#include "LDAPControlSet.h"
-#include "LDAPUrlList.h"
+#include <LDAPMessage.h>
+#include <LDAPControlSet.h>
+#include <LDAPUrlList.h>
 
 class LDAPRequest;
 class LDAPAsynConnection;
index 5cd94fcda91c75eb55d094ebc895d2a64c1a9a61..2bdf927bb48ef4a2bf6bf4ca4342aae8cc705d20 100644 (file)
@@ -7,8 +7,8 @@
 #ifndef LDAP_SEARCH_REFERENCE_H
 #define LDAP_SEARCH_REFERENCE_H 
 
-#include "LDAPMessage.h"
-#include "LDAPUrlList.h"
+#include <LDAPMessage.h>
+#include <LDAPUrlList.h>
 
 class LDAPRequest;
 class LDAPUrl;
index 7b5b25e5399b7c6f2101a90003cee60518bab3dd..2eb3d07dcc53909188ef2912728b971f09b313f3 100644 (file)
@@ -3,6 +3,8 @@
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
+#include "config.h"
+#include "ac/time.h"
 #include "debug.h"
 #include "LDAPSearchRequest.h"
 #include "LDAPException.h"
index 63eb327f3be2fa1dc57f22acdeda4181c4283a59..50594e8e2bb331eb75501e0c812a8cf45dc94182 100644 (file)
@@ -7,7 +7,7 @@
 #define LDAP_SEARCH_REQUEST_H
 
 #include <queue>
-#include "LDAPRequest.h"
+#include <LDAPRequest.h>
 
 class LDAPSearchReference;
 class LDAPReferral;
index 07c2c7f246bb26110ee4674369a696093b8cfda0..56a5d59b0622ec52f343dff310b3353b830a3cda 100644 (file)
@@ -7,8 +7,8 @@
 #ifndef LDAP_SEARCH_RESULT_H
 #define LDAP_SEARCH_RESULT_H
 
-#include "LDAPMessage.h"
-#include "LDAPEntry.h"
+#include <LDAPMessage.h>
+#include <LDAPEntry.h>
 
 class LDAPRequest;
 
index c1d857fa21fd65b46033125a8df8832335b631c7..7adc67f44981c82e57ffd78e740b76bf50a2b584 100644 (file)
@@ -6,12 +6,12 @@
 #ifndef LDAP_SEARCH_RESULTS_H
 #define LDAP_SEARCH_RESULTS_H
 
-#include "LDAPEntry.h"
-#include "LDAPEntryList.h"
-#include "LDAPMessage.h"
-#include "LDAPMessageQueue.h"
-#include "LDAPReferenceList.h"
-#include "LDAPSearchReference.h"
+#include <LDAPEntry.h>
+#include <LDAPEntryList.h>
+#include <LDAPMessage.h>
+#include <LDAPMessageQueue.h>
+#include <LDAPReferenceList.h>
+#include <LDAPSearchReference.h>
 
 class LDAPResult;
 
index f72c7ab0bd28c6771ee9599ce85f96c60b4be3e2..53ea2246f81bbb113474a09fb1eda4628e4b1581 100644 (file)
@@ -8,7 +8,7 @@
 #define LDAP_URL_H
 
 #include <ldap.h>
-#include "StringList.h"
+#include <StringList.h>
 
 /**
  * This class is used to analyze and store LDAP-Urls as returned by a
index 59d5d40522429570001929b96cd64e4ac8dbd1bf..848c4f6c770c5cdf38d4a701fffeef1d239b5dd5 100644 (file)
@@ -7,7 +7,7 @@
 #define LDAP_URL_LIST_H
 
 #include <list>
-#include "LDAPUrl.h"
+#include <LDAPUrl.h>
 
 typedef list<LDAPUrl> UrlList;
 
@@ -15,9 +15,9 @@ typedef list<LDAPUrl> UrlList;
  * This container class is used to store multiple LDAPUrl-objects.
  */
 class LDAPUrlList{
-    typedef UrlList::const_iterator const_iterator;
-
     public:
+       typedef UrlList::const_iterator const_iterator;
+
         /**
          * Constructs an empty list.
          */   
index 63134040ea2d69836ae8ba718de581eda282acf9..dc3d678213abc1010aea75a49f7476cf168708fa 100644 (file)
@@ -14,12 +14,12 @@ typedef list<string> ListType;
  * Container class to store multiple string-objects
  */
 class StringList{
-    typedef ListType::const_iterator const_iterator;
-   
     private:
         ListType m_data;
 
     public:
+       typedef ListType::const_iterator const_iterator;
+   
         /**
          * Constructs an empty list.
          */