changeset 4866:a02f58240e8a openssl-3.x

fix unit test Version.OpenSslStatic
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 25 Dec 2021 11:08:58 +0100
parents 9adb28193a8a
children 82612f07226a
files OrthancServer/UnitTestsSources/VersionsTests.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/UnitTestsSources/VersionsTests.cpp	Fri Dec 24 17:20:05 2021 +0100
+++ b/OrthancServer/UnitTestsSources/VersionsTests.cpp	Sat Dec 25 11:08:58 2021 +0100
@@ -166,7 +166,11 @@
 #if ORTHANC_ENABLE_SSL == 1
 TEST(Version, OpenSslStatic)
 {
-  ASSERT_EQ(0x3000100fL /* openssl-3.0.1 */, OPENSSL_VERSION_NUMBER);
+  // openssl-3.0.1
+  ASSERT_EQ(3 * 0x10000000L +
+            0 * 0x00100000L +
+            1 * 0x00000010L +
+            0 * 0x0000000fL, OPENSSL_VERSION_NUMBER);
 }
 #endif