diff options
Diffstat (limited to 'contrib/ldapc++/src/SaslInteractionHandler.h')
-rw-r--r-- | contrib/ldapc++/src/SaslInteractionHandler.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/ldapc++/src/SaslInteractionHandler.h b/contrib/ldapc++/src/SaslInteractionHandler.h new file mode 100644 index 0000000..ab738c7 --- /dev/null +++ b/contrib/ldapc++/src/SaslInteractionHandler.h @@ -0,0 +1,27 @@ +// $OpenLDAP$ +/* + * Copyright 2007-2021 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + +#ifndef SASL_INTERACTION_HANDLER_H +#define SASL_INTERACTION_HANDLER_H +#include <list> + +class SaslInteraction; + +class SaslInteractionHandler { + public: + virtual void handleInteractions( const std::list<SaslInteraction*> &cb )=0; + virtual ~SaslInteractionHandler() {} +}; + +class DefaultSaslInteractionHandler { + public: + virtual void handleInteractions( const std::list<SaslInteraction*> &cb ); + virtual ~DefaultSaslInteractionHandler(); + + private: + std::list<SaslInteraction*> cleanupList; +}; +#endif /* SASL_INTERACTION_HANDLER_H */ |