summaryrefslogtreecommitdiffstats
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-10-08 16:40:17 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-10-08 16:42:33 +0200
commit2dd9f229c88cb9fcd9257429bbfdee63e90db08e (patch)
tree8745457b553b5770b5ac5bec72c33199513e1790 /scripts/const_structs.checkpatch
parent6ff711a97771e924ff13e643e5d8fd798f323f53 (diff)
downloadhardware_replicant_libsamsung-ril-main.tar.gz
hardware_replicant_libsamsung-ril-main.tar.bz2
hardware_replicant_libsamsung-ril-main.zip
scripts: guix.scm: switch from OpenSSL to LibreSSLHEADreplicant-6.0mastermain
Without that fix, it links against OpenSSL 3.0 which deprecated MD5_Init, MD5_Update and MD5_Final. And so we end up with these warnings: samsung-ipc/rfs.c: In function ‘ipc_nv_data_md5_calculate’: samsung-ipc/rfs.c:75:9: error: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 75 | MD5_Init(&ctx); | ^~~~~~~~ samsung-ipc/rfs.c:76:9: error: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 76 | MD5_Update(&ctx, data, size); | ^~~~~~~~~~ samsung-ipc/rfs.c:77:9: error: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 77 | MD5_Update(&ctx, secret, strlen(secret)); | ^~~~~~~~~~ | ^~~~~~~~~~ samsung-ipc/rfs.c:78:9: error: ‘MD5_Final’ is deprecated Since OpenSSL 3.0 [-Werror=deprecated-declarations] 78 | MD5_Final((unsigned char *) &md5_hash, &ctx); | ^~~~~~~~~ but since we use -Werror the build fails. If we simply update libsamsung-ril to use the newer OpenSSL API, then it will not compile anymore on older Android versions. So to update libsamsung-ril we would need to be compatible with both older and newer OpenSSL APIs, and that requires a bit more work. So if we don't want to do that work now, we need a drop-in replacement package that implements the old OpenSSL API. Since OpenSSL 1.1.1 is now out of support[1], so it is not a valid option. [1]https://www.openssl.org/source/ Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions