mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
29 lines
696 B
C++
29 lines
696 B
C++
// $OpenLDAP$
|
|
/*
|
|
* Copyright 2007, OpenLDAP Foundation, All Rights Reserved.
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
*/
|
|
|
|
#ifndef SASL_INTERACTION_H
|
|
#define SASL_INTERACTION_H
|
|
|
|
#include <string>
|
|
#include <sasl/sasl.h>
|
|
|
|
class SaslInteraction {
|
|
public:
|
|
SaslInteraction( sasl_interact_t *interact );
|
|
~SaslInteraction();
|
|
unsigned long getId() const;
|
|
const std::string getPrompt() const;
|
|
const std::string getChallenge() const;
|
|
const std::string getDefaultResult() const;
|
|
|
|
void setResult(const std::string &res);
|
|
|
|
private:
|
|
sasl_interact_t *m_interact;
|
|
std::string m_result;
|
|
|
|
};
|
|
#endif /* SASL_INTERACTION_H */
|