From 35f19eac28ce92a4f1b991871700358605fda0b7 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 18 Feb 2010 16:22:49 +0000 Subject: [PATCH] Hide internal use only constructor --- contrib/ldapc++/src/TlsOptions.cpp | 2 ++ contrib/ldapc++/src/TlsOptions.h | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/ldapc++/src/TlsOptions.cpp b/contrib/ldapc++/src/TlsOptions.cpp index 05e2a90882..3da227f874 100644 --- a/contrib/ldapc++/src/TlsOptions.cpp +++ b/contrib/ldapc++/src/TlsOptions.cpp @@ -48,6 +48,8 @@ static void checkOpt( TlsOptions::tls_option opt, opttype type ) { } } +TlsOptions::TlsOptions() : m_ld(NULL) {} + TlsOptions::TlsOptions( LDAP* ld ): m_ld(ld) { } void TlsOptions::setOption( tls_option opt, const std::string& value ) const { diff --git a/contrib/ldapc++/src/TlsOptions.h b/contrib/ldapc++/src/TlsOptions.h index c572c412e3..f442f68ef4 100644 --- a/contrib/ldapc++/src/TlsOptions.h +++ b/contrib/ldapc++/src/TlsOptions.h @@ -24,7 +24,7 @@ class TlsOptions { LASTOPT /* dummy */ }; - TlsOptions( LDAP* ld=NULL ); + TlsOptions(); void setOption(tls_option opt, const std::string& value) const; void setOption(tls_option opt, int value) const; void setOption(tls_option opt, void *value) const; @@ -48,8 +48,11 @@ class TlsOptions { }; private: + TlsOptions( LDAP* ld ); void newCtx() const; - LDAP *m_ld; + LDAP *m_ld; + + friend class LDAPAsynConnection; }; #endif /* TLS_OPTIONS_H */ -- 2.39.5