blob: 62701fe7c4fa77b630659d18b93a6d14e23e8bbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// $OpenLDAP$
/*
* Copyright 2007-2018 The 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 */
|