comparison 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
comparison
equal deleted inserted replaced
936:d93a6bcf616f 937:4ad38e223ccd
1097 channel->await_open = 0; 1097 channel->await_open = 0;
1098 1098
1099 remove_channel(channel); 1099 remove_channel(channel);
1100 } 1100 }
1101 #endif /* USING_LISTENERS */ 1101 #endif /* USING_LISTENERS */
1102
1103 void send_msg_request_success() {
1104 CHECKCLEARTOWRITE();
1105 buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_SUCCESS);
1106 encrypt_packet();
1107 }
1108
1109 void send_msg_request_failure() {
1110 CHECKCLEARTOWRITE();
1111 buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_FAILURE);
1112 encrypt_packet();
1113 }
1114