mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Start of an SSH-server-specific config structure.
This is much simpler than Conf, because I don't expect to have to copy it around, load or save it to disk (or the Windows registry), or serialise it between processes. So it can be a straightforward struct. As yet there's nothing actually _in_ it. I've just created the structure and arranged to pass it through to all the SSH layers. But now it's here, it will be a place I can add configuration items as I find I need them.
This commit is contained in:
@ -14,11 +14,13 @@
|
||||
#include "sshserver.h"
|
||||
|
||||
void ssh2connection_server_configure(
|
||||
PacketProtocolLayer *ppl, const SftpServerVtable *sftpserver_vt)
|
||||
PacketProtocolLayer *ppl, const SftpServerVtable *sftpserver_vt,
|
||||
const SshServerConfig *ssc)
|
||||
{
|
||||
struct ssh2_connection_state *s =
|
||||
container_of(ppl, struct ssh2_connection_state, ppl);
|
||||
s->sftpserver_vt = sftpserver_vt;
|
||||
s->ssc = ssc;
|
||||
}
|
||||
|
||||
static ChanopenResult chan_open_session(
|
||||
|
Reference in New Issue
Block a user