Diff of the two buildlogs: -- --- b1/build.log 2024-04-02 09:54:39.426384320 +0000 +++ b2/build.log 2024-04-02 09:56:05.190717488 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Apr 1 21:53:25 -12 2024 -I: pbuilder-time-stamp: 1712051605 +I: Current time: Tue May 6 06:17:46 +14 2025 +I: pbuilder-time-stamp: 1746461866 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,54 +26,86 @@ dpkg-source: info: unpacking xilinx-bootgen_2022.2-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/12474/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/D01_modify_environment starting +debug: Running on ionos6-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 5 16:18 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=21 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='53064de996a540b1b75b025615480d32' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='12474' - PS1='# ' - PS2='> ' + INVOCATION_ID=8f10511243c344f295cad433df4d72e2 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=11938 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Cgbc3x3x/pbuilderrc_hyFY --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Cgbc3x3x/b1 --logfile b1/build.log xilinx-bootgen_2022.2-2.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Cgbc3x3x/pbuilderrc_82Kd --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Cgbc3x3x/b2 --logfile b2/build.log xilinx-bootgen_2022.2-2.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos2-i386 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Apr 2 07:42 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/12474/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 4 14:06 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -142,7 +174,7 @@ Get: 29 http://deb.debian.org/debian unstable/main i386 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian unstable/main i386 debhelper all 13.15.3 [901 kB] Get: 31 http://deb.debian.org/debian unstable/main i386 libssl-dev i386 3.1.5-1.1 [2503 kB] -Fetched 21.8 MB in 0s (56.5 MB/s) +Fetched 21.8 MB in 0s (84.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19703 files and directories currently installed.) @@ -281,7 +313,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/xilinx-bootgen-2022.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../xilinx-bootgen_2022.2-2_source.changes +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/xilinx-bootgen-2022.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../xilinx-bootgen_2022.2-2_source.changes dpkg-buildpackage: info: source package xilinx-bootgen dpkg-buildpackage: info: source version 2022.2-2 dpkg-buildpackage: info: source distribution unstable @@ -291,7 +327,7 @@ debian/rules clean dh clean --with autoreconf --exclude=.la dh_auto_clean -O--exclude=.la - make -j8 clean + make -j21 clean make[1]: Entering directory '/build/reproducible-path/xilinx-bootgen-2022.2' echo @@ -316,7 +352,7 @@ dh_auto_configure -- --enable-static make[1]: Leaving directory '/build/reproducible-path/xilinx-bootgen-2022.2' dh_auto_build -O--exclude=.la - make -j8 "INSTALL=install --strip-program=true" + make -j21 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/reproducible-path/xilinx-bootgen-2022.2' g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. Keccak-compact-versal.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. Keccak-compact.cpp @@ -328,9 +364,22 @@ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. authkeys.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bif.tab.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bif.yy.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bifoptions.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binary-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binary.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binfile.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-zynqmp.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynqmp.cpp In file included from authentication.h:43, - from authentication-zynq.h:26, - from authentication-zynq.cpp:27: + from authentication-zynqmp.h:27, + from authentication-zynqmp.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -349,175 +398,39 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication-versal.h:40, - from authkeys-versal.cpp:27: +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from bootheader-zynqmp.h:28, + from bootheader-zynqmp.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys-versal.h:31, - from authkeys-versal.cpp:26: + from authentication.h:35: /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 authentication-versal.h:42: authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys-versal.h:29: -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const std::string&)': -authkeys-versal.cpp:46:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 46 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/x509.h:33: -/usr/include/openssl/ec.h:1001:31: note: declared here - 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:50:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 50 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1001:31: note: declared here - 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const Key&)': -authkeys-versal.cpp:68:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 68 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1001:31: note: declared here - 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:72:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 72 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1001:31: note: declared here - 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp: In destructor 'virtual VersalKey::~VersalKey()': -authkeys-versal.cpp:95:20: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | EC_KEY_free(eckey); - | ~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1006:28: note: declared here - 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -authkeys-versal.cpp: In member function 'uint8_t VersalKey::ParseECDSAOpenSSLKey(const std::string&)': -authkeys-versal.cpp:268:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 268 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:465:1: note: declared here - 465 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:269:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 269 | if (!EC_KEY_check_key(eckey)) - | ~~~~~~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1110:27: note: declared here - 1110 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~ -authkeys-versal.cpp:287:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 287 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1065:39: note: declared here - 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:288: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] - 288 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:662:27: note: declared here - 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:311:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 311 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1065:39: note: declared here - 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:312: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] - 312 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:662:27: note: declared here - 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:344: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] - 344 | eckey = PEM_read_EC_PUBKEY(file, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:466:1: note: declared here - 466 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:345:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 345 | if (!EC_KEY_check_key(eckey)) - | ~~~~~~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1110:27: note: declared here - 1110 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~ -authkeys-versal.cpp:363:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 363 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1065:39: note: declared here - 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:364: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] - 364 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:662:27: note: declared here - 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:387:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 387 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -/usr/include/openssl/ec.h:1065:39: note: declared here - 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:388: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] - 388 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:662:27: note: declared here - 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp: In member function 'virtual void VersalKey::Parse(const std::string&, bool)': -authkeys-versal.cpp:442:39: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 442 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:452:1: note: declared here - 452 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) - | ^~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:449: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] - 449 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:466:1: note: declared here - 466 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~ -authkeys-versal.cpp:456:25: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 456 | RSA_free(rsa); - | ~~~~~~~~^~~~~ +In file included from authentication.h:33: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication-versal.h:40, - from authentication-versal.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication-versal.h:37: -/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 authentication.h:43, - from authentication.cpp:26: + from authkeys.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from authkeys.cpp:25: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -525,22 +438,15 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication-versal.h:42: -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication-versal.h:35: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:43, - from authentication-zynqmp.h:27, - from authentication-zynqmp.cpp:27: + from imageheadertable.h:31, + from bootheader.h:28, + from bootheader-zynq.h:27, + from bootheader-zynq.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -560,7 +466,13 @@ 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:43, - from authkeys.cpp:26: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from bitutils.h:32, + from bitutils-versal.h:26, + from bitutils-versal.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -568,7 +480,7 @@ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, from authkeys.h:32, - from authkeys.cpp:25: + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -580,142 +492,19 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from ../s/bif.y:54: +In file included from authentication-versal.h:40, + from authkeys-versal.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authkeys-versal.h:31, + from authkeys-versal.cpp:26: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -authentication-versal.cpp: In member function 'void ECDSAAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': -authentication-versal.cpp:1017:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1017 | EC_KEY* eckeyN = EC_KEY_new(); - | ~~~~~~~~~~^~ -In file included from /usr/include/openssl/x509.h:33: -/usr/include/openssl/ec.h:971:31: note: declared here - 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ -authentication-versal.cpp:1019:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1019 | EC_KEY_set_group(eckeyN, ecgroup); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1045:27: note: declared here - 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ -authentication-versal.cpp:1020:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1020 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); - | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1090:28: note: declared here - 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1023:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1023 | prv = EC_KEY_get0_private_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1051:37: note: declared here - 1051 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1024:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1024 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1065:39: note: declared here - 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1027:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1027 | EC_KEY_set_private_key(eckeyN, prv); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1059:27: note: declared here - 1059 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1028:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1028 | EC_KEY_set_public_key(eckeyN, pub); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1073:27: note: declared here - 1073 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); - | ^~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1031:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1031 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1368:34: note: declared here - 1368 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, - | ^~~~~~~~~~~~~ -authentication-versal.cpp:1063:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1063 | EC_KEY_free(eckeyN); - | ~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1006:28: note: declared here - 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -authentication-versal.cpp: In member function 'void ECDSAP521AuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': -authentication-versal.cpp:1070:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1070 | EC_KEY* eckeyN = EC_KEY_new(); - | ~~~~~~~~~~^~ -/usr/include/openssl/ec.h:971:31: note: declared here - 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ -authentication-versal.cpp:1072:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1072 | EC_KEY_set_group(eckeyN, ecgroup); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1045:27: note: declared here - 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ -authentication-versal.cpp:1073:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1073 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); - | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1090:28: note: declared here - 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1076:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1076 | prv = EC_KEY_get0_private_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1051:37: note: declared here - 1051 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1077:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1077 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1065:39: note: declared here - 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1080:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1080 | EC_KEY_set_private_key(eckeyN, prv); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1059:27: note: declared here - 1059 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1081:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1081 | EC_KEY_set_public_key(eckeyN, pub); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1073:27: note: declared here - 1073 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); - | ^~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1084:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1084 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1368:34: note: declared here - 1368 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, - | ^~~~~~~~~~~~~ -authentication-versal.cpp:1173:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1173 | EC_KEY_free(eckeyN); - | ~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1006:28: note: declared here - 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ authkeys.cpp: In member function 'uint8_t Key::ParseOpenSSLKey(FILE*)': authkeys.cpp:191:45: warning: 'RSA* PEM_read_RSAPrivateKey(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 191 | rsaInst.rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL); @@ -804,6 +593,18 @@ /usr/include/openssl/pem.h:465:1: note: declared here 465 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) | ^~~~~~~~~~~~~~~~~~~~~~ +In file included from authentication.h:43, + from authentication.cpp:26: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ authkeys.cpp: In static member function 'static void Key::GenerateRsaKeys(KeyGenerationStruct*)': authkeys.cpp:520:36: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated: Since OpenSSL 0.9.8 [-Wdeprecated-declarations] 520 | if ((rsa = RSA_generate_key(keygen->keyLength * 8, RSA_F4, NULL, NULL)) == NULL) @@ -811,6 +612,21 @@ /usr/include/openssl/rsa.h:259:30: note: declared here 259 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void | ^~~~~~~~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from imageheadertable-versal.h:27, + from bifoptions.h:28, + from binary-versal.cpp:30: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ authkeys.cpp:556:36: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated: Since OpenSSL 0.9.8 [-Wdeprecated-declarations] 556 | if ((rsa = RSA_generate_key(keygen->keyLength * 8, RSA_F4, NULL, NULL)) == NULL) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -821,16 +637,41 @@ authkeys.cpp:605:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 605 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +In file included from authentication-versal.h:42: +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ In file included from /usr/include/openssl/x509.h:33: /usr/include/openssl/ec.h:1001:31: note: declared here 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ +In file included from authkeys-versal.h:29: +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ authkeys.cpp:609:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 609 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1001:31: note: declared here 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ authkeys.cpp:619:32: warning: 'int EC_KEY_generate_key(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 619 | if((EC_KEY_generate_key(eckey)) == 0) | ~~~~~~~~~~~~~~~~~~~^~~~~~~ @@ -843,7 +684,6 @@ /usr/include/openssl/ec.h:1104:27: note: declared here 1104 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bifoptions.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -871,61 +711,9 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binary-versal.cpp -../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': -../bisonflex/bif.yy.cpp:1632:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1633:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1633:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1634:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1698:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': -../bisonflex/bif.yy.cpp:3309:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3310:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3311:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3311:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_get_previous_state()': -../bisonflex/bif.yy.cpp:3449:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3450:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3458:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_try_NUL_trans(yy_state_type)': -../bisonflex/bif.yy.cpp:3487:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3489:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3491:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: At global scope: -../bisonflex/bif.yy.cpp:3512:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'void bifFlexLexer::yyunput(int, char*)': -../bisonflex/bif.yy.cpp:3515:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3525:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3526:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3528:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-versal.h:27, - from bifoptions.h:28, - from bifoptions.cpp:25: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-versal.h:27, - from bifoptions.h:28, - from binary-versal.cpp:30: + from authentication-zynq.h:26, + from authentication-zynq.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -944,11 +732,6 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binary.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binfile.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from imageheadertable-versal.h:27, @@ -977,9 +760,7 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bitutils.h:32, - from bitutils-versal.h:26, - from bitutils-versal.cpp:26: + from bootheader.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -999,9 +780,6 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -1030,8 +808,8 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bitutils.h:32, - from bitutils.cpp:27: + from bootimage-zynq.h:28, + from bootimage-zynq.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1051,12 +829,12 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage.cpp In file included from authentication.h:43, from imageheadertable.h:31, - from bootheader.h:28, - from bootheader-zynq.h:27, - from bootheader-zynq.cpp:22: + from imageheadertable-versal.h:27, + from bifoptions.h:28, + from bifoptions.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1078,15 +856,17 @@ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, - from bootheader-zynqmp.h:28, - from bootheader-zynqmp.cpp:22: + from partitionheadertable.h:27, + from bootimage.h:35, + from ../s/bif.y:54: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1094,17 +874,17 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynq.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bootheader.cpp:22: + from bootimage-versal.h:27, + from bootimage-versal.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1124,14 +904,60 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynqmp.cpp +In file included from authentication-versal.h:40, + from authentication-versal.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication-versal.h:37: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': +../bisonflex/bif.yy.cpp:1632:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1633:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1633:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1634:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1698:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': +../bisonflex/bif.yy.cpp:3309:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3310:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3311:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3311:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_get_previous_state()': +../bisonflex/bif.yy.cpp:3449:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3450:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3458:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_try_NUL_trans(yy_state_type)': +../bisonflex/bif.yy.cpp:3487:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3489:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3491:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: At global scope: +../bisonflex/bif.yy.cpp:3512:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'void bifFlexLexer::yyunput(int, char*)': +../bisonflex/bif.yy.cpp:3515:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3525:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3526:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3528:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +In file included from authentication-versal.h:42: +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication-versal.h:35: +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bootimage-versal.h:27, - from bootimage-versal.cpp:22: + from bitutils.h:32, + from bitutils.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1190,7 +1016,6 @@ /usr/include/openssl/ec.h:1037:39: note: declared here 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage.cpp bootimage-versal.cpp:1732:63: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1732 | EC_KEY *eckeyLocal = PEM_read_ECPrivateKey(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ @@ -1203,35 +1028,245 @@ /usr/include/openssl/ec.h:1037:39: note: declared here 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from bootimage-zynq.h:28, - from bootimage-zynq.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const std::string&)': +authkeys-versal.cpp:46:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 46 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +In file included from /usr/include/openssl/x509.h:33: +/usr/include/openssl/ec.h:1001:31: note: declared here + 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:50:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 50 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1001:31: note: declared here + 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const Key&)': +authkeys-versal.cpp:68:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 68 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1001:31: note: declared here + 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:72:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 72 | eckey = EC_KEY_new_by_curve_name(NID_secp521r1); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1001:31: note: declared here + 1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp: In destructor 'virtual VersalKey::~VersalKey()': +authkeys-versal.cpp:95:20: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | EC_KEY_free(eckey); + | ~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1006:28: note: declared here + 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +authkeys-versal.cpp: In member function 'uint8_t VersalKey::ParseECDSAOpenSSLKey(const std::string&)': +authkeys-versal.cpp:268:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 268 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:465:1: note: declared here + 465 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:269:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 269 | if (!EC_KEY_check_key(eckey)) + | ~~~~~~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1110:27: note: declared here + 1110 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~ +authkeys-versal.cpp:287:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 287 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1065:39: note: declared here + 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:288: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] + 288 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:662:27: note: declared here + 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:311:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 311 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1065:39: note: declared here + 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:312: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] + 312 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:662:27: note: declared here + 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:344: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] + 344 | eckey = PEM_read_EC_PUBKEY(file, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:466:1: note: declared here + 466 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:345:30: warning: 'int EC_KEY_check_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 345 | if (!EC_KEY_check_key(eckey)) + | ~~~~~~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1110:27: note: declared here + 1110 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~ +authkeys-versal.cpp:363:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 363 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1065:39: note: declared here + 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:364: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] + 364 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:662:27: note: declared here + 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:387:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 387 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ +/usr/include/openssl/ec.h:1065:39: note: declared here + 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:388: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] + 388 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:662:27: note: declared here + 662 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp: In member function 'virtual void VersalKey::Parse(const std::string&, bool)': +authkeys-versal.cpp:442:39: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 442 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:452:1: note: declared here + 452 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) + | ^~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:449: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] + 449 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:466:1: note: declared here + 466 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~ +authkeys-versal.cpp:456:25: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 456 | RSA_free(rsa); + | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. checksum-versal.cpp +authentication-versal.cpp: In member function 'void ECDSAAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': +authentication-versal.cpp:1017:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1017 | EC_KEY* eckeyN = EC_KEY_new(); + | ~~~~~~~~~~^~ +In file included from /usr/include/openssl/x509.h:33: +/usr/include/openssl/ec.h:971:31: note: declared here + 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); + | ^~~~~~~~~~ +authentication-versal.cpp:1019:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1019 | EC_KEY_set_group(eckeyN, ecgroup); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1045:27: note: declared here + 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +authentication-versal.cpp:1020:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1020 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); + | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1090:28: note: declared here + 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1023:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1023 | prv = EC_KEY_get0_private_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1051:37: note: declared here + 1051 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1024:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1024 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1065:39: note: declared here + 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1027:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1027 | EC_KEY_set_private_key(eckeyN, prv); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1059:27: note: declared here + 1059 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1028:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1028 | EC_KEY_set_public_key(eckeyN, pub); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1073:27: note: declared here + 1073 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); + | ^~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1031:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1031 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1368:34: note: declared here + 1368 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, + | ^~~~~~~~~~~~~ +authentication-versal.cpp:1063:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1063 | EC_KEY_free(eckeyN); + | ~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1006:28: note: declared here + 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +authentication-versal.cpp: In member function 'void ECDSAP521AuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': +authentication-versal.cpp:1070:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1070 | EC_KEY* eckeyN = EC_KEY_new(); + | ~~~~~~~~~~^~ +/usr/include/openssl/ec.h:971:31: note: declared here + 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); + | ^~~~~~~~~~ +authentication-versal.cpp:1072:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1072 | EC_KEY_set_group(eckeyN, ecgroup); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1045:27: note: declared here + 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +authentication-versal.cpp:1073:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1073 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); + | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1090:28: note: declared here + 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1076:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1076 | prv = EC_KEY_get0_private_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1051:37: note: declared here + 1051 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1077:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1077 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1065:39: note: declared here + 1065 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1080:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1080 | EC_KEY_set_private_key(eckeyN, prv); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1059:27: note: declared here + 1059 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1081:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1081 | EC_KEY_set_public_key(eckeyN, pub); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1073:27: note: declared here + 1073 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); + | ^~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1084:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1084 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1368:34: note: declared here + 1368 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, + | ^~~~~~~~~~~~~ +authentication-versal.cpp:1173:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1173 | EC_KEY_free(eckeyN); + | ~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1006:28: note: declared here + 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. checksum.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.tab.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -1258,13 +1293,18 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.tab.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.yy.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. elftools.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versalnet.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bootimage.cpp:26: + from checksum-versal.h:26, + from checksum-versal.cpp:17: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1289,7 +1329,7 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from checksum.cpp:22: + from bootimage.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1309,13 +1349,16 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynqmp.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from checksum-versal.h:26, - from checksum-versal.cpp:17: + from ../../s/cmdoptions.y:39, + from cmdoptionsscanner.h:40, + from ../../s/cmdoptions.y:51: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1331,26 +1374,20 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption.cpp In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -checksum.cpp: In member function 'virtual void MD5ChecksumContext::Link(bool, const uint8_t*, Binary::Length_t, Section*)': -checksum.cpp:58:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 58 | MD5( data, length, cksum_data); - | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from checksum.cpp:32: -/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, - | ^~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryptutils.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. hash.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from ../../s/cmdoptions.y:39, - from cmdoptionsscanner.h:40, - from ../../s/cmdoptions.y:51: + from encryption-versal.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1370,15 +1407,12 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. elftools.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from ../../s/cmdoptions.y:39, - from cmdoptionsscanner.h:40, - from ../s/cmdoptions.l:23: + from encryption-versalnet.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1398,89 +1432,48 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -../bisonflex/cmdoptions.yy.cpp: In member function 'virtual int CO::FlexScanner::yylex()': -../bisonflex/cmdoptions.yy.cpp:1316:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1317:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1317:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1318:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1384:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'int cmdoptionsFlexLexer::yy_get_next_buffer()': -../bisonflex/cmdoptions.yy.cpp:2600:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2601:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2602:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2602:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_get_previous_state()': -../bisonflex/cmdoptions.yy.cpp:2740:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2741:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2749:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_try_NUL_trans(yy_state_type)': -../bisonflex/cmdoptions.yy.cpp:2778:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2780:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2782:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: At global scope: -../bisonflex/cmdoptions.yy.cpp:2803:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'void cmdoptionsFlexLexer::yyunput(int, char*)': -../bisonflex/cmdoptions.yy.cpp:2806:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2816:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2817:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2819:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -In file included from authentication.h:43, - from imageheadertable.h:31, - from elftools.cpp:25: +In file included from hash.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: +In file included from hash.h:27: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versalnet.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption.cpp +hash.cpp: In member function 'virtual uint8_t HashSha2::UpdateHash(const void*, size_t)': +hash.cpp:39:38: warning: 'int SHA256_Update(SHA256_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 39 | 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, + | ^~~~~~~~~~~~~ +hash.cpp: In member function 'virtual uint8_t HashSha2::FinalHash(uint8_t*)': +hash.cpp:48:37: warning: 'int SHA256_Final(unsigned char*, SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 48 | 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); + | ^~~~~~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from encryption-versal.cpp:23: + from elftools.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from encryption-versalnet.cpp:24: + from checksum.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1496,17 +1489,35 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryptutils.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynqmp.cpp +checksum.cpp: In member function 'virtual void MD5ChecksumContext::Link(bool, const uint8_t*, Binary::Length_t, Section*)': +checksum.cpp:58:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 58 | MD5( data, length, cksum_data); + | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from checksum.cpp:32: +/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, + | ^~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from encryption-zynq.cpp:36: + from encryption.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1526,13 +1537,14 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. hash.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from encryption.cpp:23: + from ../../s/cmdoptions.y:39, + from cmdoptionsscanner.h:40, + from ../s/cmdoptions.l:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1552,36 +1564,12 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from hash.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from hash.h:27: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -hash.cpp: In member function 'virtual uint8_t HashSha2::UpdateHash(const void*, size_t)': -hash.cpp:39:38: warning: 'int SHA256_Update(SHA256_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 39 | 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, - | ^~~~~~~~~~~~~ -hash.cpp: In member function 'virtual uint8_t HashSha2::FinalHash(uint8_t*)': -hash.cpp:48:37: warning: 'int SHA256_Final(unsigned char*, SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 48 | 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); - | ^~~~~~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from encryption-zynqmp.cpp:23: + from encryption-zynq.cpp:36: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1601,8 +1589,6 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynqmp.cpp In file included from authentication.h:43, from imageheadertable.h:31, from imageheadertable-versal.h:27, @@ -1625,18 +1611,47 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable.cpp +../bisonflex/cmdoptions.yy.cpp: In member function 'virtual int CO::FlexScanner::yylex()': +../bisonflex/cmdoptions.yy.cpp:1316:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1317:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1317:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1318:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1384:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'int cmdoptionsFlexLexer::yy_get_next_buffer()': +../bisonflex/cmdoptions.yy.cpp:2600:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2601:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2602:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2602:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_get_previous_state()': +../bisonflex/cmdoptions.yy.cpp:2740:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2741:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2749:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_try_NUL_trans(yy_state_type)': +../bisonflex/cmdoptions.yy.cpp:2778:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2780:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2782:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: At global scope: +../bisonflex/cmdoptions.yy.cpp:2803:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'void cmdoptionsFlexLexer::yyunput(int, char*)': +../bisonflex/cmdoptions.yy.cpp:2806:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2816:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2817:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2819:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. kdf.cpp In file included from authentication.h:43, from imageheadertable.h:31, - from imageheadertable-zynq.h:27, - from imageheadertable-zynq.cpp:22: + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from encryption-zynqmp.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1644,7 +1659,7 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -1670,21 +1685,22 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. kdf.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. logger.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. main.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. mcsfile.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. options.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from imageheadertable.cpp:22: + from imageheadertable-zynq.h:27, + from imageheadertable-zynq.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1692,15 +1708,10 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authentication.h:33: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. logger.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. main.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. mcsfile.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. options.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile-versal.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. parsing.cpp In file included from authentication.h:43, @@ -1708,7 +1719,7 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from main.cpp:27: + from imageheadertable.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1729,14 +1740,14 @@ 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from ../../s/cmdoptions.y:39, - from cmdoptionsscanner.h:40, - from options.cpp:26: + from outputfile.cpp:28: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1756,14 +1767,12 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from outputfile.cpp:28: + from main.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1808,6 +1817,7 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynq.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -1840,7 +1850,9 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from partition-versal.cpp:24: + from ../../s/cmdoptions.y:39, + from cmdoptionsscanner.h:40, + from options.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1864,15 +1876,16 @@ from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from partitionheadertable-versal.h:27, - from partitionheadertable-versal.cpp:22: + from bootimage.h:35, + from partition-versal.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1880,12 +1893,12 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynq.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynqmp.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -1911,14 +1924,13 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. postprocess.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from partitionheadertable-zynq.h:28, - from partitionheadertable-zynq.cpp:22: + from partitionheadertable-versal.h:27, + from partitionheadertable-versal.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1937,12 +1949,21 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynqmp.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.tab.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.yy.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-zynqmp.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from partitionheadertable-zynqmp.h:27, - from partitionheadertable-zynqmp.cpp:22: + from partitionheadertable-zynq.h:28, + from partitionheadertable-zynq.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1961,21 +1982,21 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-versal.cpp +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cJSON.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-alloc.c In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from bootimage.h:35, - from partitionheadertable.cpp:22: + from partitionheadertable-zynqmp.h:27, + from partitionheadertable-zynqmp.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1983,15 +2004,15 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authentication.h:33: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynq.cpp +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-binary.c In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-versal.h:27, - from postprocess.cpp:17: + from readimage.h:32, + from readimage-zynq.h:30, + from readimage-zynq.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2024,6 +2045,7 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-command.c authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); @@ -2032,20 +2054,20 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.cpp In file included from authentication.h:43, - from readimage.h:32, - from readimage-zynq.h:30, - from readimage-zynq.cpp:24: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from partitionheadertable.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2053,14 +2075,14 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.tab.cpp In file included from authentication.h:43, - from readimage.h:32, - from readimage.cpp:30: + from imageheadertable.h:31, + from imageheadertable-versal.h:27, + from postprocess.cpp:17: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2079,11 +2101,12 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.yy.cpp +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-load.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-npi.c In file included from authentication.h:43, from readimage.h:32, from readimage-zynqmp.h:33, - from readimage-zynqmp.cpp:24: + from verifyimage-zynqmp.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2102,20 +2125,18 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-overlay.c In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from reginit.cpp:25: + from readimage.h:32, + from readimage-zynqmp.h:33, + from readimage-zynqmp.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2123,27 +2144,21 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authentication.h:33: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-versal.cpp In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from ../../s/reginit.y:44, - from reginitscanner.h:40, - from ../../s/reginit.y:54: + from readimage.h:32, + from readimage-versal.h:29, + from verifyimage-versal.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2151,12 +2166,10 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authentication.h:33: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-zynqmp.cpp -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cJSON.c In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -2164,7 +2177,7 @@ from bootimage.h:35, from ../../s/reginit.y:44, from reginitscanner.h:40, - from ../s/reginit.l:23: + from ../../s/reginit.y:54: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2184,43 +2197,21 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -../bisonflex/reginit.yy.cpp: In member function 'virtual int RE::FlexScanner::yylex()': -../bisonflex/reginit.yy.cpp:719:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:720:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:720:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:721:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:785:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'int reginitFlexLexer::yy_get_next_buffer()': -../bisonflex/reginit.yy.cpp:1221:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1222:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1223:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1223:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_get_previous_state()': -../bisonflex/reginit.yy.cpp:1361:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1362:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1370:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_try_NUL_trans(yy_state_type)': -../bisonflex/reginit.yy.cpp:1399:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1401:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1403:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: At global scope: -../bisonflex/reginit.yy.cpp:1424:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'void reginitFlexLexer::yyunput(int, char*)': -../bisonflex/reginit.yy.cpp:1427:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1437:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1438:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1440:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-raw.c In file included from authentication.h:43, - from readimage.h:32, - from readimage-zynqmp.h:33, - from verifyimage-zynqmp.cpp:23: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from reginit.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2228,14 +2219,13 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:43, from readimage.h:32, - from readimage-versal.h:29, - from verifyimage-versal.cpp:25: + from readimage.cpp:30: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2254,51 +2244,7 @@ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -verifyimage-zynqmp.cpp: In member function 'bool ZynqMpReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096*, uint8_t*)': -verifyimage-zynqmp.cpp:94:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | rsa = RSA_new(); - | ~~~~~~~^~ -/usr/include/openssl/rsa.h:207:28: note: declared here - 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); - | ^~~~~~~ -verifyimage-zynqmp.cpp:112:17: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 112 | RSA_set0_key(rsa, n, e, d); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:213:27: note: declared here - 213 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); - | ^~~~~~~~~~~~ -verifyimage-zynqmp.cpp:113:44: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 113 | RearrangeEndianess((uint8_t*)RSA_get0_e(rsa)->d, sizeof(uint32_t)); - | ~~~~~~~~~~^~~~~ -/usr/include/openssl/rsa.h:239:37: note: declared here - 239 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); - | ^~~~~~~~~~ -verifyimage-zynqmp.cpp:114:44: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 114 | RearrangeEndianess((uint8_t*)RSA_get0_n(rsa)->d, RSA_4096_KEY_LENGTH); - | ~~~~~~~~~~^~~~~ -/usr/include/openssl/rsa.h:238:37: note: declared here - 238 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); - | ^~~~~~~~~~ -verifyimage-zynqmp.cpp:125:27: warning: 'int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 125 | if (RSA_public_encrypt(RSA_4096_KEY_LENGTH, signature, (unsigned char*)opensslHashPadded, rsa, RSA_NO_PADDING) < 0) - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:288:5: note: declared here - 288 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, - | ^~~~~~~~~~~~~~~~~~ -verifyimage-zynqmp.cpp:131:44: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 131 | RearrangeEndianess((uint8_t*)RSA_get0_n(rsa)->d, RSA_4096_KEY_LENGTH); - | ~~~~~~~~~~^~~~~ -/usr/include/openssl/rsa.h:238:37: note: declared here - 238 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); - | ^~~~~~~~~~ -verifyimage-zynqmp.cpp:132:44: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 132 | RearrangeEndianess((uint8_t*)RSA_get0_e(rsa)->d, sizeof(uint32_t)); - | ~~~~~~~~~~^~~~~ -/usr/include/openssl/rsa.h:239:37: note: declared here - 239 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); - | ^~~~~~~~~~ -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-alloc.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-binary.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-source.c verifyimage-versal.cpp: In member function 'bool VersalReadImage::VerifyECDSASignature(bool, uint8_t*, size_t, ACKeyECDSA*, uint8_t*)': 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); @@ -2393,11 +2339,76 @@ /usr/include/openssl/rsa.h:288:5: note: declared here 288 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-command.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-load.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-npi.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-overlay.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-raw.c +verifyimage-zynqmp.cpp: In member function 'bool ZynqMpReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096*, uint8_t*)': +verifyimage-zynqmp.cpp:94:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | rsa = RSA_new(); + | ~~~~~~~^~ +/usr/include/openssl/rsa.h:207:28: note: declared here + 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); + | ^~~~~~~ +verifyimage-zynqmp.cpp:112:17: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 112 | RSA_set0_key(rsa, n, e, d); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:213:27: note: declared here + 213 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); + | ^~~~~~~~~~~~ +verifyimage-zynqmp.cpp:113:44: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 113 | RearrangeEndianess((uint8_t*)RSA_get0_e(rsa)->d, sizeof(uint32_t)); + | ~~~~~~~~~~^~~~~ +/usr/include/openssl/rsa.h:239:37: note: declared here + 239 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); + | ^~~~~~~~~~ +verifyimage-zynqmp.cpp:114:44: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 114 | RearrangeEndianess((uint8_t*)RSA_get0_n(rsa)->d, RSA_4096_KEY_LENGTH); + | ~~~~~~~~~~^~~~~ +/usr/include/openssl/rsa.h:238:37: note: declared here + 238 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); + | ^~~~~~~~~~ +verifyimage-zynqmp.cpp:125:27: warning: 'int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 125 | if (RSA_public_encrypt(RSA_4096_KEY_LENGTH, signature, (unsigned char*)opensslHashPadded, rsa, RSA_NO_PADDING) < 0) + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:288:5: note: declared here + 288 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, + | ^~~~~~~~~~~~~~~~~~ +verifyimage-zynqmp.cpp:131:44: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 131 | RearrangeEndianess((uint8_t*)RSA_get0_n(rsa)->d, RSA_4096_KEY_LENGTH); + | ~~~~~~~~~~^~~~~ +/usr/include/openssl/rsa.h:238:37: note: declared here + 238 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); + | ^~~~~~~~~~ +verifyimage-zynqmp.cpp:132:44: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 132 | RearrangeEndianess((uint8_t*)RSA_get0_e(rsa)->d, sizeof(uint32_t)); + | ~~~~~~~~~~^~~~~ +/usr/include/openssl/rsa.h:239:37: note: declared here + 239 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); + | ^~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from ../../s/reginit.y:44, + from reginitscanner.h:40, + from ../s/reginit.l:23: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ verifyimage-versal.cpp:199:34: warning: 'this' pointer is null [-Wnonnull] 199 | if (s->MaskGenerationFunction(masK, maskedDBLen, Buffer, 48, EVP_sha384()) == -1) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2411,7 +2422,32 @@ authentication-versal.h:247:14: note: in a call to non-static member function 'uint8_t* RSA4096Sha3PaddingAuthenticationAlgorithm::AttachSHA3Padding(uint8_t*, Binary::Length_t)' 247 | uint8_t* AttachSHA3Padding(uint8_t * data, const Binary::Length_t datalength); | ^~~~~~~~~~~~~~~~~ -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -I. cdo-source.c +../bisonflex/reginit.yy.cpp: In member function 'virtual int RE::FlexScanner::yylex()': +../bisonflex/reginit.yy.cpp:719:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:720:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:720:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:721:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:785:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'int reginitFlexLexer::yy_get_next_buffer()': +../bisonflex/reginit.yy.cpp:1221:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1222:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1223:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1223:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_get_previous_state()': +../bisonflex/reginit.yy.cpp:1361:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1362:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1370:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_try_NUL_trans(yy_state_type)': +../bisonflex/reginit.yy.cpp:1399:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1401:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1403:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: At global scope: +../bisonflex/reginit.yy.cpp:1424:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'void reginitFlexLexer::yyunput(int, char*)': +../bisonflex/reginit.yy.cpp:1427:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1437:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1438:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1440:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] echo Building executable file: bootgen... Building executable file: bootgen... g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -Wl,-z,relro -Wl,-z,now -o bootgen Keccak-compact-versal.o Keccak-compact.o authentication-versal.o authentication-zynq.o authentication-zynqmp.o authentication.o authkeys-versal.o authkeys.o bif.tab.o bif.yy.o bifoptions.o binary-versal.o binary.o binfile.o bitutils-versal.o bitutils.o bootheader-versal.o bootheader-zynq.o bootheader-zynqmp.o bootheader.o bootimage-versal.o bootimage-zynq.o bootimage-zynqmp.o bootimage.o checksum-versal.o checksum.o cmdoptions.tab.o cmdoptions.yy.o elftools.o encryption-versal.o encryption-versalnet.o encryption-zynq.o encryption-zynqmp.o encryption.o encryptutils.o hash.o imageheadertable-versal.o imageheadertable-zynq.o imageheadertable-zynqmp.o imageheadertable.o kdf.o logger.o main.o mcsfile.o options.o outputfile-versal.o outputfile.o parsing.o partition-versal.o partition.o partitionheadertable-versal.o partitionheadertable-zynq.o partitionheadertable-zynqmp.o partitionheadertable.o postprocess.o readimage-versal.o readimage-zynq.o readimage-zynqmp.o readimage.o reginit.o reginit.tab.o reginit.yy.o verifyimage-versal.o verifyimage-zynqmp.o cJSON.o cdo-alloc.o cdo-binary.o cdo-command.o cdo-load.o cdo-npi.o cdo-overlay.o cdo-raw.o cdo-source.o -lssl -lcrypto @@ -2439,8 +2475,8 @@ dh_gencontrol -O--exclude=.la dh_md5sums -O--exclude=.la dh_builddeb -O--exclude=.la -dpkg-deb: building package 'xilinx-bootgen' in '../xilinx-bootgen_2022.2-2_i386.deb'. dpkg-deb: building package 'xilinx-bootgen-dbgsym' in '../xilinx-bootgen-dbgsym_2022.2-2_i386.deb'. +dpkg-deb: building package 'xilinx-bootgen' in '../xilinx-bootgen_2022.2-2_i386.deb'. dpkg-genbuildinfo --build=binary -O../xilinx-bootgen_2022.2-2_i386.buildinfo dpkg-genchanges --build=binary -O../xilinx-bootgen_2022.2-2_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2448,12 +2484,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/11938/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/12474 and its subdirectories -I: Current time: Mon Apr 1 21:54:38 -12 2024 -I: pbuilder-time-stamp: 1712051678 +I: removing directory /srv/workspace/pbuilder/11938 and its subdirectories +I: Current time: Tue May 6 06:19:03 +14 2025 +I: pbuilder-time-stamp: 1746461943