Mercurial > dropbear
diff common-channel.c @ 937:4ad38e223ccd
Send a failure response if a client receives a global request
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 08 Jul 2014 21:59:36 +0800 |
parents | d93a6bcf616f |
children | c88dce72f6d2 |
line wrap: on
line diff
--- a/common-channel.c Wed Jun 25 23:42:39 2014 +0800 +++ b/common-channel.c Tue Jul 08 21:59:36 2014 +0800 @@ -1099,3 +1099,16 @@ remove_channel(channel); } #endif /* USING_LISTENERS */ + +void send_msg_request_success() { + CHECKCLEARTOWRITE(); + buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_SUCCESS); + encrypt_packet(); +} + +void send_msg_request_failure() { + CHECKCLEARTOWRITE(); + buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_FAILURE); + encrypt_packet(); +} +