Skip to content

FFI: add *_count() functions for DN enumerators - #5234

Merged
reneme merged 1 commit into
randombit:masterfrom
Rohde-Schwarz:feature/ffi_count_for_dn
Jan 13, 2026
Merged

FFI: add *_count() functions for DN enumerators#5234
reneme merged 1 commit into
randombit:masterfrom
Rohde-Schwarz:feature/ffi_count_for_dn

Conversation

@reneme

@reneme reneme commented Jan 13, 2026

Copy link
Copy Markdown
Collaborator

As suggested: #5232 (comment)

Note that these enumerator functions pre-date the BOTAN_FFI_ERROR_OUT_OF_BOUNDS and therefore still use ..._BAD_PARAMETER when the index is out of range. This also adds Botan4-TODOs to change that without breaking semver promises.

@reneme
reneme requested review from Copilot and randombit January 13, 2026 08:13
@reneme reneme self-assigned this Jan 13, 2026
@reneme reneme changed the title FFI: add *_count() functions for DN enumerators FFI: add *_count() functions for DN enumerators Jan 13, 2026

This comment was marked as resolved.

... these enumerator functions are pre-dating the BOTAN_FFI_ERROR_OUT_OF_BOUNDS
and therefore still use BAD_PARAMETER for this situation. This commit also adds
Botan4-TODOs to change that without breaking semver promises.
@reneme
reneme force-pushed the feature/ffi_count_for_dn branch from 2934216 to 2cfce7a Compare January 13, 2026 08:30
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 91.917% (+1.5%) from 90.454%
when pulling 2cfce7a on Rohde-Schwarz:feature/ffi_count_for_dn
into cc836e3 on randombit:master.

@reneme
reneme merged commit 8c072d7 into randombit:master Jan 13, 2026
46 checks passed
@reneme
reneme deleted the feature/ffi_count_for_dn branch January 13, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants