Mercurial > hg > orthanc
changeset 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 | c1d6ce00be3f |
children | 336571b8952f |
files | OrthancFramework/Sources/HttpServer/HttpServer.cpp OrthancFramework/Sources/Pkcs11.cpp OrthancFramework/Sources/Toolbox.cpp |
diffstat | 3 files changed, 14 insertions(+), 0 deletions(-) [+] |
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"
--- a/OrthancFramework/Sources/Pkcs11.cpp Tue Jul 06 08:40:43 2021 +0200 +++ b/OrthancFramework/Sources/Pkcs11.cpp Tue Jul 06 09:52:15 2021 +0200 @@ -41,6 +41,10 @@ #include <openssl/engine.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 + namespace Orthanc {
--- a/OrthancFramework/Sources/Toolbox.cpp Tue Jul 06 08:40:43 2021 +0200 +++ b/OrthancFramework/Sources/Toolbox.cpp Tue Jul 06 09:52:15 2021 +0200 @@ -92,6 +92,11 @@ # include <openssl/err.h> # include <openssl/evp.h> # include <openssl/ssl.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