Skip to content

Commit

Permalink
ESP_ENABLE_WOLFSSH
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Jan 4, 2024
1 parent fadd5e9 commit c9fb96c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
*/

/* Optionally enable some wolfSSH settings */
#define ESP_ENABLE_WOLFSSH
#ifdef ESP_ENABLE_WOLFSSH
#ifdef ESP_ENABLE_WOLFSSH
/* The default SSH Windows size is massive for an embedded target. Limit it: */
#define DEFAULT_WINDOW_SZ 2000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ cmake_minimum_required(VERSION 3.16)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_USER_SETTINGS")
set(WOLFSSL_USER_SETTINGS ON)


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSH_TERM")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG_WOLFSSH")
# Assume we have a ESP_ENABLE_WOLFSSH section in user_settings.h
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DESP_ENABLE_WOLFSSH")

# The wolfSSL CMake file should be able to find the source code.
# Otherwise, assign an environment variable or set it here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
*/

/* Optionally enable some wolfSSH settings */
#define ESP_ENABLE_WOLFSSH
#ifdef ESP_ENABLE_WOLFSSH
#ifdef ESP_ENABLE_WOLFSSH
/* The default SSH Windows size is massive for an embedded target. Limit it: */
#define DEFAULT_WINDOW_SZ 2000

Expand Down Expand Up @@ -146,13 +145,13 @@

/* DH disabled by default, needed if ECDSA/ECC also turned off */
#define HAVE_DH
#else
#define WOLFSSH_NO_RSA
#else
#define WOLFSSH_NO_RSA
#endif
#else
#error "Either RSA or ECC must be enabled"
#endif



/* when you want to use pkcs7 */
/* #define HAVE_PKCS7 */
Expand Down

0 comments on commit c9fb96c

Please sign in to comment.