From 71859673587c21dd08860776cf1c1a2ea07b48c9 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 27 Apr 2026 14:10:21 -0700 Subject: [PATCH] Export Windows Function Wrappers Retag the WS_FindFirstFileA() and WS_FindNextFileA() functions as WOLFSSH_API, not just local. They are used in the example SFTP client. --- wolfssh/port.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssh/port.h b/wolfssh/port.h index c78862903..fee7ab39b 100644 --- a/wolfssh/port.h +++ b/wolfssh/port.h @@ -480,10 +480,10 @@ extern "C" { unsigned long desiredAccess, unsigned long shareMode, unsigned long creationDisposition, unsigned long flags, void* heap); - WOLFSSH_LOCAL void* WS_FindFirstFileA(const char* fileName, + WOLFSSH_API void* WS_FindFirstFileA(const char* fileName, char* realFileName, size_t realFileNameSz, int* isDir, void* heap); - WOLFSSH_LOCAL int WS_FindNextFileA(void* findHandle, + WOLFSSH_API int WS_FindNextFileA(void* findHandle, char* realFileName, size_t realFileNameSz); WOLFSSH_LOCAL int WS_GetFileAttributesExA(const char* fileName, void* fileInfo, void* heap);