-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #677 from julek-wolfssl/zephyr-nofs
Add NO_FILESYSTEM to Zephyr port
- Loading branch information
Showing
9 changed files
with
299 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Kernel options | ||
CONFIG_MAIN_STACK_SIZE=32768 | ||
CONFIG_ENTROPY_GENERATOR=y | ||
CONFIG_INIT_STACKS=y | ||
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=131072 | ||
|
||
# Enable wolfSSH | ||
CONFIG_WOLFSSH=y | ||
CONFIG_WOLFSSH_SETTINGS_FILE="samples/tests/wolfssh_user_settings_nofs.h" | ||
|
||
# Pthreads | ||
CONFIG_PTHREAD_IPC=y | ||
|
||
# Clock for time() | ||
CONFIG_POSIX_CLOCK=y | ||
|
||
# Networking | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_TEST=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_IPV6=n | ||
CONFIG_NET_TCP=y | ||
CONFIG_NET_SOCKETS=y | ||
CONFIG_NET_SOCKETS_POSIX_NAMES=y | ||
|
||
CONFIG_NET_TEST=y | ||
CONFIG_NET_LOOPBACK=y | ||
|
||
# Network driver config | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
|
||
# Network address config | ||
CONFIG_NET_CONFIG_SETTINGS=y | ||
CONFIG_NET_CONFIG_NEED_IPV4=y | ||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" | ||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2" | ||
CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2" | ||
|
||
CONFIG_NET_PKT_TX_COUNT=10 | ||
|
||
# Logging | ||
CONFIG_PRINTK=y | ||
CONFIG_LOG=y | ||
CONFIG_LOG_MODE_IMMEDIATE=y | ||
#CONFIG_WOLFSSH_DEBUG=y | ||
#CONFIG_WOLFSSL_DEBUG=y | ||
#CONFIG_DEBUG=y | ||
|
||
# Enable logging using RTT and UART | ||
#CONFIG_CBPRINTF_LIBC_SUBSTS=y | ||
#CONFIG_CBPRINTF_FP_SUPPORT=y | ||
#CONFIG_CONSOLE=y | ||
#CONFIG_LOG_BACKEND_UART=y | ||
#CONFIG_LOG_BUFFER_SIZE=15360 | ||
|
||
# TLS configuration | ||
CONFIG_WOLFSSL=y | ||
CONFIG_WOLFSSL_BUILTIN=y | ||
CONFIG_WOLFSSL_SETTINGS_FILE="samples/tests/wolfssl_user_settings_nofs.h" | ||
|
||
CONFIG_WOLFSSL_TLS_VERSION_1_2=y | ||
CONFIG_WOLFSSL_KEY_EXCHANGE_ALL_ENABLED=y | ||
CONFIG_WOLFSSL_CIPHER_ALL_ENABLED=y | ||
CONFIG_WOLFSSL_MAC_ALL_ENABLED=y | ||
CONFIG_WOLFSSL_HMAC_DRBG_ENABLED=y | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* user_settings.h | ||
* | ||
* Copyright (C) 2014-2024 wolfSSL Inc. | ||
* | ||
* This file is part of wolfSSH. | ||
* | ||
* wolfSSH is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* wolfSSH is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with wolfSSH. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef WOLFSSH_USER_SETTINGS_H | ||
#define WOLFSSH_USER_SETTINGS_H | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include <wolfssl/wolfcrypt/types.h> | ||
|
||
#undef WOLFSSH_SCP | ||
#define WOLFSSH_SCP | ||
|
||
#undef NO_APITEST_MAIN_DRIVER | ||
#define NO_APITEST_MAIN_DRIVER | ||
|
||
#undef NO_TESTSUITE_MAIN_DRIVER | ||
#define NO_TESTSUITE_MAIN_DRIVER | ||
|
||
#undef NO_UNITTEST_MAIN_DRIVER | ||
#define NO_UNITTEST_MAIN_DRIVER | ||
|
||
#undef NO_MAIN_DRIVER | ||
#define NO_MAIN_DRIVER | ||
|
||
#undef WS_NO_SIGNAL | ||
#define WS_NO_SIGNAL | ||
|
||
#undef WS_USE_TEST_BUFFERS | ||
#define WS_USE_TEST_BUFFERS | ||
|
||
#undef NO_WOLFSSL_DIR | ||
#define NO_WOLFSSL_DIR | ||
|
||
#undef WOLFSSH_NO_NONBLOCKING | ||
#define WOLFSSH_NO_NONBLOCKING | ||
|
||
#define DEFAULT_WINDOW_SZ (128 * 128) | ||
#define WOLFSSH_MAX_SFTP_RW 8192 | ||
|
||
#undef NO_FILESYSTEM | ||
#define NO_FILESYSTEM | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.