Welcome
libfilezilla is a small and modern C++ library, offering some basic functionality to build high-performing, platform-independent programs. Some of the highlights include:
- A typesafe, multi-threaded event system that's very simple to use yet extremely efficient
- Timers for periodic events
- A fz::socket class for TCP communication with infrastructure to easily add layers on top
- A TLS layer to secure communication
- A rate-limited socket layer to control traffic flow
- A datetime class that not only tracks timestamp but also their accuracy, which simplifies dealing with timestamps originating from different sources
- Simple process handling for spawning child processes with redirected I/O
libfilezilla is a cross-platform library for all major operating systems, including but not limited to Linux, *BSD, OS X and Windows.
This library is free software, it is distributed under the terms and conditions of the GNU General Public License v2+
News
2026-11-13 - libfilezilla 0.59.0 released
Fixed vulnerabilities:
- MSW: Fix argument quoting when directly trying to start .bat/.cmd as executable
- HTTP: Fix redirects on same host but different protocol/port
New features:
- Add support for certificates with IP SAN, these can now be checked against the system trust store
Bugfixes and minor changes:
- fz::event_with_source accepts const source pointers; source() now returns a const source-identity pointer
- Minor fixes to key purpose handling in certificate requests
2026-10-23 - libfilezilla 0.58.0 released
New features:
- Added fz::socket::srtt to get an estimate of the the smoothed rounttrip time of the connection, if available
- Added fz::rename_file flags to control replacement and cross-filesystem copying; no-replace uses native atomic operations where available, otherwise a best-effort check
- Added fz::result::cross_device to report filesystem-boundary failures
- Added fz::local_filesys modification time overloads for native file and directory handles
- Added fz::is_valid_x509_distinguished_name
- Added shared interface for buffer access
Bugfixes and minor changes:
- fz::uri::get_authority now correctly preserves IPv6 literal addresses
- HTTP connections that are kept alive now also use TCP keep-alive and automatically close after a few minutes
- MSW: Reading or writing an invalid file handle now reports invalid instead of other, matching Unix
- MSW: When impersonating, TOKEN_ONWER is now set on the token
2026-08-18 - libfilezilla 0.57.0 released
New features:
- Added support for creating impersonation_token from either user names or user ids
- Added APIs to check whether impersonation is available before trying to create a token
- Added fz::get_user_id() and fz::get_user_name()
- MSW: Added passwordless impersonation tokens
- MSW: Added desktop selection for processes spawned under impersonation
- MSW: Process spawning under impersonation can now report setup failures through a logger
- Improved the impersonation demo with user id, passwordless, desktop and custom command support
- Added fz::secure_buffer that wipes memory on deallocation
- Added fz::pbkd2 function taking hmac algorithm as argument
Bugfixes and minor changes:
- MSW: Loading impersonated user profiles no longer changes caller process privileges
- MSW: Fixed EOF handling when reading redirected process output after the child process exits