2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
17 GSSBuffer(std::string str = "", bool gssInternal = false);
18 GSSBuffer(char *str, bool gssInternal = false);
19 GSSBuffer(char *str, int len, bool gssInternal = false);
20 GSSBuffer(gss_buffer_t gssbuf, bool gssInternal = false);
21 GSSBuffer(const GSSBuffer &other);
24 std::string toString() { return(std::string((char *)buf->value, buf->length)); }
25 gss_buffer_t toGss() { return( buf ); }
26 int length() { return(buf->length); }
28 void setValue(std::string str);
29 void setValue(char *str);
30 void setValue(char *str, int len);
31 void setValue(gss_buffer_t gssbuf);
33 bool operator==(GSSBuffer B) { return(this->toString() == B.toString()); }