~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to contrib/ldapc++/src/SaslInteraction.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2008-07-10 14:45:49 UTC
  • Revision ID: james.westby@ubuntu.com-20080710144549-wck73med0e72gfyo
Tags: upstream-2.4.10
ImportĀ upstreamĀ versionĀ 2.4.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// $OpenLDAP: pkg/ldap/contrib/ldapc++/src/SaslInteraction.h,v 1.1.2.2 2008/04/14 23:09:26 quanah Exp $
 
2
/*
 
3
 * Copyright 2007, OpenLDAP Foundation, All Rights Reserved.
 
4
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 
5
 */
 
6
 
 
7
#ifndef SASL_INTERACTION_H
 
8
#define SASL_INTERACTION_H
 
9
 
 
10
#include <string>
 
11
#include <sasl/sasl.h>
 
12
 
 
13
class SaslInteraction {
 
14
    public:
 
15
        SaslInteraction( sasl_interact_t *interact );
 
16
        ~SaslInteraction();
 
17
        unsigned long getId() const;
 
18
        const std::string getPrompt() const;
 
19
        const std::string getChallenge() const;
 
20
        const std::string getDefaultResult() const;
 
21
 
 
22
        void setResult(const std::string &res);
 
23
 
 
24
    private:
 
25
        sasl_interact_t *m_interact;
 
26
        std::string m_result;
 
27
 
 
28
};
 
29
#endif /* SASL_INTERACTION_H */