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