@@ -104,13 +104,13 @@ static int NonBlockSSH_connect(void)
104104/* for command reget and reput to handle saving offset after interrupt during
105105 * get and put */
106106#include <signal.h>
107- static byte interupt = 0 ;
107+ static byte interrupt = 0 ;
108108
109109static void sig_handler (const int sig )
110110{
111111 (void )sig ;
112112
113- interupt = 1 ;
113+ interrupt = 1 ;
114114 wolfSSH_SFTP_Interrupt (ssh );
115115}
116116#endif /* WS_NO_SIGNAL */
@@ -189,8 +189,6 @@ static void clean_path(char* path)
189189 }
190190}
191191
192- const char sftpTestString [] = "Hello, wolfSSH!" ;
193-
194192#define WS_MAX_EXAMPLE_RW 1024
195193
196194static int SetEcho (int on )
@@ -294,22 +292,22 @@ static void ShowUsage(void)
294292}
295293
296294
297- byte userPassword [256 ];
298- byte userPublicKeyType [32 ];
299- byte userPublicKey [512 ];
300- word32 userPublicKeySz ;
301- const byte * userPrivateKey ;
302- word32 userPrivateKeySz ;
295+ static byte userPassword [256 ];
296+ static byte userPublicKeyType [32 ];
297+ static byte userPublicKey [512 ];
298+ static word32 userPublicKeySz ;
299+ static const byte * userPrivateKey ;
300+ static word32 userPrivateKeySz ;
303301
304- const char hanselPublicRsa [] =
302+ static const char hanselPublicRsa [] =
305303 "AAAAB3NzaC1yc2EAAAADAQABAAABAQC9P3ZFowOsONXHD5MwWiCciXytBRZGho"
306304 "MNiisWSgUs5HdHcACuHYPi2W6Z1PBFmBWT9odOrGRjoZXJfDDoPi+j8SSfDGsc/hsCmc3G"
307305 "p2yEhUZUEkDhtOXyqjns1ickC9Gh4u80aSVtwHRnJZh9xPhSq5tLOhId4eP61s+a5pwjTj"
308306 "nEhBaIPUJO2C/M0pFnnbZxKgJlX7t1Doy7h5eXxviymOIvaCZKU+x5OopfzM/wFkey0EPW"
309307 "NmzI5y/+pzU5afsdeEWdiQDIQc80H6Pz8fsoFPvYSG+s4/wz0duu7yeeV1Ypoho65Zr+pE"
310308 "nIf7dO0B8EblgWt+ud+JI8wrAhfE4x" ;
311309
312- const byte hanselPrivateRsa [] = {
310+ static const byte hanselPrivateRsa [] = {
313311 0x30 , 0x82 , 0x04 , 0xa3 , 0x02 , 0x01 , 0x00 , 0x02 , 0x82 , 0x01 , 0x01 , 0x00 ,
314312 0xbd , 0x3f , 0x76 , 0x45 , 0xa3 , 0x03 , 0xac , 0x38 , 0xd5 , 0xc7 , 0x0f , 0x93 ,
315313 0x30 , 0x5a , 0x20 , 0x9c , 0x89 , 0x7c , 0xad , 0x05 , 0x16 , 0x46 , 0x86 , 0x83 ,
@@ -412,14 +410,14 @@ const byte hanselPrivateRsa[] = {
412410 0xec , 0x18 , 0xdb
413411};
414412
415- unsigned int hanselPrivateRsaSz = 1191 ;
413+ static const unsigned int hanselPrivateRsaSz = 1191 ;
416414
417415
418- const char hanselPublicEcc [] =
416+ static const char hanselPublicEcc [] =
419417 "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNkI5JTP6D0lF42tbx"
420418 "X19cE87hztUS6FSDoGvPfiU0CgeNSbI+aFdKIzTP5CQEJSvm25qUzgDtH7oyaQROUnNvk=" ;
421419
422- const byte hanselPrivateEcc [] = {
420+ static const byte hanselPrivateEcc [] = {
423421 0x30 , 0x77 , 0x02 , 0x01 , 0x01 , 0x04 , 0x20 , 0x03 , 0x6e , 0x17 , 0xd3 , 0xb9 ,
424422 0xb8 , 0xab , 0xc8 , 0xf9 , 0x1f , 0xf1 , 0x2d , 0x44 , 0x4c , 0x3b , 0x12 , 0xb1 ,
425423 0xa4 , 0x77 , 0xd8 , 0xed , 0x0e , 0x6a , 0xbe , 0x60 , 0xc2 , 0xf6 , 0x8b , 0xe7 ,
@@ -433,7 +431,7 @@ const byte hanselPrivateEcc[] = {
433431 0xf9
434432};
435433
436- unsigned int hanselPrivateEccSz = 121 ;
434+ static const unsigned int hanselPrivateEccSz = 121 ;
437435
438436
439437static int wsUserAuth (byte authType ,
0 commit comments