2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
16 typedef OM_uint32 (*gss_imp_name_type)(
17 OM_uint32 *, /* minor_status */
18 gss_buffer_t, /* input_name_buffer */
19 gss_OID, /* input_name_type(used to be const) */
20 gss_name_t *); /* output_name */
25 GSSName() { name = GSS_C_NO_NAME; skipRelease = false; };
26 GSSName(const GSSName& n);
27 GSSName(gss_name_t gss_name, bool skipRelease = false);
31 GSSName& operator=(const GSSName& rhs);
33 gss_name_t toGss() const { return(name); }
34 std::string toString() const;
36 bool setValue(gss_name_t newName, bool skipRelease = false);
37 void setKey(std::string key) { this->hashKey = key; }
38 std::string getKey() const { return this->hashKey; }
40 OM_uint32 getMajorStatus() const { return this->major_status; }
41 OM_uint32 getMinorStatus() const { return this->minor_status; }
44 OM_uint32 major_status, minor_status;
46 gss_imp_name_type function;
50 void init(const GSSBuffer namestr, GSSOID name_type, bool skipRelease, gss_imp_name_type fn);