Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Botan build and test failures #771

Merged
merged 3 commits into from
Nov 29, 2024
Merged

Conversation

bjosv
Copy link
Contributor

@bjosv bjosv commented Nov 29, 2024

This PR includes the following commits to be able to run all tests on the different platforms in CI.

  • Revert removal of Botan 2.0 ECB handling
    The ECB handling was added when Botan 2.0 was introduced via:
    Issue #276: Support for Botan 2.0 #294

    but then removed by comments in (and later removed completely):
    Amend PR 644 resolving conflicts and improvements #717 via: 8fd89ec

    This commit reverts parts of this commit to get a stable state.
    We could remove it fully in a separate PR, but then we should also remove the files Botan_ecb.h and Botan_ecb.cpp,
    and avoid running some tests on Botan.

  • Correcting build options for Windows in CI
    The CI installed libraries Botan and OpenSSL (x86 only) lacks support for ECC and EDDSA,
    which now are disabled during the CI builds. This fixes the build errors.
    Windows x64 with OpenSSL still builds and runs these tests.

  • Remove testing of unsupported ED448 in Botan 2
    The test can be re-enabled when we support Botan 3, see Feature: x448 and Ed448 randombit/botan#3933
    Today we only support Botan 2 in autoconf/CMake.

Fixes #767

The ECB handling of Botan 2.0 was added in
  "Issue softhsm#276: Support for Botan 2.0 softhsm#294"
  softhsm#294

but then removed in:
  softhsm#717
via:
  softhsm@8fd89ec

This commit reverts parts of this commit and additionally removes the
used define BOTAN_DLL. The functions in Botan_ecb.h are library-local
but building on Windows fails due link failue.

Signed-off-by: Björn Svensson <[email protected]>
The test can be re-enabled when we support Botan 3 due to:
randombit/botan#3933

Signed-off-by: Björn Svensson <[email protected]>
The CI installed libraries botan and openssl (x86 only) lacks support
for ECC and EDDSA, which now are disabled during the CI builds.

Windows x64 with OpenSSL still builds and runs these tests.

Signed-off-by: Björn Svensson <[email protected]>
@bjosv bjosv requested a review from a team as a code owner November 29, 2024 14:19
@jschlyter
Copy link
Contributor

Nice work!

@jschlyter jschlyter merged commit fe6e1b2 into softhsm:develop Nov 29, 2024
7 checks passed
@bjosv
Copy link
Contributor Author

bjosv commented Nov 29, 2024

I'll look into if I can get it faster with caching or something similar, it seems awfully slow..

@bjosv bjosv deleted the ci-updates branch November 29, 2024 15:21
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.

Fix Botan build failure in CI
2 participants