~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek, Updated debconf translations
  • Date: 2009-07-28 10:17:15 UTC
  • mfrom: (1.1.4 upstream) (0.2.2 sid)
  • mto: (0.2.4 sid)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20090728101715-epwmqmsk0d3h22k3
* New upstream version.
  - Fixes FTBFS on ia64 with -fPIE. Closes: #524770.
  - Fixes some TLS issues with GnuTLS.  Closes: #505191.
* Update priority of libldap-2.4-2 to match the archive override.
* Add the missing ldapexop and ldapurl tools to ldap-utils, as well as the
  ldapurl(1) manpage.  Thanks to Peter Marschall for the patch.
  Closes: #496749.
* Bump build-dependency on debhelper to 6 instead of 5, since that's
  what we're using.  Closes: #498116.
* Set the default SLAPD_SERVICES to ldap:/// ldapi:///, instead of using
  the built-in default of ldap:/// only.
* Build-depend on libltdl-dev | libltdl3-dev (>= 1.4.3), for the package
  name change.  Closes: #522965.

[ Updated debconf translations ]
* Spanish, thanks to Francisco Javier Cuadrado <fcocuadrado@gmail.com>.
  Closes: #521804.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPControl.h,v 1.5.10.1 2008/04/14 23:09:26 quanah Exp $
 
1
// $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPControl.h,v 1.5.10.2 2008/09/03 18:03:43 quanah Exp $
2
2
/*
3
3
 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
4
4
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
17
17
class LDAPCtrl{
18
18
    public :
19
19
        /**
20
 
         * Copy-constructor
21
 
         */
22
 
        LDAPCtrl(const LDAPCtrl& c);
23
 
 
24
 
        /**
25
20
         * Constructor.
26
21
         * @param oid:  The Object Identifier of the Control
27
22
         * @param critical: "true" if the Control should be handled
29
24
         * @param data: If there is data for the control, put it here.
30
25
         * @param length: The length of the data field
31
26
         */
32
 
        LDAPCtrl(const char *oid, bool critical, const char *data=0, 
 
27
        LDAPCtrl(const char *oid, bool critical=false, const char *data=0, 
33
28
                int length=0);
34
29
 
35
30
        /**
39
34
         *                  critical by the server.
40
35
         * @param data: If there is data for the control, put it here.
41
36
         */
42
 
        LDAPCtrl(const std::string& oid, bool critical=false,
43
 
                const std::string& data=std::string());
 
37
        LDAPCtrl(const std::string& oid, bool critical,
 
38
                 const std::string& data);
44
39
 
45
40
        /**
46
41
         * Creates a copy of the Control that "ctrl is pointing to
58
53
        std::string getOID() const;
59
54
 
60
55
        /**
61
 
         * @return The Data of the control as a std::string-Objekt
 
56
         * @return true if there is no "Control Value" (there is a
 
57
         * difference between no and an empty control value)
 
58
         */
 
59
        bool hasData() const;
 
60
 
 
61
        /**
 
62
         * @return The Data of the control as a std::string-Object
62
63
         */
63
64
        std::string getData() const;
64
65
 
80
81
        std::string m_oid;
81
82
        std::string m_data;
82
83
        bool m_isCritical;
 
84
        bool m_noData;
83
85
};
84
86
 
85
87
#endif //LDAP_CONTROL_H