mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 00:08:02 +02:00
Update gssapi mechanism
This commit is contained in:
@@ -153,9 +153,9 @@ int zmq::gssapi_client_t::decode (msg_t *msg_)
|
|||||||
return 0;
|
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 ()
|
int zmq::gssapi_client_t::initialize_context ()
|
||||||
|
@@ -42,7 +42,7 @@ namespace zmq
|
|||||||
virtual int process_handshake_command (msg_t *msg_);
|
virtual int process_handshake_command (msg_t *msg_);
|
||||||
virtual int encode (msg_t *msg_);
|
virtual int encode (msg_t *msg_);
|
||||||
virtual int decode (msg_t *msg_);
|
virtual int decode (msg_t *msg_);
|
||||||
virtual bool is_handshake_complete () const;
|
virtual status_t status () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@@ -315,9 +315,9 @@ int zmq::gssapi_server_t::zap_msg_available ()
|
|||||||
return rc;
|
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_)
|
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 encode (msg_t *msg_);
|
||||||
virtual int decode (msg_t *msg_);
|
virtual int decode (msg_t *msg_);
|
||||||
virtual int zap_msg_available ();
|
virtual int zap_msg_available ();
|
||||||
virtual bool is_handshake_complete () const;
|
virtual status_t status () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user