Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rendre un code comme celui-ci
- if (msg->channel_request.type == SSH_CHANNEL_REQUEST_PTY &&
- ssh_callbacks_exists(channel->callbacks, channel_pty_request_function)) {
- rc = channel->callbacks->channel_pty_request_function(session, channel,
- msg->channel_request.TERM,
- msg->channel_request.width, msg->channel_request.height,
- msg->channel_request.pxwidth, msg->channel_request.pxheight,
- channel->callbacks->userdata);
- if (rc == 0) {
- ssh_message_channel_request_reply_success(msg);
- } else {
- ssh_message_reply_default(msg);
- }
- 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