0002-Add-support-for-OpenSSL-3-2-x.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From beea0f97b3c95ec69f3e269df1af87eb2cdd3c46 Mon Sep 17 00:00:00 2001
  2. From: Otto Hollmann <otto@hollmann.cz>
  3. Date: Tue, 12 Dec 2023 13:58:32 +0100
  4. Subject: [PATCH] Add support for OpenSSL 3.2.x
  5. Upstream: https://github.com/kgoldman/ibmswtpm2/pull/13
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. ---
  8. src/TpmToOsslMath.h | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/src/TpmToOsslMath.h b/src/TpmToOsslMath.h
  11. index 0b18191..1271937 100644
  12. --- a/src/TpmToOsslMath.h
  13. +++ b/src/TpmToOsslMath.h
  14. @@ -76,10 +76,10 @@
  15. * As of release 3.0.0, OPENSSL_VERSION_NUMBER is a combination of the
  16. * major (M), minor (NN) and patch (PP) version into a single integer 0xMNN00PP0L
  17. */
  18. -#if OPENSSL_VERSION_NUMBER > 0x30100ff0L
  19. +#if OPENSSL_VERSION_NUMBER > 0x30200ff0L
  20. // Check the bignum_st definition in crypto/bn/bn_lcl.h or crypto/bn/bn_local.h and either update
  21. // the version check or provide the new definition for this version.
  22. -// Currently safe for all 3.1.x
  23. +// Currently safe for all 3.2.x
  24. # error Untested OpenSSL version
  25. #elif OPENSSL_VERSION_NUMBER >= 0x10100000L
  26. // from crypto/bn/bn_lcl.h