Update gssapi mechanism

This commit is contained in:
Martin Hurton 2014-05-06 17:49:26 +02:00
parent 0be8144176
commit 43d8252446
4 changed files with 6 additions and 6 deletions

View File

@ -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 ()

View File

@ -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:

View File

@ -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_)

View File

@ -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: