mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
fixed up comments from pr
This commit is contained in:
committed by
Chris Busbey
parent
5441db3d7d
commit
87834dd63f
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user