Skip to content

Commit 724276c

Browse files
JacobBarthelmehejohnstown
authored andcommitted
keep a list of file handles open per session
- Track open SFTP file handles per session in a fileList, returning opaque session-scoped handle IDs instead of raw file descriptors. - Resolve and validate client-supplied handle IDs via FindFileHandle. - Free the handle list and close handles on error paths, including the Windows code paths. - Drop the old raw-fd SFTP_ValidateFileHandle/STOREHANDLE handle table and its tests, superseded by the per-session ID lookup.
1 parent e2bfa19 commit 724276c

6 files changed

Lines changed: 429 additions & 478 deletions

File tree

ide/Renesas/e2studio/RX72N/wolfssh_RX72N/wolfssh_user_setting.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#define WOLFSSH_NO_TIMESTAMP
3636

3737
#define WOLFSSH_FATFS
38-
#define WOLFSSH_STOREHANDLE
3938
#define PRINTF printf
4039
#define DEFAULT_WINDOW_SZ 16384
4140
#define WOLFSSH_NO_RSA

0 commit comments

Comments
 (0)