multimedia/oscam: Fix build with openssl3

- Refresh patches

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-08-06 20:26:04 +02:00
parent ed5fb867af
commit 9a58cf0557
2 changed files with 32 additions and 2 deletions

View file

@ -1,6 +1,6 @@
--- config.h.orig 2020-03-14 17:14:49 UTC
--- config.h.orig 2021-07-28 22:04:49 UTC
+++ config.h
@@ -34,7 +34,7 @@
@@ -35,7 +35,7 @@
//#define MODULE_SERIAL 1
//#define MODULE_CONSTCW 1
//#define MODULE_PANDORA 1

View file

@ -0,0 +1,30 @@
--- oscam.c.orig 2023-08-06 18:22:04 UTC
+++ oscam.c
@@ -49,7 +49,9 @@
static void ssl_init(void)
{
SSL_load_error_strings();
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
ERR_load_BIO_strings();
+#endif
ERR_load_SSL_strings();
SSL_library_init();
}
@@ -1807,7 +1809,7 @@ int32_t main(int32_t argc, char *argv[])
#ifdef CS_CACHEEX_AIO
init_cw_cache();
init_ecm_cache();
-#endif
+#endif
cs_init_log();
init_machine_info();
init_check();
@@ -1899,7 +1901,7 @@ int32_t main(int32_t argc, char *argv[])
led_status_starting();
ac_init();
-
+
gbox_send_init_hello();
start_thread("card poll", (void *) &card_poll, NULL, NULL, 1, 1);