Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.84 KB | None | 0 0
  1. Rendre un code comme celui-ci
  2.             if (msg->channel_request.type == SSH_CHANNEL_REQUEST_PTY &&
  3.                 ssh_callbacks_exists(channel->callbacks, channel_pty_request_function)) {
  4.                 rc = channel->callbacks->channel_pty_request_function(session, channel,
  5.                         msg->channel_request.TERM,
  6.                         msg->channel_request.width, msg->channel_request.height,
  7.                         msg->channel_request.pxwidth, msg->channel_request.pxheight,
  8.                         channel->callbacks->userdata);
  9.                 if (rc == 0) {
  10.                     ssh_message_channel_request_reply_success(msg);
  11.                 } else {
  12.                     ssh_message_reply_default(msg);
  13.                 }
  14. fonctionnel avec channel->callbacks qui devient une liste de structures au lieu d'une simple structure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement