wolfssh icon indicating copy to clipboard operation
wolfssh copied to clipboard

Make wolfSSH_SFTPNAME_readdir overridable

Open falemagn opened this issue 2 years ago • 2 comments

Make wolfSSH_SFTPNAME_readdir overridable when defining WOLFSSH_USER_FILESYSTEM and SFTP_Name_readdir.

SFTP_Name_readdir has to be defined as a macro, but it can be defined to expand to its own name if also a function with the same name is defined.

What matters is that it takes 3 arguments:

1) the filesystem context as first argument;
2) WDIR* as second argument;
3) WS_SFTPNAME* as third argument

On successful execution, it returns WS_SUCCESS and the WS_SFTPNAME structure pointed by the third argument will be filled with the relevant info, otherwise a WS_* error code is returned.

falemagn avatar Jul 21 '23 08:07 falemagn

Can one of the admins verify this patch?

wolfSSL-Bot avatar Jul 21 '23 08:07 wolfSSL-Bot

ok to test

JacobBarthelmeh avatar Jul 27 '23 22:07 JacobBarthelmeh

Closing for updated PR #691.

ejohnstown avatar May 15 '24 19:05 ejohnstown