Skip to content

Commit

Permalink
net/megacmd: Fix build with openssl-3.x
Browse files Browse the repository at this point in the history
PR:		271656
  • Loading branch information
kikadf authored and 5u623l20 committed Jun 13, 2023
1 parent e97ec9b commit 5d7e275
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 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)

0 comments on commit 5d7e275

Please sign in to comment.