Skip to content

Conversation

@miyazakh
Copy link
Contributor

@miyazakh miyazakh commented Nov 1, 2025

Add simple sftp client example working on Renesas RX72N

@miyazakh miyazakh self-assigned this Nov 1, 2025
@miyazakh miyazakh marked this pull request as ready for review November 4, 2025 22:21
@miyazakh miyazakh assigned wolfSSL-Bot and unassigned miyazakh Nov 4, 2025
@dgarske dgarske requested review from dgarske and ejohnstown and removed request for dgarske November 12, 2025 22:27
ejohnstown
ejohnstown previously approved these changes Dec 5, 2025
JacobBarthelmeh
JacobBarthelmeh previously approved these changes Dec 5, 2025
@JacobBarthelmeh JacobBarthelmeh removed their assignment Dec 5, 2025
@ejohnstown ejohnstown removed their assignment Dec 5, 2025
src/wolfsftp.c Outdated
};

#if defined(__CCRX__)
static struct fd_entry fd_pool[WOLFSSH_FATFS_MAX_FILES] = {0};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C guarantee's the memory is zero'd so just remove the = {} please and special CCRX logic

Copy link
Contributor Author

@miyazakh miyazakh Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed = {} and CCRX logic


case ID_EXTINFO_S:
#if defined(__CCRX__)
ret = WSNPRINTF0(str, strSz, "Server extensions KEX");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share what the warning was? Sometimes you can solve this just by changing the macro to: #define WSNPRINTF snprintf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C:/workspace/wolfssh/src/ssh.c(3202):E0520029:Expected an expression

#define NO_WOLFSSL_DIR
#define NO_WOLFSSL_STUB
/* for compilers not allowed dynamic size array */
#define NO_DYNAMIC_ARRAY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recognize this macro. I think you mean WOLFSSL_SP_NO_DYN_STACK or HAVE_EMPTY_AGGREGATES 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I based my configuration on the settings in user_settings.h. I tried to find out whether the definition existed in past versions, but I couldn’t find it. So I just removed the macro. WOLFSSL_SP_NO_DYN_STACK is already defined in the file.

#define ECC_TIMING_RESISTANT
#define WC_RSA_BLINDING

#define FP_MAX_BITS 4096
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With SP math FP_MAX_BITS is not used... You need SP_INT_BITS 2048 which is likely default. FP_MAX_BITS only applies to USE_FAST_MATH and only if WOLFSSL_SP_MATH is not defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I also needed to add the WOLFSSL_SP_NO_3072 definition.

#define USE_CERT_BUFFERS_2048
#define SIZEOF_LONG_LONG 8
/* Warning: define your own seed gen */
#define WOLFSSL_GENSEED_FORTEST
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like that we are using the GENSEED_FORTEST by default...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enable TSIP use

@dgarske dgarske assigned miyazakh and unassigned wolfSSL-Bot Dec 5, 2025
@miyazakh miyazakh dismissed stale reviews from JacobBarthelmeh and ejohnstown via c50eec4 December 6, 2025 00:17
 - renamed wolfstp_util.c to wolfsftp_util.c
 - removed unnecessary if condition
 - enable TSIP
 - clean up user_settings.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants