mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-20 22:31:34 +01:00
encrypt option on gss ready
This commit is contained in:
parent
27591d2da6
commit
634c8abe29
@ -279,14 +279,19 @@ int zmq::gssapi_mechanism_base_t::produce_ready (msg_t *msg_)
|
||||
memcpy (msg_->data (), command_buffer, command_size);
|
||||
free (command_buffer);
|
||||
|
||||
return encode_message(msg_);
|
||||
if (do_encryption)
|
||||
return encode_message (msg_);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int zmq::gssapi_mechanism_base_t::process_ready (msg_t *msg_)
|
||||
{
|
||||
const int rc = decode_message(msg_);
|
||||
if (rc!=0)
|
||||
return rc;
|
||||
if (do_encryption) {
|
||||
const int rc = decode_message (msg_);
|
||||
if (rc != 0)
|
||||
return rc;
|
||||
}
|
||||
|
||||
const unsigned char *ptr = static_cast <unsigned char *> (msg_->data ());
|
||||
size_t bytes_left = msg_->size ();
|
||||
|
@ -53,9 +53,9 @@ zmq::options_t::options_t () :
|
||||
tcp_keepalive_intvl (-1),
|
||||
mechanism (ZMQ_NULL),
|
||||
as_server (0),
|
||||
gss_plaintext (false),
|
||||
socket_id (0),
|
||||
conflate (false),
|
||||
gss_plaintext (false)
|
||||
conflate (false)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user