| 1 |
// This test was written base on libssh example/proxy.c |
/*************************************************************************** |
| 2 |
|
test_ssh_server.c - description |
| 3 |
|
------------------- |
| 4 |
|
Copyright : (C) 2004-2025 by Leaflet |
| 5 |
|
Email : leaflet@leafok.com |
| 6 |
|
***************************************************************************/ |
| 7 |
|
|
| 8 |
|
/*************************************************************************** |
| 9 |
|
* * |
| 10 |
|
* This program is free software; you can redistribute it and/or modify * |
| 11 |
|
* it under the terms of the GNU General Public License as published by * |
| 12 |
|
* the Free Software Foundation; either version 3 of the License, or * |
| 13 |
|
* (at your option) any later version. * |
| 14 |
|
* * |
| 15 |
|
***************************************************************************/ |
| 16 |
|
|
| 17 |
|
// This test was written based on libssh example/proxy.c |
| 18 |
|
|
| 19 |
#include "log.h" |
#include "log.h" |
| 20 |
#include <stdio.h> |
#include <stdio.h> |
| 21 |
|
#include <libssh/callbacks.h> |
| 22 |
#include <libssh/libssh.h> |
#include <libssh/libssh.h> |
| 23 |
#include <libssh/server.h> |
#include <libssh/server.h> |
|
#include <libssh/callbacks.h> |
|
| 24 |
|
|
| 25 |
#ifndef BUF_SIZE |
#ifndef BUF_SIZE |
| 26 |
#define BUF_SIZE 2048 |
#define BUF_SIZE 2048 |