git: 5d7e27541216 - main - net/megacmd: Fix build with openssl-3.x
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Jun 2023 10:06:21 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=5d7e275412166f6448cbe6b0390653471dfb9b3d commit 5d7e275412166f6448cbe6b0390653471dfb9b3d Author: kikadf <kikadf.01@gmail.com> AuthorDate: 2023-06-13 08:22:54 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-13 10:06:13 +0000 net/megacmd: Fix build with openssl-3.x PR: 271656 --- net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp b/net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp new file mode 100644 index 000000000000..9c0eb637365f --- /dev/null +++ b/net/megacmd/files/patch-sdk_src_mega__evt__tls.cpp @@ -0,0 +1,16 @@ +--- sdk/src/mega_evt_tls.cpp.orig 2023-06-13 08:00:40 UTC ++++ sdk/src/mega_evt_tls.cpp +@@ -64,9 +64,13 @@ static void tls_begin(void) + { + SSL_library_init(); + SSL_load_error_strings(); ++#if OPENSSL_VERSION_NUMBER >= 0x30000000L ++ OpenSSL_add_all_algorithms(); ++#else + ERR_load_BIO_strings(); + OpenSSL_add_all_algorithms(); + ERR_load_crypto_strings(); ++#endif + } + + evt_tls_t *evt_ctx_get_tls(evt_ctx_t *d_eng)