Hide internal use only constructor

This commit is contained in:
Ralf Haferkamp 2010-02-18 16:22:49 +00:00
parent d85e24dfa3
commit 35f19eac28
2 changed files with 7 additions and 2 deletions

View File

@ -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 {

View File

@ -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 */