Commit 43d82524 authored by Martin Hurton's avatar Martin Hurton

Update gssapi mechanism

parent 0be81441
......@@ -153,9 +153,9 @@ int zmq::gssapi_client_t::decode (msg_t *msg_)
return 0;
}
bool zmq::gssapi_client_t::is_handshake_complete () const
zmq::mechanism_t::status_t zmq::gssapi_client_t::status () const
{
return state == connected;
return state == connected? mechanism_t::ready: mechanism_t::handshaking;
}
int zmq::gssapi_client_t::initialize_context ()
......
......@@ -42,7 +42,7 @@ namespace zmq
virtual int process_handshake_command (msg_t *msg_);
virtual int encode (msg_t *msg_);
virtual int decode (msg_t *msg_);
virtual bool is_handshake_complete () const;
virtual status_t status () const;
private:
......
......@@ -315,9 +315,9 @@ int zmq::gssapi_server_t::zap_msg_available ()
return rc;
}
bool zmq::gssapi_server_t::is_handshake_complete () const
zmq::mechanism_t::status_t zmq::gssapi_server_t::status () const
{
return state == connected;
return state == connected? mechanism_t::ready: mechanism_t::handshaking;
}
int zmq::gssapi_server_t::produce_next_token (msg_t *msg_)
......
......@@ -46,7 +46,7 @@ namespace zmq
virtual int encode (msg_t *msg_);
virtual int decode (msg_t *msg_);
virtual int zap_msg_available ();
virtual bool is_handshake_complete () const;
virtual status_t status () const;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment