--- lbbs/src/test_ssh_server.c 2025/11/04 13:49:51 1.12 +++ lbbs/src/test_ssh_server.c 2025/11/05 06:14:01 1.14 @@ -3,7 +3,7 @@ * test_ssh_server * - tester for network server with SSH support * - * Copyright (C) 2004-2025 by Leaflet + * Copyright (C) 2004-2025 Leaflet */ // This test was written based on libssh example/proxy.c @@ -14,14 +14,15 @@ #include #include -#ifndef BUF_SIZE -#define BUF_SIZE 2048 -#endif +enum test_ssh_server_constant_t +{ + BUF_SIZE = 2048, +}; -#define SSH_HOST_RSA_KEYFILE "../conf/ssh_host_rsa_key" +static const char SSH_HOST_RSA_KEYFILE[] = "../conf/ssh_host_rsa_key"; -#define USER "test" -#define PASSWORD "123456" +static const char USER[] = "test"; +static const char PASSWORD[] = "123456"; static ssh_channel SSH_channel; static int authenticated = 0;