Commit 9bec5984 authored by Niels Möller's avatar Niels Möller
Browse files

New function format_session_open().

Rev: src/session.c:1.8
Rev: src/session.h:1.9
parent 8ba5fec3
......@@ -40,3 +40,11 @@ struct ssh_service *make_session_service(struct alist *global_requests,
return &self->super;
}
#endif
struct lsh_string *format_session_open(UINT32 channel,
UINT32 window_size, UINT32 max_packet)
{
return ssh_format("%c%a%i%i%i",
SSH_MSG_CHANNEL_OPEN, ATOM_SESSION,
channel, window_size, max_packet);
}
......@@ -27,14 +27,22 @@
#ifndef LSH_SESSION_H_INCLUDED
#define LSH_SESSION_H_INCLUDED
#warning session.h should not be used (yet?).
#include "alist.h"
#include "connection.h"
#include "channel.h"
#include "parse.h"
#if 0
struct ssh_service *make_session_service(struct alist *global_requests,
struct alist *channel_requests);
#endif
struct ssh_session
{
struct channel super;
};
struct lsh_string *format_session_open(UINT32 channel,
UINT32 window_size, UINT32 max_packet);
#endif /* LSH_SESSION_H_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment