added client callbacks to ssh server

This commit is contained in:
2026-03-16 14:01:34 -07:00
parent 76d2e27879
commit b6c9afaf20
8 changed files with 64 additions and 19 deletions

View File

@@ -8,6 +8,7 @@
*/
/* This is a sample implementation of a libssh based SSH server */
#include "ssh_server_client.h"
#include "client_source/client.h"
int test(void*);
int testrun(void*, void*);
@@ -18,9 +19,9 @@ int main() {
.id = 123,
.port = 2222,
.cbs = (ServerLoopCallbacks){
.ssh_init = test,
.ssh_stop = test,
.ssh_run = testrun,
.ssh_init = client_init,
.ssh_stop = client_stop,
.ssh_run = client_update,
}
};
ssh_start(&conf);