From 7731832751ab9f3c6ddeb66f186d3d7fa1934a6d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 13:11:40 +0200 Subject: Adding upstream version 2.4.57+dfsg. Signed-off-by: Daniel Baumann --- contrib/ldapc++/src/LDAPSaslBindResult.h | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 contrib/ldapc++/src/LDAPSaslBindResult.h (limited to 'contrib/ldapc++/src/LDAPSaslBindResult.h') diff --git a/contrib/ldapc++/src/LDAPSaslBindResult.h b/contrib/ldapc++/src/LDAPSaslBindResult.h new file mode 100644 index 0000000..41b8640 --- /dev/null +++ b/contrib/ldapc++/src/LDAPSaslBindResult.h @@ -0,0 +1,43 @@ +// $OpenLDAP$ +/* + * Copyright 2007-2021 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + +#ifndef LDAP_SASL_BIND_RESULT_H +#define LDAP_SASL_BIND_RESULT_H + +#include + +#include + +class LDAPRequest; + +/** + * Object of this class are created by the LDAPMsg::create method if + * results for an Extended Operation were returned by a LDAP server. + */ +class LDAPSaslBindResult : public LDAPResult { + public : + /** + * Constructor that creates an LDAPExtResult-object from the C-API + * structures + */ + LDAPSaslBindResult(const LDAPRequest* req, LDAPMessage* msg); + + /** + * The Destructor + */ + virtual ~LDAPSaslBindResult(); + + /** + * @returns If the result contained data this method will return + * the data to the caller as a std::string. + */ + const std::string& getServerCreds() const; + + private: + std::string m_creds; +}; + +#endif // LDAP_SASL_BIND_RESULT_H -- cgit v1.2.3