fixed up comments from pr

This commit is contained in:
Chris Busbey
2013-11-21 12:46:23 -06:00
committed by Chris Busbey
parent 5441db3d7d
commit 87834dd63f
4 changed files with 31 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ zmq::gssapi_mechanism_base_t::gssapi_mechanism_base_t (const options_t & options
/// FIXME remove? in_buf (),
target_name (GSS_C_NO_NAME),
principle_name (NULL),
maj_stat (GSS_S_CONTINUE_NEEDED),
maj_stat (GSS_S_COMPLETE),
min_stat (0),
init_sec_min_stat (0),
ret_flags (0),
@@ -46,15 +46,6 @@ zmq::gssapi_mechanism_base_t::gssapi_mechanism_base_t (const options_t & options
cred (GSS_C_NO_CREDENTIAL),
context (GSS_C_NO_CONTEXT)
{
if(!options_.gss_principle.empty())
{
const std::string::size_type principle_size = options_.gss_principle.size();
principle_name = new char[principle_size+1];
memcpy(principle_name, options_.gss_principle.c_str(), principle_size+1 );
if (acquire_credentials (principle_name, &cred) != 0)
maj_stat = GSS_S_FAILURE;
}
}
zmq::gssapi_mechanism_base_t::~gssapi_mechanism_base_t ()