>>> xilinx_bootgen: Building community/xilinx_bootgen 2025.2-r0 (using abuild 3.16.0-r0) started Sat, 21 Mar 2026 17:52:58 +0000 >>> xilinx_bootgen: Validating /home/buildozer/aports/community/xilinx_bootgen/APKBUILD... >>> xilinx_bootgen: Analyzing dependencies... >>> xilinx_bootgen: Installing for build: build-base openssl-dev>3 (1/2) Installing openssl-dev (3.5.5-r1) (2/2) Installing .makedepends-xilinx_bootgen (20260321.175259) OK: 443.3 MiB in 108 packages >>> xilinx_bootgen: Cleaning up srcdir >>> xilinx_bootgen: Cleaning up pkgdir >>> xilinx_bootgen: Cleaning up tmpdir >>> xilinx_bootgen: Fetching https://distfiles.alpinelinux.org/distfiles/edge/xilinx_bootgen-2025.2.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) wget: server returned error: HTTP/1.1 404 Not Found >>> xilinx_bootgen: Fetching xilinx_bootgen-2025.2.tar.gz::https://github.com/Xilinx/bootgen/archive/xilinx_v2025.2.tar.gz Connecting to github.com (140.82.121.3:443) Connecting to codeload.github.com (140.82.113.10:443) saving to '/var/cache/distfiles/edge/xilinx_bootgen-2025.2.tar.gz.part' xilinx_bootgen-2025. 152k --:--:-- ETA xilinx_bootgen-2025. 100% |********************************| 987k 0:00:00 ETA '/var/cache/distfiles/edge/xilinx_bootgen-2025.2.tar.gz.part' saved /var/cache/distfiles/edge/xilinx_bootgen-2025.2.tar.gz: OK /home/buildozer/aports/community/xilinx_bootgen/fix-verify-segfault.patch: OK /home/buildozer/aports/community/xilinx_bootgen/fix-missing-stdio-include.patch: OK /home/buildozer/aports/community/xilinx_bootgen/fix-double-free-authkeys.patch: OK /home/buildozer/aports/community/xilinx_bootgen/fix-openssl-3.6-struct-layout.patch: OK >>> xilinx_bootgen: Fetching https://distfiles.alpinelinux.org/distfiles/edge/xilinx_bootgen-2025.2.tar.gz /var/cache/distfiles/edge/xilinx_bootgen-2025.2.tar.gz: OK /home/buildozer/aports/community/xilinx_bootgen/fix-verify-segfault.patch: OK /home/buildozer/aports/community/xilinx_bootgen/fix-missing-stdio-include.patch: OK /home/buildozer/aports/community/xilinx_bootgen/fix-double-free-authkeys.patch: OK /home/buildozer/aports/community/xilinx_bootgen/fix-openssl-3.6-struct-layout.patch: OK >>> xilinx_bootgen: Unpacking /var/cache/distfiles/edge/xilinx_bootgen-2025.2.tar.gz... >>> xilinx_bootgen: fix-verify-segfault.patch patching file zynqmp/src/verifyimage-zynqmp.cpp >>> xilinx_bootgen: fix-missing-stdio-include.patch patching file lms-hash-sigs/hss_param.c >>> xilinx_bootgen: fix-double-free-authkeys.patch patching file common/src/authkeys.cpp Hunk #2 succeeded at 196 with fuzz 2. >>> xilinx_bootgen: fix-openssl-3.6-struct-layout.patch patching file common/include/xil-bignum.h Hunk #2 succeeded at 53 with fuzz 2. c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include bisonflex/bif.tab.cpp -o build/obj/bif.tab.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include bisonflex/bif.yy.cpp -o build/obj/bif.yy.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include bisonflex/reginit.tab.cpp -o build/obj/reginit.tab.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include bisonflex/reginit.yy.cpp -o build/obj/reginit.yy.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include bisonflex/cmdoptions.tab.cpp -o build/obj/cmdoptions.tab.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include bisonflex/cmdoptions.yy.cpp -o build/obj/cmdoptions.yy.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/Keccak-compact.cpp -o build/obj/Keccak-compact.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/partition.cpp -o build/obj/partition.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/mcsfile.cpp -o build/obj/mcsfile.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/reginit.cpp -o build/obj/reginit.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/bootheader.cpp -o build/obj/bootheader.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/bitutils.cpp -o build/obj/bitutils.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/binary.cpp -o build/obj/binary.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/encryption.cpp -o build/obj/encryption.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/outputfile.cpp -o build/obj/outputfile.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/parsing.cpp -o build/obj/parsing.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/kdf.cpp -o build/obj/kdf.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/readimage.cpp -o build/obj/readimage.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/logger.cpp -o build/obj/logger.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/imageheadertable.cpp -o build/obj/imageheadertable.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/bifoptions.cpp -o build/obj/bifoptions.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/authkeys.cpp -o build/obj/authkeys.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/main.cpp -o build/obj/main.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/binfile.cpp -o build/obj/binfile.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/options.cpp -o build/obj/options.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/authentication.cpp -o build/obj/authentication.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/postprocess.cpp -o build/obj/postprocess.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/partitionheadertable.cpp -o build/obj/partitionheadertable.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/checksum.cpp -o build/obj/checksum.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/hash.cpp -o build/obj/hash.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include common/src/bootimage.cpp -o build/obj/bootimage.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/binary-spartanup.cpp -o build/obj/binary-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/partition-spartanup.cpp -o build/obj/partition-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/outputfile-spartanup.cpp -o build/obj/outputfile-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/bitutils-spartanup.cpp -o build/obj/bitutils-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/encryption-spartanup.cpp -o build/obj/encryption-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/verifyimage-spartanup.cpp -o build/obj/verifyimage-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/Keccak-compact-spartanup.cpp -o build/obj/Keccak-compact-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/imageheadertable-spartanup.cpp -o build/obj/imageheadertable-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/authkeys-spartanup.cpp -o build/obj/authkeys-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/authentication-spartanup.cpp -o build/obj/authentication-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/checksum-spartanup.cpp -o build/obj/checksum-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/bootimage-spartanup.cpp -o build/obj/bootimage-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/readimage-spartanup.cpp -o build/obj/readimage-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/partitionheadertable-spartanup.cpp -o build/obj/partitionheadertable-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include spartanup/src/bootheader-spartanup.cpp -o build/obj/bootheader-spartanup.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/readimage-versal.cpp -o build/obj/readimage-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/imageheadertable-versal.cpp -o build/obj/imageheadertable-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/bitutils-versal.cpp -o build/obj/bitutils-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/Keccak-compact-versal.cpp -o build/obj/Keccak-compact-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/authkeys-versal.cpp -o build/obj/authkeys-versal.o In file included from common/src/hash.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from common/include/hash.h:28: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/src/hash.cpp: In member function 'virtual uint8_t HashSha2::UpdateHash(const void*, size_t)': common/src/hash.cpp:44:38: warning: 'int SHA256_Update(SHA256_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 44 | uint8_t errorCode = SHA256_Update(&ctx, data, length); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, | ^~~~~~~~~~~~~ common/src/hash.cpp: In member function 'virtual uint8_t HashSha2::FinalHash(uint8_t*)': common/src/hash.cpp:53:37: warning: 'int SHA256_Final(unsigned char*, SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 53 | uint8_t errorCode = SHA256_Final(hashout, &ctx); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); | ^~~~~~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/encryption-versalnet.cpp -o build/obj/encryption-versalnet.o In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from common/include/bifoptions.h:30, from spartanup/src/binary-spartanup.cpp:31: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authkeys.h:33, from common/include/bifoptions.h:29: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from common/include/bifoptions.h:30, from common/src/binary.cpp:31: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authkeys.h:33, from common/include/bifoptions.h:29: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authkeys.h:31: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authkeys.h:31: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from versal/include/imageheadertable-versal.h:29, from common/src/postprocess.cpp:18: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from spartanup/include/imageheadertable-spartanup.h:29, from spartanup/src/imageheadertable-spartanup.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/bootheader-versal.cpp -o build/obj/bootheader-versal.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/imageheadertable.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from ../../parser/reginit.y:45, from common/include/reginitscanner.h:41, from parser/reginit.l:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from spartanup/include/bootimage-spartanup.h:28, from spartanup/src/bootimage-spartanup.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from spartanup/include/bootheader-spartanup.h:29, from spartanup/src/bootheader-spartanup.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from ../../parser/cmdoptions.y:40, from common/include/cmdoptionsscanner.h:41, from ../../parser/cmdoptions.y:52: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/main.cpp:29: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from parser/bif.y:55: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/lms.h:35, from spartanup/include/authkeys-spartanup.h:35, from spartanup/src/authkeys-spartanup.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from spartanup/include/authkeys-spartanup.h:32: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from spartanup/include/authkeys-spartanup.h:30: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from common/src/readimage.cpp:31: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/partition.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/partitionheadertable.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/include/bitutils.h:33, from common/src/bitutils.cpp:28: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from spartanup/include/partitionheadertable-spartanup.h:28, from spartanup/src/partitionheadertable-spartanup.cpp:22: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from spartanup/include/checksum-spartanup.h:27, from spartanup/src/checksum-spartanup.cpp:18: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/src/authentication.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/encryption.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/bootheader.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp: In constructor 'SpartanupKey::SpartanupKey(const std::string&)': spartanup/src/authkeys-spartanup.cpp:47:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 47 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/outputfile.cpp:29: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:51:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 51 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ spartanup/src/authkeys-spartanup.cpp: In constructor 'SpartanupKey::SpartanupKey(const Key&)': spartanup/src/authkeys-spartanup.cpp:69:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 69 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:73:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp: In destructor 'virtual SpartanupKey::~SpartanupKey()': spartanup/src/authkeys-spartanup.cpp:96:20: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 96 | EC_KEY_free(eckey); | ~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/src/authkeys.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authkeys.h:33, from common/src/authkeys.cpp:26: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/include/bitutils.h:33, from spartanup/include/bitutils-spartanup.h:27, from spartanup/src/bitutils-spartanup.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ spartanup/src/authkeys-spartanup.cpp: In member function 'uint8_t SpartanupKey::ParseECDSAOpenSSLKey(const std::string&)': spartanup/src/authkeys-spartanup.cpp:297:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 297 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:298:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 298 | if (!EC_KEY_check_key(eckey)) | ~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:316:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 316 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:317:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 317 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from common/include/authkeys.h:31: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ spartanup/src/authkeys-spartanup.cpp:340:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 340 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:341:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 341 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from ../../parser/cmdoptions.y:40, from common/include/cmdoptionsscanner.h:41, from parser/cmdoptions.l:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:373:35: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 373 | eckey = PEM_read_EC_PUBKEY(file, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:374:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 374 | if (!EC_KEY_check_key(eckey)) | ~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ spartanup/src/authkeys-spartanup.cpp:392:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 392 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:393:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 393 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:416:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 416 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:417:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 417 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from spartanup/include/readimage-spartanup.h:31, from spartanup/src/verifyimage-spartanup.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from ../../parser/cmdoptions.y:40, from common/include/cmdoptionsscanner.h:41, from common/src/options.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from spartanup/include/bootheader-spartanup.h:29, from spartanup/src/encryption-spartanup.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ spartanup/src/authkeys-spartanup.cpp: In member function 'virtual void SpartanupKey::Parse(const std::string&, bool)': spartanup/src/authkeys-spartanup.cpp:504:39: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 504 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:511:48: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 511 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ spartanup/src/authkeys-spartanup.cpp:518:25: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 518 | RSA_free(rsa); | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/src/authkeys.cpp: In member function 'uint8_t Key::ParseOpenSSLKey(FILE*)': common/src/authkeys.cpp:215:45: warning: 'RSA* PEM_read_RSAPrivateKey(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 215 | rsaInst.rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:457:1: note: declared here 457 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from common/include/authkeys.h:30: common/src/authkeys.cpp:222:42: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 222 | keySzRd = BN_num_bytes(RSA_get0_n(rsaInst.rsa)); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ common/src/authkeys.cpp:231:29: warning: 'const BIGNUM* RSA_get0_d(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 231 | memcpy(D, RSA_get0_d(rsaInst.rsa)->d, keySize); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:245:37: note: declared here 245 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_d(const RSA *d); | ^~~~~~~~~~ common/src/authkeys.cpp:238:42: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 238 | rsaInst.rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp:244:42: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 244 | keySzRd = BN_num_bytes(RSA_get0_n(rsaInst.rsa)); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ common/src/authkeys.cpp:255:25: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 255 | memcpy(N, RSA_get0_n(rsaInst.rsa)->d, keySize); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from spartanup/src/outputfile-spartanup.cpp:29: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/src/authkeys.cpp:256:25: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 256 | memcpy(E, RSA_get0_e(rsaInst.rsa)->d, sizeof(uint32_t)); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/lms.h:35, from spartanup/include/authkeys-spartanup.h:35, from spartanup/include/authentication-spartanup.h:40, from spartanup/src/authentication-spartanup.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from spartanup/include/authentication-spartanup.h:38: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from spartanup/include/authentication-spartanup.h:36: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ common/src/authkeys.cpp: In static member function 'static void Key::WriteRsaFile(std::string, const RSA*, bool, uint16_t)': common/src/authkeys.cpp:428:32: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 428 | memcpy(temp, RSA_get0_n(rsa)->d, keyLength); | ~~~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ common/src/authkeys.cpp:439:49: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 439 | uint32_t* temp_e = (uint32_t*)RSA_get0_e(rsa)->d; | ~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ common/src/authkeys.cpp:448:36: warning: 'const BIGNUM* RSA_get0_d(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 448 | memcpy(temp, RSA_get0_d(rsa)->d, keyLength); | ~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:245:37: note: declared here 245 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_d(const RSA *d); | ^~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/checksum.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/src/authkeys.cpp: In static member function 'static void Key::WritePemFile(std::string, RSA*, EC_KEY*, bool)': common/src/authkeys.cpp:483:40: warning: 'int PEM_write_RSA_PUBKEY(FILE*, const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 483 | if (PEM_write_RSA_PUBKEY(file, rsa)) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp:490:43: warning: 'int PEM_write_RSAPrivateKey(FILE*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 490 | if (PEM_write_RSAPrivateKey(file, rsa, NULL, NULL, 0, NULL, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:457:1: note: declared here 457 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA) | ^~~~~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp:501:40: warning: 'int PEM_write_EC_PUBKEY(FILE*, const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 501 | if (PEM_write_EC_PUBKEY(file, eckey)) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp:508:43: warning: 'int PEM_write_ECPrivateKey(FILE*, const EC_KEY*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 508 | if (PEM_write_ECPrivateKey(file, eckey, NULL, NULL, 0, NULL, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp: In static member function 'static void Key::GenerateRsaKeys(KeyGenerationStruct*)': common/src/authkeys.cpp:544:36: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated: Since OpenSSL 0.9.8 [-Wdeprecated-declarations] 544 | if ((rsa = RSA_generate_key(keygen->keyLength * 8, RSA_F4, NULL, NULL)) == NULL) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:264:30: note: declared here 264 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void (*callback)(int, int, void *), | ^~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from versal/include/readimage-versal.h:30, from versal/src/readimage-versal.cpp:31: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/src/authkeys.cpp:580:36: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated: Since OpenSSL 0.9.8 [-Wdeprecated-declarations] 580 | if ((rsa = RSA_generate_key(keygen->keyLength * 8, RSA_F4, NULL, NULL)) == NULL) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:264:30: note: declared here 264 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void (*callback)(int, int, void *), | ^~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from parser/bif.y:43, from common/include/bifscanner.h:40, from parser/bif.l:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/src/authkeys.cpp: In static member function 'static void Key::GenerateEcdsaKeys(KeyGenerationStruct*)': common/src/authkeys.cpp:629:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 629 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp:633:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 633 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ common/src/authkeys.cpp:643:32: warning: 'int EC_KEY_generate_key(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 643 | if((EC_KEY_generate_key(eckey)) == 0) | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1112:27: note: declared here 1112 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from ../../parser/reginit.y:45, from common/include/reginitscanner.h:41, from ../../parser/reginit.y:55: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ common/src/authkeys.cpp:663:33: warning: 'int EC_KEY_generate_key(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 663 | if ((EC_KEY_generate_key(eckey)) == 0) | ~~~~~~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1112:27: note: declared here 1112 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from spartanup/src/partition-spartanup.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from spartanup/include/readimage-spartanup.h:31, from spartanup/src/readimage-spartanup.cpp:32: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from common/include/bifoptions.h:30, from common/src/bifoptions.cpp:26: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authkeys.h:33, from common/include/bifoptions.h:29: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authkeys.h:31: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/src/checksum.cpp: In member function 'virtual void MD5ChecksumContext::Link(bool, const uint8_t*, Binary::Length_t, Section*)': common/src/checksum.cpp:59:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 59 | MD5( data, length, cksum_data); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from common/src/checksum.cpp:33: /usr/include/openssl/md5.h:52:38: note: declared here 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, | ^~~ bisonflex/reginit.yy.cpp: In member function 'virtual int RE::FlexScanner::yylex()': bisonflex/reginit.yy.cpp:720:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 720 | register yy_state_type yy_current_state; | ^~~~~~~~~~~~~~~~ bisonflex/reginit.yy.cpp:721:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 721 | register char *yy_cp, *yy_bp; | ^~~~~ bisonflex/reginit.yy.cpp:721:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 721 | register char *yy_cp, *yy_bp; | ^~~~~ bisonflex/reginit.yy.cpp:722:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 722 | register int yy_act; | ^~~~~~ bisonflex/reginit.yy.cpp:786:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 786 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; | ^~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/binary-versal.cpp -o build/obj/binary-versal.o spartanup/src/bootimage-spartanup.cpp: In member function 'virtual void SpartanBootImage::Add(BifOptions*)': spartanup/src/bootimage-spartanup.cpp:1285:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1285 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ bisonflex/reginit.yy.cpp: In member function 'int reginitFlexLexer::yy_get_next_buffer()': bisonflex/reginit.yy.cpp:1222:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1222 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; | ^~~~ bisonflex/reginit.yy.cpp:1223:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1223 | register char *source = (yytext_ptr); | ^~~~~~ bisonflex/reginit.yy.cpp:1224:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1224 | register int number_to_move, i; | ^~~~~~~~~~~~~~ bisonflex/reginit.yy.cpp:1224:38: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1224 | register int number_to_move, i; | ^ spartanup/src/bootimage-spartanup.cpp:1293:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1293 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_get_previous_state()': bisonflex/reginit.yy.cpp:1362:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1362 | register yy_state_type yy_current_state; | ^~~~~~~~~~~~~~~~ bisonflex/reginit.yy.cpp:1363:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1363 | register char *yy_cp; | ^~~~~ bisonflex/reginit.yy.cpp:1371:34: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1371 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); | ^~~~ bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_try_NUL_trans(yy_state_type)': bisonflex/reginit.yy.cpp:1400:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1400 | register int yy_is_jam; | ^~~~~~~~~ bisonflex/reginit.yy.cpp:1402:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1402 | register char *yy_cp = (yy_c_buf_p); | ^~~~~ bisonflex/reginit.yy.cpp:1404:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1404 | register YY_CHAR yy_c = 1; | ^~~~ bisonflex/reginit.yy.cpp: At global scope: bisonflex/reginit.yy.cpp:1425:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1425 | void yyFlexLexer::yyunput( int c, register char* yy_bp) | ^~~~~ bisonflex/reginit.yy.cpp: In member function 'void reginitFlexLexer::yyunput(int, char*)': bisonflex/reginit.yy.cpp:1428:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1428 | register char *yy_cp; | ^~~~~ bisonflex/reginit.yy.cpp:1438:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1438 | register int number_to_move = (yy_n_chars) + 2; | ^~~~~~~~~~~~~~ bisonflex/reginit.yy.cpp:1439:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1439 | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ | ^~~~ bisonflex/reginit.yy.cpp:1441:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1441 | register char *source = | ^~~~~~ spartanup/src/bootimage-spartanup.cpp: In member function 'virtual void SpartanBootImage::OutputOptionalEfuseHash()': spartanup/src/bootimage-spartanup.cpp:1714:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1714 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ spartanup/src/bootimage-spartanup.cpp:1722:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1722 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ spartanup/src/bootimage-spartanup.cpp:1739:60: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1739 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ spartanup/src/bootimage-spartanup.cpp:1740:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1740 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1045:39: note: declared here 1045 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ spartanup/src/bootimage-spartanup.cpp:1791:63: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1791 | EC_KEY *eckeyLocal = PEM_read_ECPrivateKey(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/bootimage-spartanup.cpp:1792:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1792 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1045:39: note: declared here 1045 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from parser/bif.y:43, from common/include/parsing.h:27, from common/src/parsing.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ spartanup/src/verifyimage-spartanup.cpp: In member function 'bool SpartanupReadImage::VerifyECDSASignature(bool, uint8_t*, size_t, ACKeyECDSA*, uint8_t*)': spartanup/src/verifyimage-spartanup.cpp:73:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:74:45: warning: 'int EC_KEY_set_public_key_affine_coordinates(EC_KEY*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 74 | EC_KEY_set_public_key_affine_coordinates(eckeyLocal, qx, qy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1133:27: note: declared here 1133 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:75:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 75 | EC_KEY_set_asn1_flag(eckeyLocal, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:77:26: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 77 | if (!EC_KEY_check_key(eckeyLocal)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:93:29: warning: 'int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 93 | if (1 != ECDSA_do_verify(shaHash, SHA3_LENGTH_BYTES, ec_signature, eckeyLocal)) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1402:27: note: declared here 1402 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | ^~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:106:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 106 | EC_KEY_free(eckeyLocal); | ~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp: In member function 'bool SpartanupReadImage::VerifyECDSAP521Signature(bool, uint8_t*, size_t, ACKeyECDSAP521*, uint8_t*)': spartanup/src/verifyimage-spartanup.cpp:123:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 123 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:124:45: warning: 'int EC_KEY_set_public_key_affine_coordinates(EC_KEY*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 124 | EC_KEY_set_public_key_affine_coordinates(eckeyLocal, qx, qy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1133:27: note: declared here 1133 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:125:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 125 | EC_KEY_set_asn1_flag(eckeyLocal, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:127:26: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 127 | if (!EC_KEY_check_key(eckeyLocal)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:144:29: warning: 'int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 144 | if (1 != ECDSA_do_verify(shaHash, 48, ec_signature, eckeyLocal)) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1402:27: note: declared here 1402 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | ^~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:157:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 157 | EC_KEY_free(eckeyLocal); | ~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp: In member function 'bool SpartanupReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096Sha3Padding*, uint8_t*)': spartanup/src/verifyimage-spartanup.cpp:168:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 168 | rsa = RSA_new(); | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ spartanup/src/verifyimage-spartanup.cpp:174:17: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 174 | RSA_set0_key(rsa, n, e, d); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:183:33: warning: 'int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 183 | int ret = RSA_public_encrypt(SIGN_LENGTH_VERSAL, (const unsigned char*)signature, (unsigned char*)opensslHashPadded, rsa, RSA_NO_PADDING); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:292:5: note: declared here 292 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ bisonflex/cmdoptions.yy.cpp: In member function 'virtual int CO::FlexScanner::yylex()': bisonflex/cmdoptions.yy.cpp:1383:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1383 | register yy_state_type yy_current_state; | ^~~~~~~~~~~~~~~~ bisonflex/cmdoptions.yy.cpp:1384:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1384 | register char *yy_cp, *yy_bp; | ^~~~~ bisonflex/cmdoptions.yy.cpp:1384:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1384 | register char *yy_cp, *yy_bp; | ^~~~~ bisonflex/cmdoptions.yy.cpp:1385:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1385 | register int yy_act; | ^~~~~~ bisonflex/cmdoptions.yy.cpp:1451:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1451 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; | ^~~~ bisonflex/cmdoptions.yy.cpp: In member function 'int cmdoptionsFlexLexer::yy_get_next_buffer()': bisonflex/cmdoptions.yy.cpp:2757:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2757 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; | ^~~~ bisonflex/cmdoptions.yy.cpp:2758:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2758 | register char *source = (yytext_ptr); | ^~~~~~ bisonflex/cmdoptions.yy.cpp:2759:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2759 | register int number_to_move, i; | ^~~~~~~~~~~~~~ bisonflex/cmdoptions.yy.cpp:2759:38: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2759 | register int number_to_move, i; | ^ bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_get_previous_state()': bisonflex/cmdoptions.yy.cpp:2897:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2897 | register yy_state_type yy_current_state; | ^~~~~~~~~~~~~~~~ bisonflex/cmdoptions.yy.cpp:2898:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2898 | register char *yy_cp; | ^~~~~ bisonflex/cmdoptions.yy.cpp:2906:34: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2906 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); | ^~~~ bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_try_NUL_trans(yy_state_type)': bisonflex/cmdoptions.yy.cpp:2935:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2935 | register int yy_is_jam; | ^~~~~~~~~ bisonflex/cmdoptions.yy.cpp:2937:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2937 | register char *yy_cp = (yy_c_buf_p); | ^~~~~ bisonflex/cmdoptions.yy.cpp:2939:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2939 | register YY_CHAR yy_c = 1; | ^~~~ bisonflex/cmdoptions.yy.cpp: At global scope: bisonflex/cmdoptions.yy.cpp:2960:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2960 | void yyFlexLexer::yyunput( int c, register char* yy_bp) | ^~~~~ bisonflex/cmdoptions.yy.cpp: In member function 'void cmdoptionsFlexLexer::yyunput(int, char*)': bisonflex/cmdoptions.yy.cpp:2963:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2963 | register char *yy_cp; | ^~~~~ bisonflex/cmdoptions.yy.cpp:2973:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2973 | register int number_to_move = (yy_n_chars) + 2; | ^~~~~~~~~~~~~~ bisonflex/cmdoptions.yy.cpp:2974:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2974 | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ | ^~~~ bisonflex/cmdoptions.yy.cpp:2976:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2976 | register char *source = | ^~~~~~ bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': bisonflex/bif.yy.cpp:1748:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1748 | register yy_state_type yy_current_state; | ^~~~~~~~~~~~~~~~ bisonflex/bif.yy.cpp:1749:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1749 | register char *yy_cp, *yy_bp; | ^~~~~ bisonflex/bif.yy.cpp:1749:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1749 | register char *yy_cp, *yy_bp; | ^~~~~ bisonflex/bif.yy.cpp:1750:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1750 | register int yy_act; | ^~~~~~ bisonflex/bif.yy.cpp:1814:42: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 1814 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; | ^~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/bootimage.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from versal/include/imageheadertable-versal.h:29, from versal/src/imageheadertable-versal.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': bisonflex/bif.yy.cpp:3631:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3631 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; | ^~~~ bisonflex/bif.yy.cpp:3632:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3632 | register char *source = (yytext_ptr); | ^~~~~~ bisonflex/bif.yy.cpp:3633:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3633 | register int number_to_move, i; | ^~~~~~~~~~~~~~ bisonflex/bif.yy.cpp:3633:38: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3633 | register int number_to_move, i; | ^ bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_get_previous_state()': bisonflex/bif.yy.cpp:3771:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3771 | register yy_state_type yy_current_state; | ^~~~~~~~~~~~~~~~ bisonflex/bif.yy.cpp:3772:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3772 | register char *yy_cp; | ^~~~~ bisonflex/bif.yy.cpp:3780:34: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3780 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); | ^~~~ bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_try_NUL_trans(yy_state_type)': bisonflex/bif.yy.cpp:3809:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3809 | register int yy_is_jam; | ^~~~~~~~~ bisonflex/bif.yy.cpp:3811:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3811 | register char *yy_cp = (yy_c_buf_p); | ^~~~~ bisonflex/bif.yy.cpp:3813:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3813 | register YY_CHAR yy_c = 1; | ^~~~ bisonflex/bif.yy.cpp: At global scope: bisonflex/bif.yy.cpp:3834:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3834 | void yyFlexLexer::yyunput( int c, register char* yy_bp) | ^~~~~ bisonflex/bif.yy.cpp: In member function 'void bifFlexLexer::yyunput(int, char*)': bisonflex/bif.yy.cpp:3837:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3837 | register char *yy_cp; | ^~~~~ bisonflex/bif.yy.cpp:3847:30: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3847 | register int number_to_move = (yy_n_chars) + 2; | ^~~~~~~~~~~~~~ bisonflex/bif.yy.cpp:3848:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3848 | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ | ^~~~ bisonflex/bif.yy.cpp:3850:32: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 3850 | register char *source = | ^~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/src/reginit.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/include/bitutils.h:33, from versal/include/bitutils-versal.h:27, from versal/src/bitutils-versal.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/authentication-versal.cpp -o build/obj/authentication-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/bootimage-versal.cpp -o build/obj/bootimage-versal.o In file included from common/include/authentication.h:45, from versal/include/authentication-versal.h:43, from versal/src/authkeys-versal.cpp:28: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from versal/include/authkeys-versal.h:32, from versal/src/authkeys-versal.cpp:27: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from versal/include/authkeys-versal.h:30: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ versal/src/authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const std::string&)': versal/src/authkeys-versal.cpp:47:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 47 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:51:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 51 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const Key&)': versal/src/authkeys-versal.cpp:69:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 69 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:73:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp: In destructor 'virtual VersalKey::~VersalKey()': versal/src/authkeys-versal.cpp:96:20: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 96 | EC_KEY_free(eckey); | ~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal/src/authkeys-versal.cpp: In member function 'uint8_t VersalKey::ParseECDSAOpenSSLKey(const std::string&)': versal/src/authkeys-versal.cpp:269:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 269 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:270:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 270 | if (!EC_KEY_check_key(eckey)) | ~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:288:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 288 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:289:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 289 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:312:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 312 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:313:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 313 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:345:35: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 345 | eckey = PEM_read_EC_PUBKEY(file, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:346:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 346 | if (!EC_KEY_check_key(eckey)) | ~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:364:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 364 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:365:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 365 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:388:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 388 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:389:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 389 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp: In member function 'virtual void VersalKey::Parse(const std::string&, bool)': versal/src/authkeys-versal.cpp:443:39: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 443 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:450:48: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 450 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal/src/authkeys-versal.cpp:457:25: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 457 | RSA_free(rsa); | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/encryption-versal.cpp -o build/obj/encryption-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/partition-versal.cpp -o build/obj/partition-versal.o spartanup/src/verifyimage-spartanup.cpp:200:34: warning: 'this' pointer is null [-Wnonnull] 200 | if (s->MaskGenerationFunction(masK, maskedDBLen, Buffer, 48, EVP_sha384()) == -1) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from spartanup/src/verifyimage-spartanup.cpp:29: versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:185:9: note: in a call to non-static member function 'int RSA4096Sha3PaddingHBAuthenticationAlgorithm::MaskGenerationFunction(unsigned char*, long int, const unsigned char*, long int, const EVP_MD*)' 185 | int MaskGenerationFunction(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst); | ^~~~~~~~~~~~~~~~~~~~~~ spartanup/src/verifyimage-spartanup.cpp:229:32: warning: 'this' pointer is null [-Wnonnull] 229 | m1 = s -> AttachSHA3Padding(mPad, 104); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:184:14: note: in a call to non-static member function 'uint8_t* RSA4096Sha3PaddingHBAuthenticationAlgorithm::AttachSHA3Padding(uint8_t*, Binary::Length_t)' 184 | uint8_t* AttachSHA3Padding(uint8_t * data, const Binary::Length_t datalength); | ^~~~~~~~~~~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/partitionheadertable-versal.cpp -o build/obj/partitionheadertable-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/outputfile-versal.cpp -o build/obj/outputfile-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/verifyimage-versal.cpp -o build/obj/verifyimage-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal/src/checksum-versal.cpp -o build/obj/checksum-versal.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/bitutils-versal_2ve_2vm.cpp -o build/obj/bitutils-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp -o build/obj/verifyimage-versal_2ve_2vm.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal/src/encryption-versalnet.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/encryption-versal_2ve_2vm.cpp -o build/obj/encryption-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/outputfile-versal_2ve_2vm.cpp -o build/obj/outputfile-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/postprocess_versal_2ve_2vm.cpp -o build/obj/postprocess_versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/binary-versal_2ve_2vm.cpp -o build/obj/binary-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp -o build/obj/authkeys-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/partition-versal_2ve_2vm.cpp -o build/obj/partition-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp -o build/obj/authentication-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp -o build/obj/bootimage-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/readimage-versal_2ve_2vm.cpp -o build/obj/readimage-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/imageheadertable-versal_2ve_2vm.cpp -o build/obj/imageheadertable-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/bootheader-versal_2ve_2vm.cpp -o build/obj/bootheader-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/partitionheadertable-versal_2ve_2vm.cpp -o build/obj/partitionheadertable-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/checksum-versal_2ve_2vm.cpp -o build/obj/checksum-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include versal_2ve_2vm/src/Keccak-compact-versal_2ve_2vm.cpp -o build/obj/Keccak-compact-versal_2ve_2vm.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/partitionheadertable-zynq.cpp -o build/obj/partitionheadertable-zynq.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/encryption-zynq.cpp -o build/obj/encryption-zynq.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/authentication-zynq.cpp -o build/obj/authentication-zynq.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/bootimage-zynq.cpp -o build/obj/bootimage-zynq.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/readimage-zynq.cpp -o build/obj/readimage-zynq.o c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/bootheader-zynq.cpp -o build/obj/bootheader-zynq.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from versal/include/bootheader-versal.h:29, from versal/src/bootheader-versal.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynq/src/imageheadertable-zynq.cpp -o build/obj/imageheadertable-zynq.o In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from common/include/bifoptions.h:30, from versal/src/binary-versal.cpp:31: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authkeys.h:33, from common/include/bifoptions.h:29: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authkeys.h:31: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal/include/bootimage-versal.h:28, from versal/src/bootimage-versal.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from versal/include/authentication-versal.h:43, from versal/src/authentication-versal.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from versal/include/authentication-versal.h:38: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from versal/include/authentication-versal.h:36: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/encryption-zynqmp.cpp -o build/obj/encryption-zynqmp.o versal/src/bootimage-versal.cpp: In member function 'virtual void VersalBootImage::Add(BifOptions*)': versal/src/bootimage-versal.cpp:1263:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1263 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ versal/src/bootimage-versal.cpp:1271:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1271 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp: In member function 'void ECDSAAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': versal/src/authentication-versal.cpp:1128:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1128 | EC_KEY* eckeyN = EC_KEY_new(); | ~~~~~~~~~~^~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:979:31: note: declared here 979 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ versal/src/authentication-versal.cpp:1130:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1130 | EC_KEY_set_group(eckeyN, ecgroup); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1053:27: note: declared here 1053 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); | ^~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1131:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1131 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1134:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1134 | prv = EC_KEY_get0_private_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1059:37: note: declared here 1059 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1135:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1135 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1138:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1138 | EC_KEY_set_private_key(eckeyN, prv); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1067:27: note: declared here 1067 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1139:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1139 | EC_KEY_set_public_key(eckeyN, pub); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1081:27: note: declared here 1081 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); | ^~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1142:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1142 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1376:34: note: declared here 1376 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, | ^~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1174:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1174 | EC_KEY_free(eckeyN); | ~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal/src/authentication-versal.cpp: In member function 'void ECDSAP521AuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': versal/src/authentication-versal.cpp:1181:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1181 | EC_KEY* eckeyN = EC_KEY_new(); | ~~~~~~~~~~^~ /usr/include/openssl/ec.h:979:31: note: declared here 979 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ versal/src/authentication-versal.cpp:1183:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1183 | EC_KEY_set_group(eckeyN, ecgroup); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1053:27: note: declared here 1053 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); | ^~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1184:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1184 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1187:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1187 | prv = EC_KEY_get0_private_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1059:37: note: declared here 1059 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1188:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1188 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1191:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1191 | EC_KEY_set_private_key(eckeyN, prv); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ versal/src/bootimage-versal.cpp: In member function 'virtual void VersalBootImage::OutputOptionalEfuseHash()': versal/src/bootimage-versal.cpp:1693:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1693 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1067:27: note: declared here 1067 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1192:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1192 | EC_KEY_set_public_key(eckeyN, pub); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1081:27: note: declared here 1081 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); | ^~~~~~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1195:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1195 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1376:34: note: declared here 1376 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, | ^~~~~~~~~~~~~ versal/src/bootimage-versal.cpp:1701:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1701 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal/src/bootimage-versal.cpp:1718:60: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1718 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal/src/bootimage-versal.cpp:1719:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1719 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1045:39: note: declared here 1045 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ versal/src/authentication-versal.cpp:1284:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1284 | EC_KEY_free(eckeyN); | ~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal/src/bootimage-versal.cpp:1766:63: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1766 | EC_KEY *eckeyLocal = PEM_read_ECPrivateKey(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/bootimage-versal.cpp:1767:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1767 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1045:39: note: declared here 1045 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal/src/encryption-versal.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal/src/partition-versal.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from versal/include/readimage-versal.h:30, from versal/src/verifyimage-versal.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal/src/outputfile-versal.cpp:29: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from versal/include/partitionheadertable-versal.h:28, from versal/src/partitionheadertable-versal.cpp:22: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from common/include/bitutils.h:33, from versal_2ve_2vm/include/bitutils-versal_2ve_2vm.h:27, from versal_2ve_2vm/src/bitutils-versal_2ve_2vm.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/readimage-zynqmp.cpp -o build/obj/readimage-zynqmp.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal/include/checksum-versal.h:27, from versal/src/checksum-versal.cpp:18: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/verifyimage-zynqmp.cpp -o build/obj/verifyimage-zynqmp.o versal/src/verifyimage-versal.cpp: In member function 'bool VersalReadImage::VerifyECDSASignature(bool, uint8_t*, size_t, ACKeyECDSAp*, uint8_t*)': versal/src/verifyimage-versal.cpp:72:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 72 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from versal_2ve_2vm/include/readimage-versal_2ve_2vm.h:31, from versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ versal/src/verifyimage-versal.cpp:73:45: warning: 'int EC_KEY_set_public_key_affine_coordinates(EC_KEY*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | EC_KEY_set_public_key_affine_coordinates(eckeyLocal, qx, qy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1133:27: note: declared here 1133 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:74:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 74 | EC_KEY_set_asn1_flag(eckeyLocal, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:76:26: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 76 | if (!EC_KEY_check_key(eckeyLocal)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:92:29: warning: 'int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 92 | if (1 != ECDSA_do_verify(shaHash, SHA3_LENGTH_BYTES, ec_signature, eckeyLocal)) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1402:27: note: declared here 1402 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | ^~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:105:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 105 | EC_KEY_free(eckeyLocal); | ~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal/src/verifyimage-versal.cpp: In member function 'bool VersalReadImage::VerifyECDSAP521Signature(bool, uint8_t*, size_t, ACKeyECDSApP521*, uint8_t*)': versal/src/verifyimage-versal.cpp:122:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 122 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:123:45: warning: 'int EC_KEY_set_public_key_affine_coordinates(EC_KEY*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 123 | EC_KEY_set_public_key_affine_coordinates(eckeyLocal, qx, qy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1133:27: note: declared here 1133 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:124:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 124 | EC_KEY_set_asn1_flag(eckeyLocal, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:126:26: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | if (!EC_KEY_check_key(eckeyLocal)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from versal_2ve_2vm/include/bootheader-versal_2ve_2vm.h:29, from versal_2ve_2vm/src/encryption-versal_2ve_2vm.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ versal/src/verifyimage-versal.cpp:143:29: warning: 'int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 143 | if (1 != ECDSA_do_verify(shaHash, 48, ec_signature, eckeyLocal)) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1402:27: note: declared here 1402 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | ^~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:156:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 156 | EC_KEY_free(eckeyLocal); | ~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal/src/verifyimage-versal.cpp: In member function 'bool VersalReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096Sha3Padding*, uint8_t*)': versal/src/verifyimage-versal.cpp:167:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 167 | rsa = RSA_new(); | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ versal/src/verifyimage-versal.cpp:173:17: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 173 | RSA_set0_key(rsa, n, e, d); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:182:33: warning: 'int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 182 | int ret = RSA_public_encrypt(SIGN_LENGTH_VERSAL, (const unsigned char*)signature, (unsigned char*)opensslHashPadded, rsa, RSA_NO_PADDING); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:292:5: note: declared here 292 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from common/include/bifoptions.h:30, from versal_2ve_2vm/src/binary-versal_2ve_2vm.cpp:31: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authkeys.h:33, from common/include/bifoptions.h:29: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authkeys.h:31: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/imageheadertable-zynqmp.cpp -o build/obj/imageheadertable-zynqmp.o In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from versal/include/imageheadertable-versal.h:29, from versal_2ve_2vm/src/postprocess_versal_2ve_2vm.cpp:18: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal_2ve_2vm/src/outputfile-versal_2ve_2vm.cpp:29: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp: In member function 'bool Versal_2ve_2vmReadImage::VerifyECDSASignature(bool, uint8_t*, size_t, ACKeyECDSA*, uint8_t*)': versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:72:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 72 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:73:45: warning: 'int EC_KEY_set_public_key_affine_coordinates(EC_KEY*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | EC_KEY_set_public_key_affine_coordinates(eckeyLocal, qx, qy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1133:27: note: declared here 1133 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:74:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 74 | EC_KEY_set_asn1_flag(eckeyLocal, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:76:26: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 76 | if (!EC_KEY_check_key(eckeyLocal)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:92:29: warning: 'int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 92 | if (1 != ECDSA_do_verify(shaHash, SHA3_LENGTH_BYTES, ec_signature, eckeyLocal)) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1402:27: note: declared here 1402 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | ^~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:105:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 105 | EC_KEY_free(eckeyLocal); | ~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp: In member function 'bool Versal_2ve_2vmReadImage::VerifyECDSAP521Signature(bool, uint8_t*, size_t, ACKeyECDSAP521*, uint8_t*)': versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:122:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 122 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:123:45: warning: 'int EC_KEY_set_public_key_affine_coordinates(EC_KEY*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 123 | EC_KEY_set_public_key_affine_coordinates(eckeyLocal, qx, qy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1133:27: note: declared here 1133 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:124:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 124 | EC_KEY_set_asn1_flag(eckeyLocal, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:126:26: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | if (!EC_KEY_check_key(eckeyLocal)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:143:29: warning: 'int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 143 | if (1 != ECDSA_do_verify(shaHash, 48, ec_signature, eckeyLocal)) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1402:27: note: declared here 1402 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | ^~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:156:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 156 | EC_KEY_free(eckeyLocal); | ~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp: In member function 'bool Versal_2ve_2vmReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096Sha3Padding*, uint8_t*)': versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:167:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 167 | rsa = RSA_new(); | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:173:17: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 173 | RSA_set0_key(rsa, n, e, d); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:182:33: warning: 'int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 182 | int ret = RSA_public_encrypt(SIGN_LENGTH_VERSAL, (const unsigned char*)signature, (unsigned char*)opensslHashPadded, rsa, RSA_NO_PADDING); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:292:5: note: declared here 292 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal_2ve_2vm/src/partition-versal_2ve_2vm.cpp:25: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from versal_2ve_2vm/include/imageheadertable-versal_2ve_2vm.h:30, from versal_2ve_2vm/src/imageheadertable-versal_2ve_2vm.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal_2ve_2vm/include/bootimage-versal_2ve_2vm.h:28, from versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/lms.h:35, from versal_2ve_2vm/include/authkeys-versal_2ve_2vm.h:35, from versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:40, from versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:38: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:36: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from versal_2ve_2vm/include/readimage-versal_2ve_2vm.h:31, from versal_2ve_2vm/src/readimage-versal_2ve_2vm.cpp:34: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from versal_2ve_2vm/include/bootheader-versal_2ve_2vm.h:29, from versal_2ve_2vm/src/bootheader-versal_2ve_2vm.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/bootheader-zynqmp.cpp -o build/obj/bootheader-zynqmp.o versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp: In member function 'virtual void Versal_2ve_2vmBootImage::Add(BifOptions*)': versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1292:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1292 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1300:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1300 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/partitionheadertable-zynqmp.cpp -o build/obj/partitionheadertable-zynqmp.o versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp: In member function 'virtual void Versal_2ve_2vmBootImage::OutputOptionalEfuseHash()': versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1726:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1726 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1734:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1734 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1751:60: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1751 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1752:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1752 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1045:39: note: declared here 1045 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1803:63: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1803 | EC_KEY *eckeyLocal = PEM_read_ECPrivateKey(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/bootimage-versal_2ve_2vm.cpp:1804:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1804 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/openssl/ec.h:1045:39: note: declared here 1045 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from versal_2ve_2vm/include/partitionheadertable-versal_2ve_2vm.h:28, from versal_2ve_2vm/src/partitionheadertable-versal_2ve_2vm.cpp:22: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/lms.h:35, from versal_2ve_2vm/include/authkeys-versal_2ve_2vm.h:35, from versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:27: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from versal_2ve_2vm/include/authkeys-versal_2ve_2vm.h:32: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from versal_2ve_2vm/include/authkeys-versal_2ve_2vm.h:30: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp: In constructor 'Versal_2ve_2vmKey::Versal_2ve_2vmKey(const std::string&)': versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:47:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 47 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:51:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 51 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp: In constructor 'Versal_2ve_2vmKey::Versal_2ve_2vmKey(const Key&)': versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:69:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 69 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:73:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 73 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1009:31: note: declared here 1009 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp: In destructor 'virtual Versal_2ve_2vmKey::~Versal_2ve_2vmKey()': versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:96:20: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 96 | EC_KEY_free(eckey); | ~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp: In member function 'uint8_t Versal_2ve_2vmKey::ParseECDSAOpenSSLKey(const std::string&)': versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:297:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 297 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:472:1: note: declared here 472 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:298:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 298 | if (!EC_KEY_check_key(eckey)) | ~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:316:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 316 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:317:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 317 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:340:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 340 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:341:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 341 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:373:35: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 373 | eckey = PEM_read_EC_PUBKEY(file, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:374:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 374 | if (!EC_KEY_check_key(eckey)) | ~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1118:27: note: declared here 1118 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:392:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 392 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:393:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 393 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:416:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 416 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:417:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 417 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:675:27: note: declared here 675 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *p, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp: In member function 'virtual void Versal_2ve_2vmKey::Parse(const std::string&, bool)': versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:504:39: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 504 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:459:1: note: declared here 459 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:511:48: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 511 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/pem.h:473:1: note: declared here 473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) | ^~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authkeys-versal_2ve_2vm.cpp:518:25: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 518 | RSA_free(rsa); | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp: In member function 'void ECDSAHBAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1649:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1649 | EC_KEY* eckeyN = EC_KEY_new(); | ~~~~~~~~~~^~ In file included from /usr/include/openssl/x509.h:35: /usr/include/openssl/ec.h:979:31: note: declared here 979 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1651:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1651 | EC_KEY_set_group(eckeyN, ecgroup); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1053:27: note: declared here 1053 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); | ^~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1652:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1652 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1655:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1655 | prv = EC_KEY_get0_private_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1059:37: note: declared here 1059 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1656:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1656 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1659:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1659 | EC_KEY_set_private_key(eckeyN, prv); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1067:27: note: declared here 1067 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1660:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1660 | EC_KEY_set_public_key(eckeyN, pub); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1081:27: note: declared here 1081 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); | ^~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1663:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1663 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1376:34: note: declared here 1376 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, | ^~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1695:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1695 | EC_KEY_free(eckeyN); | ~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp: In member function 'void ECDSAP521HBAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1702:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1702 | EC_KEY* eckeyN = EC_KEY_new(); | ~~~~~~~~~~^~ /usr/include/openssl/ec.h:979:31: note: declared here 979 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1704:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1704 | EC_KEY_set_group(eckeyN, ecgroup); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1053:27: note: declared here 1053 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); | ^~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1705:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1705 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1098:28: note: declared here 1098 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | ^~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1708:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1708 | prv = EC_KEY_get0_private_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1059:37: note: declared here 1059 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1709:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1709 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1073:39: note: declared here 1073 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1712:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1712 | EC_KEY_set_private_key(eckeyN, prv); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1067:27: note: declared here 1067 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1713:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1713 | EC_KEY_set_public_key(eckeyN, pub); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1081:27: note: declared here 1081 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); | ^~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1716:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1716 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1376:34: note: declared here 1376 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, | ^~~~~~~~~~~~~ versal_2ve_2vm/src/authentication-versal_2ve_2vm.cpp:1805:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1805 | EC_KEY_free(eckeyN); | ~~~~~~~~~~~^~~~~~~~ /usr/include/openssl/ec.h:1014:28: note: declared here 1014 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ versal/src/verifyimage-versal.cpp:199:34: warning: 'this' pointer is null [-Wnonnull] 199 | if (s->MaskGenerationFunction(masK, maskedDBLen, Buffer, 48, EVP_sha384()) == -1) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from versal/include/readimage-versal.h:35: versal/include/authentication-versal.h:244:9: note: in a call to non-static member function 'int RSA4096Sha3PaddingAuthenticationAlgorithm::MaskGenerationFunction(unsigned char*, long int, const unsigned char*, long int, const EVP_MD*)' 244 | int MaskGenerationFunction(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst); | ^~~~~~~~~~~~~~~~~~~~~~ versal/src/verifyimage-versal.cpp:228:32: warning: 'this' pointer is null [-Wnonnull] 228 | m1 = s -> AttachSHA3Padding(mPad, 104); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ versal/include/authentication-versal.h:243:14: note: in a call to non-static member function 'uint8_t* RSA4096Sha3PaddingAuthenticationAlgorithm::AttachSHA3Padding(uint8_t*, Binary::Length_t)' 243 | uint8_t* AttachSHA3Padding(uint8_t * data, const Binary::Length_t datalength); | ^~~~~~~~~~~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/authentication-zynqmp.cpp -o build/obj/authentication-zynqmp.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from versal_2ve_2vm/include/checksum-versal_2ve_2vm.h:27, from versal_2ve_2vm/src/checksum-versal_2ve_2vm.cpp:18: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include zynqmp/src/bootimage-zynqmp.cpp -o build/obj/bootimage-zynqmp.o common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/encryptutils.cpp -o build/obj/encryptutils.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from zynq/src/encryption-zynq.cpp:37: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ c++ -c -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/elftools.cpp -o build/obj/elftools.o versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:199:34: warning: 'this' pointer is null [-Wnonnull] 199 | if (s->MaskGenerationFunction(masK, maskedDBLen, Buffer, 48, EVP_sha384()) == -1) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from versal_2ve_2vm/include/readimage-versal_2ve_2vm.h:36: versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:185:9: note: in a call to non-static member function 'int RSA4096Sha3PaddingHBAuthenticationAlgorithm::MaskGenerationFunction(unsigned char*, long int, const unsigned char*, long int, const EVP_MD*)' 185 | int MaskGenerationFunction(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst); | ^~~~~~~~~~~~~~~~~~~~~~ versal_2ve_2vm/src/verifyimage-versal_2ve_2vm.cpp:228:32: warning: 'this' pointer is null [-Wnonnull] 228 | m1 = s -> AttachSHA3Padding(mPad, 104); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ versal_2ve_2vm/include/authentication-versal_2ve_2vm.h:184:14: note: in a call to non-static member function 'uint8_t* RSA4096Sha3PaddingHBAuthenticationAlgorithm::AttachSHA3Padding(uint8_t*, Binary::Length_t)' 184 | uint8_t* AttachSHA3Padding(uint8_t * data, const Binary::Length_t datalength); | ^~~~~~~~~~~~~~~~~ cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-raw.c -o build/obj/cdo-raw.o cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-binary.c -o build/obj/cdo-binary.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from zynq/include/bootimage-zynq.h:29, from zynq/src/bootimage-zynq.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from zynq/include/authentication-zynq.h:27, from zynq/src/authentication-zynq.cpp:28: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from zynq/include/bootheader-zynq.h:28, from zynq/src/bootheader-zynq.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from zynq/include/partitionheadertable-zynq.h:29, from zynq/src/partitionheadertable-zynq.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from zynq/include/readimage-zynq.h:30, from zynq/src/readimage-zynq.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-alloc.c -o build/obj/cdo-alloc.o In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/fips202.c -o build/obj/fips202.o cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-load.c -o build/obj/cdo-load.o cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-command.c -o build/obj/cdo-command.o cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-source.c -o build/obj/cdo-source.o cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cJSON.c -o build/obj/cJSON.o cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-npi.c -o build/obj/cdo-npi.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from zynq/include/partitionheadertable-zynq.h:29, from zynq/include/imageheadertable-zynq.h:29, from zynq/src/imageheadertable-zynq.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-overlay.c -o build/obj/cdo-overlay.o common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ cc -c -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -lpthread -I bisonflex -I common/include -I spartanup/include -I versal/include -I versal_2ve_2vm/include -I zynq/include -I zynqmp/include -I utils/include -I lms-hash-sigs -I win_include utils/src/cdo-metadata.c -o build/obj/cdo-metadata.o In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from zynqmp/src/encryption-zynqmp.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from zynqmp/include/readimage-zynqmp.h:33, from zynqmp/src/readimage-zynqmp.cpp:24: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from zynqmp/include/partitionheadertable-zynqmp.h:28, from zynqmp/include/imageheadertable-zynqmp.h:29, from zynqmp/src/imageheadertable-zynqmp.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/readimage.h:33, from zynqmp/include/readimage-zynqmp.h:33, from zynqmp/src/verifyimage-zynqmp.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp: In member function 'bool ZynqMpReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096*, uint8_t*)': zynqmp/src/verifyimage-zynqmp.cpp:95:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | rsa = RSA_new(); | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp:113:17: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 113 | RSA_set0_key(rsa, n, e, d); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp:114:44: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 114 | RearrangeEndianess((uint8_t*)RSA_get0_e(rsa)->d, sizeof(uint32_t)); | ~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp:115:44: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 115 | RearrangeEndianess((uint8_t*)RSA_get0_n(rsa)->d, RSA_4096_KEY_LENGTH); | ~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp:126:27: warning: 'int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | if (RSA_public_encrypt(RSA_4096_KEY_LENGTH, signature, (unsigned char*)opensslHashPadded, rsa, RSA_NO_PADDING) < 0) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:292:5: note: declared here 292 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp:132:44: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 132 | RearrangeEndianess((uint8_t*)RSA_get0_n(rsa)->d, RSA_4096_KEY_LENGTH); | ~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ zynqmp/src/verifyimage-zynqmp.cpp:133:44: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 133 | RearrangeEndianess((uint8_t*)RSA_get0_e(rsa)->d, sizeof(uint32_t)); | ~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootheader.h:31, from zynqmp/include/bootheader-zynqmp.h:29, from zynqmp/src/bootheader-zynqmp.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from zynqmp/include/partitionheadertable-zynqmp.h:28, from zynqmp/src/partitionheadertable-zynqmp.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/imageheadertable.h:32, from utils/src/elftools.cpp:26: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from zynqmp/include/authentication-zynqmp.h:28, from zynqmp/src/authentication-zynqmp.cpp:28: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from common/include/authentication.h:45, from common/include/partitionheadertable.h:29, from common/include/bootimage.h:36, from zynqmp/include/bootimage-zynqmp.h:29, from zynqmp/src/bootimage-zynqmp.cpp:23: common/include/hash.h: In member function 'virtual void HashSha2::InitHash()': common/include/hash.h:126:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:43, from /usr/include/openssl/pem.h:23, from common/include/authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ common/include/authentication.h: In destructor 'RSA_Class::~RSA_Class()': common/include/authentication.h:151:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 151 | RSA_free(rsa); | ~~~~~~~~^~~~~ In file included from common/include/authentication.h:34: /usr/include/openssl/rsa.h:303:28: note: declared here 303 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ echo Building executable file: build/bin/bootgen... Building executable file: build/bin/bootgen... cd lms-hash-sigs && make hss_lib_thread.a make[1]: Entering directory '/home/buildozer/aports/community/xilinx_bootgen/src/bootgen-xilinx_v2025.2/lms-hash-sigs' cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c -o lms_sign.o lms_sign.c cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c -o lms_keys.o lms_keys.c cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss.c -o hss.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_alloc.c -o hss_alloc.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_aux.c -o hss_aux.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_common.c -o hss_common.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_compute.c -o hss_compute.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_generate.c -o hss_generate.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_keygen.c -o hss_keygen.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_param.c -o hss_param.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_reserve.c -o hss_reserve.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_sign.c -o hss_sign.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_sign_inc.c -o hss_sign_inc.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_thread_pthread.c -o hss_thread_pthread.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_verify.c -o hss_verify.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_verify_inc.c -o hss_verify_inc.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_derive.c -o hss_derive.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c hss_zeroize.c -o hss_zeroize.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c lm_common.c -o lm_common.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c lm_ots_common.c -o lm_ots_common.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c lm_ots_sign.c -o lm_ots_sign.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c lm_ots_verify.c -o lm_ots_verify.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c lm_verify.c -o lm_verify.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c endian.c -o endian.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c lms_hash.c -o lms_hash.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c sha256.c -o sha256.o cc -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -c fips202.c -o fips202.o lms_hash.c: In function 'hss_hash_ctx': lms_hash.c:44:9: warning: 'SHA256_Init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 44 | SHA256_Init(&ctx->sha256); | ^~~~~~~~~~~ In file included from sha256.h:13, from lms_hash.h:3, from lms_hash.c:2: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ lms_hash.c:45:9: warning: 'SHA256_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 45 | SHA256_Update(&ctx->sha256, message, message_len); | ^~~~~~~~~~~~~ /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, | ^~~~~~~~~~~~~ lms_hash.c:46:9: warning: 'SHA256_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 46 | SHA256_Final(result, &ctx->sha256); | ^~~~~~~~~~~~ /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); | ^~~~~~~~~~~~ lms_hash.c:52:9: warning: 'SHA256_Init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 52 | SHA256_Init(&ctx->sha256); | ^~~~~~~~~~~ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ lms_hash.c:53:9: warning: 'SHA256_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 53 | SHA256_Update(&ctx->sha256, message, message_len); | ^~~~~~~~~~~~~ /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, | ^~~~~~~~~~~~~ lms_hash.c:54:9: warning: 'SHA256_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 54 | SHA256_Final(temp, &ctx->sha256); | ^~~~~~~~~~~~ /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); | ^~~~~~~~~~~~ lms_hash.c: In function 'hss_init_hash_context': lms_hash.c:92:9: warning: 'SHA256_Init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 92 | SHA256_Init( &ctx->sha256 ); | ^~~~~~~~~~~ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ lms_hash.c: In function 'hss_update_hash_context': lms_hash.c:109:9: warning: 'SHA256_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 109 | SHA256_Update(&ctx->sha256, msg, len_msg); | ^~~~~~~~~~~~~ /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, | ^~~~~~~~~~~~~ lms_hash.c: In function 'hss_finalize_hash_context': lms_hash.c:121:9: warning: 'SHA256_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 121 | SHA256_Final(buffer, &ctx->sha256); | ^~~~~~~~~~~~ /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); | ^~~~~~~~~~~~ lms_hash.c:126:9: warning: 'SHA256_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | SHA256_Final(temp, &ctx->sha256); | ^~~~~~~~~~~~ /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); | ^~~~~~~~~~~~ lms_keys.c: In function 'LmsKeyGeneration': lms_keys.c:388:86: warning: '%s' directive argument is null [-Wformat-overflow=] 388 | fprintf(stderr, "[WARNING] : Close failed writing aux file - %s\n", aux_filename); | ^~ lms_keys.c:381:81: warning: '%s' directive argument is null [-Wformat-overflow=] 381 | fprintf(stderr, "[WARNING] : Unable to write aux file - %s\n", aux_filename); | ^~ lms_keys.c:376:81: warning: '%s' directive argument is null [-Wformat-overflow=] 376 | fprintf(stderr, "[WARNING] : Unable to write aux file - %s\n", aux_filename); | ^~ lms_keys.c:364:91: warning: '%s' directive argument is null [-Wformat-overflow=] 364 | fprintf(stderr, "[WARNING] : malloc failure writing to aux file - %s\n", aux_filename); | ^~ lms_keys.c:347:79: warning: '%s' directive argument is null [-Wformat-overflow=] 347 | fprintf(stderr, "[ERROR] : Unable to close public key file - %s\n", public_key_filename); | ^~ lms_keys.c:336:74: warning: '%s' directive argument is null [-Wformat-overflow=] 336 | fprintf(stderr, "[ERROR] : Unable to write public key - %s\n", public_key_filename); | ^~ ar rcs hss_lib_thread.a lms_sign.o lms_keys.o hss.o hss_alloc.o hss_aux.o hss_common.o hss_compute.o hss_generate.o hss_keygen.o hss_param.o hss_reserve.o hss_sign.o hss_sign_inc.o hss_thread_pthread.o hss_verify.o hss_verify_inc.o hss_derive.o hss_zeroize.o lm_common.o lm_ots_common.o lm_ots_sign.o lm_ots_verify.o lm_verify.o endian.o lms_hash.o sha256.o fips202.o make[1]: Leaving directory '/home/buildozer/aports/community/xilinx_bootgen/src/bootgen-xilinx_v2025.2/lms-hash-sigs' c++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fno-plt -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs -o build/bin/bootgen build/obj/bif.tab.o build/obj/bif.yy.o build/obj/reginit.tab.o build/obj/reginit.yy.o build/obj/cmdoptions.tab.o build/obj/cmdoptions.yy.o build/obj/Keccak-compact.o build/obj/partition.o build/obj/mcsfile.o build/obj/reginit.o build/obj/bootheader.o build/obj/bitutils.o build/obj/binary.o build/obj/encryption.o build/obj/outputfile.o build/obj/parsing.o build/obj/kdf.o build/obj/readimage.o build/obj/logger.o build/obj/imageheadertable.o build/obj/bifoptions.o build/obj/authkeys.o build/obj/main.o build/obj/binfile.o build/obj/options.o build/obj/authentication.o build/obj/postprocess.o build/obj/partitionheadertable.o build/obj/checksum.o build/obj/hash.o build/obj/bootimage.o build/obj/binary-spartanup.o build/obj/partition-spartanup.o build/obj/outputfile-spartanup.o build/obj/bitutils-spartanup.o build/obj/encryption-spartanup.o build/obj/verifyimage-spartanup.o build/obj/Keccak-compact-spartanup.o build/obj/imageheadertable-spartanup.o build/obj/authkeys-spartanup.o build/obj/authentication-spartanup.o build/obj/checksum-spartanup.o build/obj/bootimage-spartanup.o build/obj/readimage-spartanup.o build/obj/partitionheadertable-spartanup.o build/obj/bootheader-spartanup.o build/obj/readimage-versal.o build/obj/imageheadertable-versal.o build/obj/bitutils-versal.o build/obj/Keccak-compact-versal.o build/obj/authkeys-versal.o build/obj/encryption-versalnet.o build/obj/bootheader-versal.o build/obj/binary-versal.o build/obj/authentication-versal.o build/obj/bootimage-versal.o build/obj/encryption-versal.o build/obj/partition-versal.o build/obj/partitionheadertable-versal.o build/obj/outputfile-versal.o build/obj/verifyimage-versal.o build/obj/checksum-versal.o build/obj/bitutils-versal_2ve_2vm.o build/obj/verifyimage-versal_2ve_2vm.o build/obj/encryption-versal_2ve_2vm.o build/obj/outputfile-versal_2ve_2vm.o build/obj/postprocess_versal_2ve_2vm.o build/obj/binary-versal_2ve_2vm.o build/obj/authkeys-versal_2ve_2vm.o build/obj/partition-versal_2ve_2vm.o build/obj/authentication-versal_2ve_2vm.o build/obj/bootimage-versal_2ve_2vm.o build/obj/readimage-versal_2ve_2vm.o build/obj/imageheadertable-versal_2ve_2vm.o build/obj/bootheader-versal_2ve_2vm.o build/obj/partitionheadertable-versal_2ve_2vm.o build/obj/checksum-versal_2ve_2vm.o build/obj/Keccak-compact-versal_2ve_2vm.o build/obj/partitionheadertable-zynq.o build/obj/encryption-zynq.o build/obj/authentication-zynq.o build/obj/bootimage-zynq.o build/obj/readimage-zynq.o build/obj/bootheader-zynq.o build/obj/imageheadertable-zynq.o build/obj/encryption-zynqmp.o build/obj/readimage-zynqmp.o build/obj/verifyimage-zynqmp.o build/obj/imageheadertable-zynqmp.o build/obj/bootheader-zynqmp.o build/obj/partitionheadertable-zynqmp.o build/obj/authentication-zynqmp.o build/obj/bootimage-zynqmp.o build/obj/encryptutils.o build/obj/elftools.o build/obj/cdo-raw.o build/obj/cdo-binary.o build/obj/cdo-alloc.o build/obj/fips202.o build/obj/cdo-load.o build/obj/cdo-command.o build/obj/cdo-source.o build/obj/cJSON.o build/obj/cdo-npi.o build/obj/cdo-overlay.o build/obj/cdo-metadata.o lms-hash-sigs/hss_lib_thread.a -lpthread -lssl -lcrypto ****** Bootgen v2025.1-Merged **** Build date : Mar 21 2026-17:52:25 ** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved. ** Copyright 2022-2025 Advanced Micro Devices, Inc. All Rights Reserved. ------------------------------------------------------------------------------+ COMMAND LINE OPTIONS | ------------------------------------------------------------------------------+ arch - Device Architecture | bif_help - Print the BIF help summary | dual_ospi_mode - Generate 2 output files for Dual OSPI | dual_qspi_mode - Generate 2 output files for Dual QSPI | dump - Dumps components from PDI as bin files | dump_dir - Dumps components in specified directory | efuseppkbits - Generate PPK hash for e-fuse | encrypt - AES Key storage on device | encryption_dump - Generate encryption log file | fill - Fill byte for padding | generate_hashes - Generate SHA hashes (PKCS#1v1.5) | generate_keys - Generate authentication keys | help - Print the help summary | image - Input Boot Image File (.bif) | log - Generate log file | nonbooting - Generate an intermediate boot image | o - Output filename in MCS/BIN format | overlay_cdo - Overlay CDO files of Boot Image File | p - Part name for generating nky file | padimageheader - Pad header tables | process_bitstream - Outputs bitstream in bin/mcs format | read - Dumps the header tables in human readable form | authenticatedjtag - Generate a Image to authenticate PSK and enable jtag | split - Split partitions to diff files | spksignature - Generate SPK signature file | verify - Verify BootImage authentication | verify_kdf - Verify AES key generation | w - Overwrite mode | zynqmpes1 - Generate boot image for ZynqMP ES1 | ------------------------------------------------------------------------------+ Note : Some options are valid only for specific architectures. | Help for such options include a list of supported architectures. | If an option is supported for all architectures, this list is not | included in help | Example : Supported architectures : zynqmp, versal | ------------------------------------------------------------------------------+ For more information on bootgen options, use the command | bootgen -help