diff OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 4741:a6b7c29f5118 openssl-3.x

compiler warning about openssl license
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Jul 2021 09:52:15 +0200
parents 57b1a36645ae
children 2e71a08eea15
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp	Tue Jul 06 08:40:43 2021 +0200
+++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp	Tue Jul 06 09:52:15 2021 +0200
@@ -72,6 +72,11 @@
 #if ORTHANC_ENABLE_SSL == 1
 #  include <openssl/opensslv.h>
 #  include <openssl/err.h>
+
+#  if OPENSSL_VERSION_NUMBER < 0x30000000L
+#    warning You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc. Please update to OpenSSL 3.x, that uses the Apache 2 license.
+#  endif
+
 #endif
 
 #define ORTHANC_REALM "Orthanc Secure Area"