Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/api_ref/ffi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ supported it.
============== ===================
FFI Version Supported Starting
============== ===================
20260203 3.11.0
20250829 3.10.0
20250506 3.8.0
20240408 3.4.0
Expand Down
5 changes: 5 additions & 0 deletions src/lib/ffi/ffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ uint32_t botan_ffi_api_version() {
}

int botan_ffi_supports_api(uint32_t api_version) {
// This is the API introduced in 3.11
if(api_version == 20260203) {
return BOTAN_FFI_SUCCESS;
}

// This is the API introduced in 3.10
if(api_version == 20250829) {
return BOTAN_FFI_SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ffi/ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ API follows a few simple rules:
* that declaration is not visible here since this header is intentionally
* free-standing, depending only on a few C standard library headers.
*/
#define BOTAN_FFI_API_VERSION 20250829
#define BOTAN_FFI_API_VERSION 20260203

/**
* BOTAN_FFI_EXPORT indicates public FFI functions.
Expand Down
6 changes: 5 additions & 1 deletion src/lib/ffi/info.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<defines>
FFI -> 20250829
# When bumping remember to also update
# - BOTAN_FFI_API_VERSION in ffi.h
# - botan_ffi_supports_api in ffi.cpp
# - The table of versions in ffi.rst
FFI -> 20260203
</defines>

<module_info>
Expand Down
Loading