Diff of the two buildlogs: -- --- b1/build.log 2024-03-25 04:54:17.668473743 +0000 +++ b2/build.log 2024-03-25 04:55:52.488429687 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Mar 24 16:50:58 -12 2024 -I: pbuilder-time-stamp: 1711342258 +I: Current time: Mon Apr 28 01:17:28 +14 2025 +I: pbuilder-time-stamp: 1745752648 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -27,54 +27,86 @@ dpkg-source: info: unpacking tpm2-tss-engine_1.2.0-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/53124/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/104414/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 Apr 27 11:17 /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/104414/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/104414/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='202832236fa74137ba271f1cb324aeb5' - 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='53124' - PS1='# ' - PS2='> ' + INVOCATION_ID=c0e7a13486664250aa276c0342e03241 + 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=104414 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.CCyiK86p/pbuilderrc_hKQA --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.CCyiK86p/b1 --logfile b1/build.log tpm2-tss-engine_1.2.0-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.CCyiK86p/pbuilderrc_lDt4 --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.CCyiK86p/b2 --logfile b2/build.log tpm2-tss-engine_1.2.0-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 Mar 24 07:45 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/53124/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 25 14:05 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/104414/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -214,7 +246,7 @@ Get: 86 http://deb.debian.org/debian unstable/main i386 pandoc i386 3.1.3+ds-2 [35.7 MB] Get: 87 http://deb.debian.org/debian unstable/main i386 pkgconf-bin i386 1.8.1-1+b2 [30.2 kB] Get: 88 http://deb.debian.org/debian unstable/main i386 pkgconf i386 1.8.1-1+b2 [26.2 kB] -Fetched 71.5 MB in 2s (29.4 MB/s) +Fetched 71.5 MB in 1s (57.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libapparmor1:i386. (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 ... 19643 files and directories currently installed.) @@ -604,7 +636,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/tpm2-tss-engine-1.2.0/ && 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 > ../tpm2-tss-engine_1.2.0-2_source.changes +I: user script /srv/workspace/pbuilder/104414/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/104414/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/tpm2-tss-engine-1.2.0/ && 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 > ../tpm2-tss-engine_1.2.0-2_source.changes dpkg-buildpackage: info: source package tpm2-tss-engine dpkg-buildpackage: info: source version 1.2.0-2 dpkg-buildpackage: info: source distribution unstable @@ -856,7 +892,7 @@ make[1]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' dh_auto_build - make -j8 + make -j21 make[1]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' mkdir -p man/man1 && cat man/tpm2tss-genkey.1.md | /usr/bin/pandoc -s -t man >man/man1/tpm2tss-genkey.1 mkdir -p man/man3 && cat man/tpm2tss_tpm2data_write.3.md | /usr/bin/pandoc -s -t man >man/man3/tpm2tss_tpm2data_write.3 @@ -866,13 +902,22 @@ mkdir -p man/man3 && cat man/tpm2tss_ecc_genkey.3.md | /usr/bin/pandoc -s -t man >man/man3/tpm2tss_ecc_genkey.3 mkdir -p man/man3 && cat man/tpm2tss_ecc_getappdata.3.md | /usr/bin/pandoc -s -t man >man/man3/tpm2tss_ecc_getappdata.3 gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/tpm2tss_genkey-tpm2tss-genkey.o `test -f 'src/tpm2tss-genkey.c' || echo './'`src/tpm2tss-genkey.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine.lo `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-common.lo `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.lo `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-err.lo `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-ecc.lo `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-rand.lo `test -f 'src/tpm2-tss-engine-rand.c' || echo './'`src/tpm2-tss-engine-rand.c -/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-rsa.lo `test -f 'src/tpm2-tss-engine-rsa.c' || echo './'`src/tpm2-tss-engine-rsa.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine.lo `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-common.lo `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.lo `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-err.lo `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-ecc.lo `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-rand.lo `test -f 'src/tpm2-tss-engine-rand.c' || echo './'`src/tpm2-tss-engine-rand.c +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/libtpm2tss_la-tpm2-tss-engine-rsa.lo `test -f 'src/tpm2-tss-engine-rsa.c' || echo './'`src/tpm2-tss-engine-rsa.c +(rm man/man3/tpm2tss_tpm2data_read.3 2>/dev/null || true) && ln -s tpm2tss_tpm2data_write.3 man/man3/tpm2tss_tpm2data_read.3 +(rm man/man3/tpm2tss_ecc_setappdata.3 2>/dev/null || true) && ln -s tpm2tss_ecc_getappdata.3 man/man3/tpm2tss_ecc_setappdata.3 +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-common.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rsa.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rand.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-ecc.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-digest-sign.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-err.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/tpm2tss-genkey.c: In function 'genkey_rsa': src/tpm2tss-genkey.c:253:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 253 | rsa = RSA_new(); @@ -975,25 +1020,150 @@ /usr/include/openssl/engine.h:429:27: note: declared here 429 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, | ^~~~~~~~~~~ -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-common.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rand.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine.o -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-digest-sign.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-ecc.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rsa.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-err.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o -(rm man/man3/tpm2tss_tpm2data_read.3 2>/dev/null || true) && ln -s tpm2tss_tpm2data_write.3 man/man3/tpm2tss_tpm2data_read.3 -(rm man/man3/tpm2tss_ecc_setappdata.3 2>/dev/null || true) && ln -s tpm2tss_ecc_getappdata.3 man/man3/tpm2tss_ecc_setappdata.3 +src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': +src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 63 | md = EVP_MD_CTX_md(ctx); + | ^~ +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:557:15: note: declared here + 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': +src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:562:6: note: declared here + 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': +src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); + | ^~~~~ +In file included from /usr/include/openssl/engine.h:29, + from src/tpm2-tss-engine-common.c:39: +/usr/include/openssl/rand.h:50:42: note: declared here + 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:55:36: note: declared here + 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 296 | RAND_set_rand_method(rand_save); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_enc': +src/tpm2-tss-engine-rsa.c:112:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 112 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +In file included from /usr/include/openssl/engine.h:25, + from src/tpm2-tss-engine-rsa.c:34: +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:120:9: warning: 'RSA_meth_get_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 120 | return RSA_meth_get_priv_enc(default_rsa)(flen, from, to, rsa, padding); + | ^~~~~~ +/usr/include/openssl/rsa.h:511:7: note: declared here + 511 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, + | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:137:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 137 | digest.size = RSA_size(rsa); + | ^~~~~~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c:145:9: warning: 'RSA_padding_add_PKCS1_type_1' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 145 | ret = RSA_padding_add_PKCS1_type_1(&digest.buffer[0], digest.size, + | ^~~ +/usr/include/openssl/rsa.h:382:5: note: declared here + 382 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:149:9: warning: 'RSA_padding_add_X931' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 149 | ret = RSA_padding_add_X931(&digest.buffer[0], digest.size, from, flen); + | ^~~ +/usr/include/openssl/rsa.h:422:27: note: declared here + 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:152:9: warning: 'RSA_padding_add_none' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 152 | ret = RSA_padding_add_none(&digest.buffer[0], digest.size, from, flen); + | ^~~ +/usr/include/openssl/rsa.h:417:27: note: declared here + 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': src/tpm2-tss-engine-ecc.c:195:5: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 195 | const EC_GROUP *group = EC_KEY_get0_group(eckey); | ^~~~~ +src/tpm2-tss-engine-rsa.c:179:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 179 | if (ret > RSA_size(rsa) || ret <= 0) { + | ^~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ In file included from /usr/include/openssl/engine.h:28, from src/tpm2-tss-engine-ecc.c:34: /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); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': +src/tpm2-tss-engine-rsa.c:218:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 218 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:225:9: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 225 | return RSA_meth_get_priv_dec(default_rsa)(flen, from, to, rsa, padding); + | ^~~~~~ +/usr/include/openssl/rsa.h:521:7: note: declared here + 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, + | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:274:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 274 | if (flen > RSA_size(rsa) || flen <= 0) { + | ^~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': +src/tpm2-tss-engine-rsa.c:307:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 307 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 311 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': +src/tpm2-tss-engine-rsa.c:331:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 331 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': +src/tpm2-tss-engine-rand.c: In function 'init_rand': +src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 150 | return ENGINE_set_RAND(e, &rand_methods); + | ^~~~~~ +In file included from src/tpm2-tss-engine-rand.c:34: +/usr/include/openssl/engine.h:501:27: note: declared here + 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:320:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 320 | EC_KEY_set_method(eckey, ecc_method_default); | ^~~~~~~~~~~~~~~~~ @@ -1003,6 +1173,9 @@ src/tpm2-tss-engine-ecc.c:321:9: warning: 'ECDSA_do_sign_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 321 | ret = ECDSA_do_sign_ex(dgst, dgst_len, inv, rp, eckey); | ^~~ +src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 442 | RSA_set0_key(rsa, n, e, d); + | ^~~~~~~~~~~~ /usr/include/openssl/ec.h:1381:34: note: declared here 1381 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, | ^~~~~~~~~~~~~~~~ @@ -1015,10 +1188,65 @@ src/tpm2-tss-engine-ecc.c:352:5: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 352 | int curve_len = (EC_GROUP_order_bits(EC_KEY_get0_group(eckey)) + 7) / 8; | ^~~ +/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); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 443 | RSA_set0_factors(rsa, p, q); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:214:27: note: declared here + 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': +src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 476 | if ((rsa = RSA_new()) == NULL) { + | ^~ +/usr/include/openssl/rsa.h:207:28: note: declared here + 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); + | ^~~~~~~ +src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 484 | RSA_set_method(rsa, rsa_methods); + | ^~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:308:27: note: declared here + 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); + | ^~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:487:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 487 | if (!EVP_PKEY_assign_RSA(pkey, rsa)) { + | ^~ +In file included from /usr/include/openssl/rand.h:23, + from /usr/include/openssl/engine.h:29: +/usr/include/openssl/evp.h:1333:5: note: declared here + 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 489 | RSA_free(rsa); + | ^~~~~~~~ +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:499:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 499 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ /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); | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': src/tpm2-tss-engine-ecc.c:430:5: warning: 'EVP_PKEY_get0_EC_KEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 430 | EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey); | ^~~~~~ @@ -1043,12 +1271,24 @@ /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); | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:536:5: warning: 'EC_KEY_set_asn1_flag' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 536 | EC_KEY_set_asn1_flag(key, 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); | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 603 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:550:5: warning: 'EC_KEY_set_public_key_affine_coordinates' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 550 | if (!EC_KEY_set_public_key_affine_coordinates(key, x, y)) { | ^~ @@ -1062,6 +1302,7 @@ /usr/include/openssl/ec.h:971:31: note: declared here 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': src/tpm2-tss-engine-ecc.c:596:5: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 596 | if (!EC_KEY_set_method(eckey, ecc_methods)) { | ^~ @@ -1074,6 +1315,12 @@ /usr/include/openssl/ec.h:1006:28: note: declared here 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~ +/usr/include/openssl/evp.h:1351:22: note: declared here + 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:603:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 603 | if (!EVP_PKEY_assign_EC_KEY(pkey, eckey)) { | ^~ @@ -1086,7 +1333,30 @@ /usr/include/openssl/ec.h:1006:28: note: declared here 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_getappdata': +src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); + | ^~~~~~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-err.c -o src/libtpm2tss_la-tpm2-tss-engine-err.o >/dev/null 2>&1 +src/tpm2-tss-engine-rsa.c: In function 'init_rsa': +src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 768 | default_rsa = RSA_PKCS1_OpenSSL(); + | ^~~~~~~~~~~ +/usr/include/openssl/rsa.h:311:41: note: declared here + 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); + | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:649:5: warning: 'EC_KEY_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 649 | return EC_KEY_get_ex_data(key, ec_key_app_data); | ^~~~~~ @@ -1113,24 +1383,75 @@ /usr/include/openssl/ec.h:1464:38: note: declared here 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 772 | rsa_methods = RSA_meth_dup(default_rsa); + | ^~~~~~~~~~~ +/usr/include/openssl/rsa.h:481:35: note: declared here + 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:483:27: note: declared here + 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); + | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:516:5: note: declared here + 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:837:5: warning: 'EC_KEY_METHOD_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 837 | EC_KEY_METHOD_get_sign(ecc_methods, &orig_sign, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1527:28: note: declared here 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); + | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:526:5: note: declared here + 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); + | ^~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:558:7: note: declared here + 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:777:5: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 777 | RSA_meth_set_finish(rsa_methods, rsa_finish); + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:560:5: note: declared here + 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:779:5: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 779 | if (!ENGINE_set_RSA(e, rsa_methods)) + | ^~ src/tpm2-tss-engine-ecc.c:838:5: warning: 'EC_KEY_METHOD_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 838 | EC_KEY_METHOD_set_sign(ecc_methods, orig_sign, NULL, ecdsa_ec_key_sign); | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/engine.h:497:27: note: declared here + 497 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); + | ^~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1483:28: note: declared here 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:839:5: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 839 | EC_KEY_METHOD_set_compute_key(ecc_methods, ecdh_compute_key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1749:40: note: declared here + 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1478:28: note: declared here 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:851:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 851 | pkey_ecc_methods = EVP_PKEY_meth_new(EVP_PKEY_EC, 0); | ^~~~~~~~~~~~~~~~ @@ -1149,6 +1470,9 @@ /usr/include/openssl/evp.h:1752:28: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1748:46: note: declared here + 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:864:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 864 | EVP_PKEY_meth_get_copy(pkey_ecc_methods, &ecdsa_pkey_orig_copy); | ^~~~~~~~~~~~~~~~~~~~~~ @@ -1165,20 +1489,15 @@ | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2075 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': -src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 63 | md = EVP_MD_CTX_md(ctx); - | ^~ src/tpm2-tss-engine-ecc.c:865:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 865 | EVP_PKEY_meth_get_cleanup(pkey_ecc_methods, &ecdsa_pkey_orig_cleanup); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2076:28: note: declared here 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:557:15: note: declared here - 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:867:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 867 | EVP_PKEY_meth_set_copy(pkey_ecc_methods, ecdsa_pkey_copy); | ^~~~~~~~~~~~~~~~~~~~~~ @@ -1201,71 +1520,180 @@ /usr/include/openssl/evp.h:2007:28: note: declared here 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': -src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:562:6: note: declared here - 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2028:28: note: declared here 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1752:28: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:870:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 870 | EVP_PKEY_meth_set_digest_custom(pkey_ecc_methods, ecdsa_digest_custom); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2073:28: note: declared here + 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] + 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); + | ^~~~~~~~~~~~~~~~~~~ + | | + | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2075 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2076:28: note: declared here + 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2068:28: note: declared here 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2004:28: note: declared here + 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] + 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); + | ^~~~~~~~~~~~~ + | | + | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2006 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:871:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 871 | EVP_PKEY_meth_add0(pkey_ecc_methods); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1755:27: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': -src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); - | ^~~~~ -In file included from /usr/include/openssl/engine.h:29, - from src/tpm2-tss-engine-common.c:39: -/usr/include/openssl/rand.h:50:42: note: declared here - 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:55:36: note: declared here - 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 296 | RAND_set_rand_method(rand_save); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-err.c -o src/libtpm2tss_la-tpm2-tss-engine-err.o >/dev/null 2>&1 -src/tpm2-tss-engine-rand.c: In function 'init_rand': -src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 150 | return ENGINE_set_RAND(e, &rand_methods); - | ^~~~~~ -In file included from src/tpm2-tss-engine-rand.c:34: -/usr/include/openssl/engine.h:501:27: note: declared here - 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); +src/tpm2-tss-engine-rsa.c:806:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 806 | EVP_PKEY_meth_set_cleanup(pkey_rsa_methods, rsa_pkey_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2007:28: note: declared here + 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2028:28: note: declared here + 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2068:28: note: declared here + 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:27: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine.c: In function 'bind': +src/tpm2-tss-engine.c:329:5: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 329 | if (!ENGINE_set_id(e, engine_id)) { + | ^~ +In file included from src/tpm2-tss-engine.c:36: +/usr/include/openssl/engine.h:495:27: note: declared here + 495 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_id(ENGINE *e, const char *id); + | ^~~~~~~~~~~~~ +src/tpm2-tss-engine.c:333:5: warning: 'ENGINE_set_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 333 | if (!ENGINE_set_name(e, engine_name)) { + | ^~ +/usr/include/openssl/engine.h:496:27: note: declared here + 496 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_name(ENGINE *e, const char *name); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine.c:345:5: warning: 'ENGINE_set_load_privkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 345 | if (!ENGINE_set_load_privkey_function(e, loadkey)) { + | ^~ +/usr/include/openssl/engine.h:511:5: note: declared here + 511 | int ENGINE_set_load_privkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpriv_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine.c:350:5: warning: 'ENGINE_set_destroy_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 350 | if (!ENGINE_set_destroy_function(e, destroy_engine)) { + | ^~ +/usr/include/openssl/engine.h:503:5: note: declared here + 503 | int ENGINE_set_destroy_function(ENGINE *e,ENGINE_GEN_INT_FUNC_PTR destroy_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine.c:355:5: warning: 'ENGINE_set_ctrl_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 355 | if (!ENGINE_set_ctrl_function(e, engine_ctrl)) { + | ^~ +/usr/include/openssl/engine.h:509:5: note: declared here + 509 | int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { + | ^~ +/usr/include/openssl/engine.h:526:27: note: declared here + 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, + | ^~~~~~~~~~~~~~~~~~~~ +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rand.c -o src/libtpm2tss_la-tpm2-tss-engine-rand.o >/dev/null 2>&1 +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-digest-sign.c -o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.o >/dev/null 2>&1 +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine.c -o src/libtpm2tss_la-tpm2-tss-engine.o >/dev/null 2>&1 +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-common.c -o src/libtpm2tss_la-tpm2-tss-engine-common.o >/dev/null 2>&1 +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-ecc.c -o src/libtpm2tss_la-tpm2-tss-engine-ecc.o >/dev/null 2>&1 +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rsa.c -o src/libtpm2tss_la-tpm2-tss-engine-rsa.o >/dev/null 2>&1 +/bin/sh ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -no-undefined -avoid-version -export-symbols-regex '(tpm2tss*|bind_engine|v_check)' -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o libtpm2tss.la -rpath /usr/lib/i386-linux-gnu/engines-3 src/libtpm2tss_la-tpm2-tss-engine.lo src/libtpm2tss_la-tpm2-tss-engine-common.lo src/libtpm2tss_la-tpm2-tss-engine-digest-sign.lo src/libtpm2tss_la-tpm2-tss-engine-err.lo src/libtpm2tss_la-tpm2-tss-engine-ecc.lo src/libtpm2tss_la-tpm2-tss-engine-rand.lo src/libtpm2tss_la-tpm2-tss-engine-rsa.lo -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto +libtool: link: /usr/bin/nm -B src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o | /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libtpm2tss.exp +libtool: link: /usr/bin/grep -E -e "(tpm2tss*|bind_engine|v_check)" ".libs/libtpm2tss.exp" > ".libs/libtpm2tss.expT" +libtool: link: mv -f ".libs/libtpm2tss.expT" ".libs/libtpm2tss.exp" +libtool: link: echo "{ global:" > .libs/libtpm2tss.ver +libtool: link: cat .libs/libtpm2tss.exp | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libtpm2tss.ver +libtool: link: echo "local: *; };" >> .libs/libtpm2tss.ver +libtool: link: gcc -shared -fPIC -DPIC src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -fstack-protector-all -g -O2 -fstack-protector-strong -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -Wl,-soname -Wl,libtpm2tss.so -Wl,-version-script -Wl,.libs/libtpm2tss.ver -o .libs/libtpm2tss.so +libtool: link: ar cr .libs/libtpm2tss.a src/libtpm2tss_la-tpm2-tss-engine.o src/libtpm2tss_la-tpm2-tss-engine-common.o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/libtpm2tss_la-tpm2-tss-engine-err.o src/libtpm2tss_la-tpm2-tss-engine-ecc.o src/libtpm2tss_la-tpm2-tss-engine-rand.o src/libtpm2tss_la-tpm2-tss-engine-rsa.o +libtool: link: ranlib .libs/libtpm2tss.a +libtool: link: ( cd ".libs" && rm -f "libtpm2tss.la" && ln -s "../libtpm2tss.la" "libtpm2tss.la" ) +/bin/sh ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o tpm2tss-genkey src/tpm2tss_genkey-tpm2tss-genkey.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto libtpm2tss.la +libtool: link: gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o .libs/tpm2tss-genkey src/tpm2tss_genkey-tpm2tss-genkey.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto ./.libs/libtpm2tss.so -Wl,-rpath -Wl,/usr/lib/i386-linux-gnu/engines-3 +make[1]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' + dh_auto_test + make -j21 check "TESTSUITEFLAGS=-j21 --verbose" VERBOSE=1 +make[1]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' +make test/error_tpm2-tss-engine-common test/tpm2-tss-engine-common +make[2]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine.o `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rand.o `test -f 'src/tpm2-tss-engine-rand.c' || echo './'`src/tpm2-tss-engine-rand.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o `test -f 'src/tpm2-tss-engine-rsa.c' || echo './'`src/tpm2-tss-engine-rsa.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o test/tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'test/tpm2-tss-engine-common.c' || echo './'`test/tpm2-tss-engine-common.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine.o `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rand.o `test -f 'src/tpm2-tss-engine-rand.c' || echo './'`src/tpm2-tss-engine-rand.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o `test -f 'src/tpm2-tss-engine-rsa.c' || echo './'`src/tpm2-tss-engine-rsa.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o test/error_tpm2_tss_engine_common-error_tpm2-tss-engine-common.o `test -f 'test/error_tpm2-tss-engine-common.c' || echo './'`test/error_tpm2-tss-engine-common.c +src/tpm2-tss-engine.c: In function 'bind': src/tpm2-tss-engine.c: In function 'bind': src/tpm2-tss-engine.c:329:5: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 329 | if (!ENGINE_set_id(e, engine_id)) { | ^~ +src/tpm2-tss-engine.c:329:5: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 329 | if (!ENGINE_set_id(e, engine_id)) { + | ^~ +In file included from src/tpm2-tss-engine.c:36: +/usr/include/openssl/engine.h:495:27: note: declared here + 495 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_id(ENGINE *e, const char *id); + | ^~~~~~~~~~~~~ In file included from src/tpm2-tss-engine.c:36: /usr/include/openssl/engine.h:495:27: note: declared here 495 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_id(ENGINE *e, const char *id); @@ -1273,30 +1701,60 @@ src/tpm2-tss-engine.c:333:5: warning: 'ENGINE_set_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 333 | if (!ENGINE_set_name(e, engine_name)) { | ^~ +src/tpm2-tss-engine.c:333:5: warning: 'ENGINE_set_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 333 | if (!ENGINE_set_name(e, engine_name)) { + | ^~ /usr/include/openssl/engine.h:496:27: note: declared here 496 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_name(ENGINE *e, const char *name); | ^~~~~~~~~~~~~~~ +/usr/include/openssl/engine.h:496:27: note: declared here + 496 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_name(ENGINE *e, const char *name); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine.c:345:5: warning: 'ENGINE_set_load_privkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 345 | if (!ENGINE_set_load_privkey_function(e, loadkey)) { + | ^~ src/tpm2-tss-engine.c:345:5: warning: 'ENGINE_set_load_privkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 345 | if (!ENGINE_set_load_privkey_function(e, loadkey)) { | ^~ /usr/include/openssl/engine.h:511:5: note: declared here 511 | int ENGINE_set_load_privkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpriv_f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/engine.h:511:5: note: declared here + 511 | int ENGINE_set_load_privkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpriv_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine.c:350:5: warning: 'ENGINE_set_destroy_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 350 | if (!ENGINE_set_destroy_function(e, destroy_engine)) { | ^~ +src/tpm2-tss-engine.c:350:5: warning: 'ENGINE_set_destroy_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 350 | if (!ENGINE_set_destroy_function(e, destroy_engine)) { + | ^~ +/usr/include/openssl/engine.h:503:5: note: declared here + 503 | int ENGINE_set_destroy_function(ENGINE *e,ENGINE_GEN_INT_FUNC_PTR destroy_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:503:5: note: declared here 503 | int ENGINE_set_destroy_function(ENGINE *e,ENGINE_GEN_INT_FUNC_PTR destroy_f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine.c:355:5: warning: 'ENGINE_set_ctrl_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 355 | if (!ENGINE_set_ctrl_function(e, engine_ctrl)) { | ^~ +src/tpm2-tss-engine.c:355:5: warning: 'ENGINE_set_ctrl_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 355 | if (!ENGINE_set_ctrl_function(e, engine_ctrl)) { + | ^~ +/usr/include/openssl/engine.h:509:5: note: declared here + 509 | int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:509:5: note: declared here 509 | int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); | ^~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { | ^~ +src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { + | ^~ +/usr/include/openssl/engine.h:526:27: note: declared here + 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, + | ^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:526:27: note: declared here 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, | ^~~~~~~~~~~~~~~~~~~~ @@ -1384,7 +1842,6 @@ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-digest-sign.c -o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.o >/dev/null 2>&1 src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 442 | RSA_set0_key(rsa, n, e, d); | ^~~~~~~~~~~~ @@ -1416,14 +1873,41 @@ /usr/include/openssl/rsa.h:308:27: note: declared here 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); | ^~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': +src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); + | ^~~~~ +In file included from /usr/include/openssl/engine.h:29, + from src/tpm2-tss-engine-common.c:39: +/usr/include/openssl/rand.h:50:42: note: declared here + 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:487:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 487 | if (!EVP_PKEY_assign_RSA(pkey, rsa)) { | ^~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:55:36: note: declared here + 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); + | ^~~~~~~~~~~~ In file included from /usr/include/openssl/rand.h:23, from /usr/include/openssl/engine.h:29: /usr/include/openssl/evp.h:1333:5: note: declared here 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 296 | RAND_set_rand_method(rand_save); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 489 | RSA_free(rsa); | ^~~~~~~~ @@ -1442,75 +1926,216 @@ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_enc': +src/tpm2-tss-engine-rsa.c:112:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 112 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +In file included from /usr/include/openssl/engine.h:25, + from src/tpm2-tss-engine-rsa.c:34: +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:120:9: warning: 'RSA_meth_get_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 120 | return RSA_meth_get_priv_enc(default_rsa)(flen, from, to, rsa, padding); + | ^~~~~~ +/usr/include/openssl/rsa.h:511:7: note: declared here + 511 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, + | ^~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': +src/tpm2-tss-engine-rsa.c:137:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 137 | digest.size = RSA_size(rsa); + | ^~~~~~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c:145:9: warning: 'RSA_padding_add_PKCS1_type_1' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 145 | ret = RSA_padding_add_PKCS1_type_1(&digest.buffer[0], digest.size, + | ^~~ +/usr/include/openssl/rsa.h:382:5: note: declared here + 382 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { | ^~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:149:9: warning: 'RSA_padding_add_X931' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 149 | ret = RSA_padding_add_X931(&digest.buffer[0], digest.size, from, flen); + | ^~~ +/usr/include/openssl/rsa.h:422:27: note: declared here + 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:152:9: warning: 'RSA_padding_add_none' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 152 | ret = RSA_padding_add_none(&digest.buffer[0], digest.size, from, flen); + | ^~~ +/usr/include/openssl/rsa.h:417:27: note: declared here + 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 603 | RSA_set_app_data(rsa, NULL); | ^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:179:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 179 | if (ret > RSA_size(rsa) || ret <= 0) { + | ^~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': +src/tpm2-tss-engine-rsa.c:218:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 218 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:225:9: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 225 | return RSA_meth_get_priv_dec(default_rsa)(flen, from, to, rsa, padding); + | ^~~~~~ src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': +/usr/include/openssl/rsa.h:521:7: note: declared here + 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, + | ^~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); | ^~~ /usr/include/openssl/evp.h:1351:22: note: declared here 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:274:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 274 | if (flen > RSA_size(rsa) || flen <= 0) { + | ^~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': +src/tpm2-tss-engine-rsa.c:307:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 307 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); | ^~~~~~~~~ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 311 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); | ^~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c:331:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 331 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 442 | 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); + | ^~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'init_rsa': +src/tpm2-tss-engine-rsa.c:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 443 | RSA_set0_factors(rsa, p, q); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:214:27: note: declared here + 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, + | ^~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 768 | default_rsa = RSA_PKCS1_OpenSSL(); | ^~~~~~~~~~~ /usr/include/openssl/rsa.h:311:41: note: declared here 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': +src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 476 | if ((rsa = RSA_new()) == NULL) { + | ^~ +/usr/include/openssl/rsa.h:207:28: note: declared here + 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); + | ^~~~~~~ src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 772 | rsa_methods = RSA_meth_dup(default_rsa); | ^~~~~~~~~~~ /usr/include/openssl/rsa.h:481:35: note: declared here 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); | ^~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 484 | RSA_set_method(rsa, rsa_methods); + | ^~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:308:27: note: declared here + 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); + | ^~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:483:27: note: declared here 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:487:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 487 | if (!EVP_PKEY_assign_RSA(pkey, rsa)) { + | ^~ +In file included from /usr/include/openssl/rand.h:23, + from /usr/include/openssl/engine.h:29: +/usr/include/openssl/evp.h:1333:5: note: declared here + 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:516:5: note: declared here 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 489 | RSA_free(rsa); + | ^~~~~~~~ +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:526:5: note: declared here 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:499:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 499 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:558:7: note: declared here 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); | ^~~~~~~~~~~~~~~~~~~ @@ -1523,34 +2148,68 @@ src/tpm2-tss-engine-rsa.c:779:5: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 779 | if (!ENGINE_set_RSA(e, rsa_methods)) | ^~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': /usr/include/openssl/engine.h:497:27: note: declared here 497 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); | ^~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 603 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1749:40: note: declared here 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~ /usr/include/openssl/evp.h:1748:46: note: declared here 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1351:22: note: declared here + 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1752:28: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); + | ^~~~~~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2073:28: note: declared here 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy | ^~~~~~~~~~~~~~~~~~~~~~ -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rand.c -o src/libtpm2tss_la-tpm2-tss-engine-rand.o >/dev/null 2>&1 src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); | ^~~~~~~~~~~~~~~~~~~ @@ -1564,15 +2223,28 @@ src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'init_rsa': /usr/include/openssl/evp.h:2076:28: note: declared here 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 768 | default_rsa = RSA_PKCS1_OpenSSL(); + | ^~~~~~~~~~~ +/usr/include/openssl/rsa.h:311:41: note: declared here + 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); + | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2004:28: note: declared here 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 772 | rsa_methods = RSA_meth_dup(default_rsa); + | ^~~~~~~~~~~ +/usr/include/openssl/rsa.h:481:35: note: declared here + 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); + | ^~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); | ^~~~~~~~~~~~~ @@ -1583,104 +2255,146 @@ | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2006 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:483:27: note: declared here + 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:806:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 806 | EVP_PKEY_meth_set_cleanup(pkey_rsa_methods, rsa_pkey_cleanup); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2007:28: note: declared here 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); + | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:516:5: note: declared here + 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2028:28: note: declared here 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); + | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:526:5: note: declared here + 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2068:28: note: declared here 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); + | ^~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:558:7: note: declared here + 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:777:5: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 777 | RSA_meth_set_finish(rsa_methods, rsa_finish); + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:560:5: note: declared here + 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); + | ^~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1755:27: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-ecc.c -o src/libtpm2tss_la-tpm2-tss-engine-ecc.o >/dev/null 2>&1 -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine.c -o src/libtpm2tss_la-tpm2-tss-engine.o >/dev/null 2>&1 -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-common.c -o src/libtpm2tss_la-tpm2-tss-engine-common.o >/dev/null 2>&1 -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c src/tpm2-tss-engine-rsa.c -o src/libtpm2tss_la-tpm2-tss-engine-rsa.o >/dev/null 2>&1 -/bin/bash ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -no-undefined -avoid-version -export-symbols-regex '(tpm2tss*|bind_engine|v_check)' -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o libtpm2tss.la -rpath /usr/lib/i386-linux-gnu/engines-3 src/libtpm2tss_la-tpm2-tss-engine.lo src/libtpm2tss_la-tpm2-tss-engine-common.lo src/libtpm2tss_la-tpm2-tss-engine-digest-sign.lo src/libtpm2tss_la-tpm2-tss-engine-err.lo src/libtpm2tss_la-tpm2-tss-engine-ecc.lo src/libtpm2tss_la-tpm2-tss-engine-rand.lo src/libtpm2tss_la-tpm2-tss-engine-rsa.lo -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -libtool: link: /usr/bin/nm -B src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o | /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libtpm2tss.exp -libtool: link: /usr/bin/grep -E -e "(tpm2tss*|bind_engine|v_check)" ".libs/libtpm2tss.exp" > ".libs/libtpm2tss.expT" -libtool: link: mv -f ".libs/libtpm2tss.expT" ".libs/libtpm2tss.exp" -libtool: link: echo "{ global:" > .libs/libtpm2tss.ver -libtool: link: cat .libs/libtpm2tss.exp | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libtpm2tss.ver -libtool: link: echo "local: *; };" >> .libs/libtpm2tss.ver -libtool: link: gcc -shared -fPIC -DPIC src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -fstack-protector-all -g -O2 -fstack-protector-strong -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -Wl,-soname -Wl,libtpm2tss.so -Wl,-version-script -Wl,.libs/libtpm2tss.ver -o .libs/libtpm2tss.so -libtool: link: ar cr .libs/libtpm2tss.a src/libtpm2tss_la-tpm2-tss-engine.o src/libtpm2tss_la-tpm2-tss-engine-common.o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/libtpm2tss_la-tpm2-tss-engine-err.o src/libtpm2tss_la-tpm2-tss-engine-ecc.o src/libtpm2tss_la-tpm2-tss-engine-rand.o src/libtpm2tss_la-tpm2-tss-engine-rsa.o -libtool: link: ranlib .libs/libtpm2tss.a -libtool: link: ( cd ".libs" && rm -f "libtpm2tss.la" && ln -s "../libtpm2tss.la" "libtpm2tss.la" ) -/bin/bash ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o tpm2tss-genkey src/tpm2tss_genkey-tpm2tss-genkey.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto libtpm2tss.la -libtool: link: gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o .libs/tpm2tss-genkey src/tpm2tss_genkey-tpm2tss-genkey.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto ./.libs/libtpm2tss.so -Wl,-rpath -Wl,/usr/lib/i386-linux-gnu/engines-3 -make[1]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' - dh_auto_test - make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 -make[1]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' -make test/error_tpm2-tss-engine-common test/tpm2-tss-engine-common -make[2]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine.o `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rand.o `test -f 'src/tpm2-tss-engine-rand.c' || echo './'`src/tpm2-tss-engine-rand.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o `test -f 'src/tpm2-tss-engine-rsa.c' || echo './'`src/tpm2-tss-engine-rsa.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o test/tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'test/tpm2-tss-engine-common.c' || echo './'`test/tpm2-tss-engine-common.c -src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': -src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 63 | md = EVP_MD_CTX_md(ctx); +src/tpm2-tss-engine-rsa.c:779:5: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 779 | if (!ENGINE_set_RSA(e, rsa_methods)) | ^~ -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:557:15: note: declared here - 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ -src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': -src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:562:6: note: declared here - 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': -src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); - | ^~~~~ -In file included from /usr/include/openssl/engine.h:29, - from src/tpm2-tss-engine-common.c:39: -/usr/include/openssl/rand.h:50:42: note: declared here - 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:55:36: note: declared here - 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 296 | RAND_set_rand_method(rand_save); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine.o `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c +/usr/include/openssl/engine.h:497:27: note: declared here + 497 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); + | ^~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1749:40: note: declared here + 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1748:46: note: declared here + 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1752:28: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2073:28: note: declared here + 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] + 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); + | ^~~~~~~~~~~~~~~~~~~ + | | + | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2075 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2076:28: note: declared here + 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2004:28: note: declared here + 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] + 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); + | ^~~~~~~~~~~~~ + | | + | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2006 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:806:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 806 | EVP_PKEY_meth_set_cleanup(pkey_rsa_methods, rsa_pkey_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2007:28: note: declared here + 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2028:28: note: declared here + 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2068:28: note: declared here + 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:27: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': src/tpm2-tss-engine-ecc.c:195:5: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 195 | const EC_GROUP *group = EC_KEY_get0_group(eckey); @@ -1690,7 +2404,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); | ^~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': src/tpm2-tss-engine-ecc.c:320:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 320 | EC_KEY_set_method(eckey, ecc_method_default); @@ -1817,62 +2530,32 @@ /usr/include/openssl/ec.h:1527:28: note: declared here 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c: In function 'bind': -src/tpm2-tss-engine.c:329:5: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 329 | if (!ENGINE_set_id(e, engine_id)) { - | ^~ src/tpm2-tss-engine-ecc.c:838:5: warning: 'EC_KEY_METHOD_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 838 | EC_KEY_METHOD_set_sign(ecc_methods, orig_sign, NULL, ecdsa_ec_key_sign); | ^~~~~~~~~~~~~~~~~~~~~~ -In file included from src/tpm2-tss-engine.c:36: -/usr/include/openssl/engine.h:495:27: note: declared here - 495 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_id(ENGINE *e, const char *id); - | ^~~~~~~~~~~~~ /usr/include/openssl/ec.h:1483:28: note: declared here 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:333:5: warning: 'ENGINE_set_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 333 | if (!ENGINE_set_name(e, engine_name)) { - | ^~ -/usr/include/openssl/engine.h:496:27: note: declared here - 496 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_name(ENGINE *e, const char *name); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:345:5: warning: 'ENGINE_set_load_privkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 345 | if (!ENGINE_set_load_privkey_function(e, loadkey)) { - | ^~ src/tpm2-tss-engine-ecc.c:839:5: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 839 | EC_KEY_METHOD_set_compute_key(ecc_methods, ecdh_compute_key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1478:28: note: declared here 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/engine.h:511:5: note: declared here - 511 | int ENGINE_set_load_privkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpriv_f); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:350:5: warning: 'ENGINE_set_destroy_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 350 | if (!ENGINE_set_destroy_function(e, destroy_engine)) { - | ^~ -/usr/include/openssl/engine.h:503:5: note: declared here - 503 | int ENGINE_set_destroy_function(ENGINE *e,ENGINE_GEN_INT_FUNC_PTR destroy_f); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:355:5: warning: 'ENGINE_set_ctrl_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 355 | if (!ENGINE_set_ctrl_function(e, engine_ctrl)) { - | ^~ -/usr/include/openssl/engine.h:509:5: note: declared here - 509 | int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { - | ^~ -/usr/include/openssl/engine.h:526:27: note: declared here - 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, - | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rand.c: In function 'init_rand': src/tpm2-tss-engine-ecc.c:851:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 851 | pkey_ecc_methods = EVP_PKEY_meth_new(EVP_PKEY_EC, 0); | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 150 | return ENGINE_set_RAND(e, &rand_methods); + | ^~~~~~ /usr/include/openssl/evp.h:1749:40: note: declared here 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ +In file included from src/tpm2-tss-engine-rand.c:34: +/usr/include/openssl/engine.h:501:27: note: declared here + 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:856:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 856 | EVP_PKEY_meth_find(EVP_PKEY_EC); | ^~~~~~~~~~~~~~~~~~ @@ -1891,11 +2574,19 @@ /usr/include/openssl/evp.h:2073:28: note: declared here 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': +src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 63 | md = EVP_MD_CTX_md(ctx); + | ^~ src/tpm2-tss-engine-ecc.c:864:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] 864 | EVP_PKEY_meth_get_copy(pkey_ecc_methods, &ecdsa_pkey_orig_copy); | ^~~~~~~~~~~~~~~~~~~~~ | | | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:557:15: note: declared here + 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ /usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1913,6 +2604,15 @@ /usr/include/openssl/evp.h:2004:28: note: declared here 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': +src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); + | ^~~~~ +In file included from /usr/include/openssl/engine.h:29, + from src/tpm2-tss-engine-common.c:39: +/usr/include/openssl/rand.h:50:42: note: declared here + 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:867:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] 867 | EVP_PKEY_meth_set_copy(pkey_ecc_methods, ecdsa_pkey_copy); | ^~~~~~~~~~~~~~~ @@ -1923,12 +2623,37 @@ | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2006 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:55:36: note: declared here + 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); + | ^~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:868:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 868 | EVP_PKEY_meth_set_cleanup(pkey_ecc_methods, ecdsa_pkey_cleanup); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2007:28: note: declared here 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': +src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 296 | RAND_set_rand_method(rand_save); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:562:6: note: declared here + 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1947,390 +2672,6 @@ /usr/include/openssl/evp.h:1755:27: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_enc': -src/tpm2-tss-engine-rsa.c:112:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 112 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -In file included from /usr/include/openssl/engine.h:25, - from src/tpm2-tss-engine-rsa.c:34: -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:120:9: warning: 'RSA_meth_get_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 120 | return RSA_meth_get_priv_enc(default_rsa)(flen, from, to, rsa, padding); - | ^~~~~~ -/usr/include/openssl/rsa.h:511:7: note: declared here - 511 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:137:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 137 | digest.size = RSA_size(rsa); - | ^~~~~~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c:145:9: warning: 'RSA_padding_add_PKCS1_type_1' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 145 | ret = RSA_padding_add_PKCS1_type_1(&digest.buffer[0], digest.size, - | ^~~ -/usr/include/openssl/rsa.h:382:5: note: declared here - 382 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:149:9: warning: 'RSA_padding_add_X931' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 149 | ret = RSA_padding_add_X931(&digest.buffer[0], digest.size, from, flen); - | ^~~ -/usr/include/openssl/rsa.h:422:27: note: declared here - 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:152:9: warning: 'RSA_padding_add_none' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 152 | ret = RSA_padding_add_none(&digest.buffer[0], digest.size, from, flen); - | ^~~ -src/tpm2-tss-engine-rand.c: In function 'init_rand': -/usr/include/openssl/rsa.h:417:27: note: declared here - 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 150 | return ENGINE_set_RAND(e, &rand_methods); - | ^~~~~~ -In file included from src/tpm2-tss-engine-rand.c:34: -/usr/include/openssl/engine.h:501:27: note: declared here - 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:179:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 179 | if (ret > RSA_size(rsa) || ret <= 0) { - | ^~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': -src/tpm2-tss-engine-rsa.c:218:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 218 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:225:9: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 225 | return RSA_meth_get_priv_dec(default_rsa)(flen, from, to, rsa, padding); - | ^~~~~~ -/usr/include/openssl/rsa.h:521:7: note: declared here - 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:274:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 274 | if (flen > RSA_size(rsa) || flen <= 0) { - | ^~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': -src/tpm2-tss-engine-rsa.c:307:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 307 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 311 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': -src/tpm2-tss-engine-rsa.c:331:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 331 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 442 | 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); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 443 | RSA_set0_factors(rsa, p, q); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:214:27: note: declared here - 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); - | ^~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:215:27: note: declared here - 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': -src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 476 | if ((rsa = RSA_new()) == NULL) { - | ^~ -/usr/include/openssl/rsa.h:207:28: note: declared here - 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); - | ^~~~~~~ -src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 484 | RSA_set_method(rsa, rsa_methods); - | ^~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:308:27: note: declared here - 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); - | ^~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:487:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 487 | if (!EVP_PKEY_assign_RSA(pkey, rsa)) { - | ^~ -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1333:5: note: declared here - 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 489 | RSA_free(rsa); - | ^~~~~~~~ -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { - | ^~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:499:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 499 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': -src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { - | ^~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 603 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': -src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~ -/usr/include/openssl/evp.h:1351:22: note: declared here - 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -src/tpm2-tss-engine.c: In function 'bind': -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); - | ^~~~~~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'init_rsa': -src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 768 | default_rsa = RSA_PKCS1_OpenSSL(); - | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:311:41: note: declared here - 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 772 | rsa_methods = RSA_meth_dup(default_rsa); - | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:481:35: note: declared here - 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:483:27: note: declared here - 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); - | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:516:5: note: declared here - 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:329:5: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 329 | if (!ENGINE_set_id(e, engine_id)) { - | ^~ -In file included from src/tpm2-tss-engine.c:36: -/usr/include/openssl/engine.h:495:27: note: declared here - 495 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_id(ENGINE *e, const char *id); - | ^~~~~~~~~~~~~ -src/tpm2-tss-engine.c:333:5: warning: 'ENGINE_set_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 333 | if (!ENGINE_set_name(e, engine_name)) { - | ^~ -/usr/include/openssl/engine.h:496:27: note: declared here - 496 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_name(ENGINE *e, const char *name); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:345:5: warning: 'ENGINE_set_load_privkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 345 | if (!ENGINE_set_load_privkey_function(e, loadkey)) { - | ^~ -/usr/include/openssl/engine.h:511:5: note: declared here - 511 | int ENGINE_set_load_privkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpriv_f); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:350:5: warning: 'ENGINE_set_destroy_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 350 | if (!ENGINE_set_destroy_function(e, destroy_engine)) { - | ^~ -/usr/include/openssl/engine.h:503:5: note: declared here - 503 | int ENGINE_set_destroy_function(ENGINE *e,ENGINE_GEN_INT_FUNC_PTR destroy_f); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:355:5: warning: 'ENGINE_set_ctrl_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 355 | if (!ENGINE_set_ctrl_function(e, engine_ctrl)) { - | ^~ -/usr/include/openssl/engine.h:509:5: note: declared here - 509 | int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { - | ^~ -/usr/include/openssl/engine.h:526:27: note: declared here - 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:526:5: note: declared here - 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); - | ^~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:558:7: note: declared here - 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:777:5: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 777 | RSA_meth_set_finish(rsa_methods, rsa_finish); - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:560:5: note: declared here - 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:779:5: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 779 | if (!ENGINE_set_RSA(e, rsa_methods)) - | ^~ -/usr/include/openssl/engine.h:497:27: note: declared here - 497 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); - | ^~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1749:40: note: declared here - 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1748:46: note: declared here - 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1752:28: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2073:28: note: declared here - 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] - 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); - | ^~~~~~~~~~~~~~~~~~~ - | | - | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2075 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2076:28: note: declared here - 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2004:28: note: declared here - 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] - 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); - | ^~~~~~~~~~~~~ - | | - | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2006 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:806:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 806 | EVP_PKEY_meth_set_cleanup(pkey_rsa_methods, rsa_pkey_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2007:28: note: declared here - 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2028:28: note: declared here - 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2068:28: note: declared here - 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:27: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c -src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rand.o `test -f 'src/tpm2-tss-engine-rand.c' || echo './'`src/tpm2-tss-engine-rand.c -src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); - | ^~~~~ -In file included from /usr/include/openssl/engine.h:29, - from src/tpm2-tss-engine-common.c:39: -/usr/include/openssl/rand.h:50:42: note: declared here - 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:55:36: note: declared here - 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 296 | RAND_set_rand_method(rand_save); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o `test -f 'src/tpm2-tss-engine-rsa.c' || echo './'`src/tpm2-tss-engine-rsa.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o test/error_tpm2_tss_engine_common-error_tpm2-tss-engine-common.o `test -f 'test/error_tpm2-tss-engine-common.c' || echo './'`test/error_tpm2-tss-engine-common.c src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 63 | md = EVP_MD_CTX_md(ctx); @@ -2339,21 +2680,6 @@ /usr/include/openssl/evp.h:557:15: note: declared here 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); | ^~~~~~~~~~~~~ -src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': -src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:562:6: note: declared here - 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rand.c: In function 'init_rand': -src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 150 | return ENGINE_set_RAND(e, &rand_methods); - | ^~~~~~ -In file included from src/tpm2-tss-engine-rand.c:34: -/usr/include/openssl/engine.h:501:27: note: declared here - 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); - | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': src/tpm2-tss-engine-ecc.c:195:5: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 195 | const EC_GROUP *group = EC_KEY_get0_group(eckey); @@ -2363,6 +2689,13 @@ /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); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': +src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:562:6: note: declared here + 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': src/tpm2-tss-engine-ecc.c:320:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 320 | EC_KEY_set_method(eckey, ecc_method_default); @@ -2388,10 +2721,18 @@ /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); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rand.c: In function 'init_rand': src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 150 | return ENGINE_set_RAND(e, &rand_methods); + | ^~~~~~ src/tpm2-tss-engine-ecc.c:430:5: warning: 'EVP_PKEY_get0_EC_KEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 430 | EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey); | ^~~~~~ +In file included from src/tpm2-tss-engine-rand.c:34: +/usr/include/openssl/engine.h:501:27: note: declared here + 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); + | ^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/rand.h:23, from /usr/include/openssl/engine.h:29: /usr/include/openssl/evp.h:1377:25: note: declared here @@ -2581,313 +2922,8 @@ /usr/include/openssl/evp.h:1755:27: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_enc': -src/tpm2-tss-engine-rsa.c:112:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 112 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -In file included from /usr/include/openssl/engine.h:25, - from src/tpm2-tss-engine-rsa.c:34: -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:120:9: warning: 'RSA_meth_get_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 120 | return RSA_meth_get_priv_enc(default_rsa)(flen, from, to, rsa, padding); - | ^~~~~~ -/usr/include/openssl/rsa.h:511:7: note: declared here - 511 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:137:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 137 | digest.size = RSA_size(rsa); - | ^~~~~~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c:145:9: warning: 'RSA_padding_add_PKCS1_type_1' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 145 | ret = RSA_padding_add_PKCS1_type_1(&digest.buffer[0], digest.size, - | ^~~ -/usr/include/openssl/rsa.h:382:5: note: declared here - 382 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:149:9: warning: 'RSA_padding_add_X931' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 149 | ret = RSA_padding_add_X931(&digest.buffer[0], digest.size, from, flen); - | ^~~ -/usr/include/openssl/rsa.h:422:27: note: declared here - 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:152:9: warning: 'RSA_padding_add_none' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 152 | ret = RSA_padding_add_none(&digest.buffer[0], digest.size, from, flen); - | ^~~ -/usr/include/openssl/rsa.h:417:27: note: declared here - 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:179:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 179 | if (ret > RSA_size(rsa) || ret <= 0) { - | ^~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': -src/tpm2-tss-engine-rsa.c:218:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 218 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:225:9: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 225 | return RSA_meth_get_priv_dec(default_rsa)(flen, from, to, rsa, padding); - | ^~~~~~ -/usr/include/openssl/rsa.h:521:7: note: declared here - 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:274:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 274 | if (flen > RSA_size(rsa) || flen <= 0) { - | ^~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': -src/tpm2-tss-engine-rsa.c:307:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 307 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 311 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': -src/tpm2-tss-engine-rsa.c:331:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 331 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 442 | 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); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 443 | RSA_set0_factors(rsa, p, q); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:214:27: note: declared here - 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); - | ^~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:215:27: note: declared here - 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': -src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 476 | if ((rsa = RSA_new()) == NULL) { - | ^~ -/usr/include/openssl/rsa.h:207:28: note: declared here - 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); - | ^~~~~~~ -src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 484 | RSA_set_method(rsa, rsa_methods); - | ^~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:308:27: note: declared here - 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); - | ^~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:487:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 487 | if (!EVP_PKEY_assign_RSA(pkey, rsa)) { - | ^~ -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1333:5: note: declared here - 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 489 | RSA_free(rsa); - | ^~~~~~~~ -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { - | ^~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:499:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 499 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': -src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { - | ^~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 603 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': -src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~ -/usr/include/openssl/evp.h:1351:22: note: declared here - 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); - | ^~~~~~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'init_rsa': -src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 768 | default_rsa = RSA_PKCS1_OpenSSL(); - | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:311:41: note: declared here - 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 772 | rsa_methods = RSA_meth_dup(default_rsa); - | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:481:35: note: declared here - 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:483:27: note: declared here - 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); - | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:516:5: note: declared here - 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); - | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:526:5: note: declared here - 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); - | ^~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:558:7: note: declared here - 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:777:5: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 777 | RSA_meth_set_finish(rsa_methods, rsa_finish); - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:560:5: note: declared here - 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:779:5: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 779 | if (!ENGINE_set_RSA(e, rsa_methods)) - | ^~ -/usr/include/openssl/engine.h:497:27: note: declared here - 497 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); - | ^~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1749:40: note: declared here - 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1748:46: note: declared here - 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1752:28: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2073:28: note: declared here - 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] - 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); - | ^~~~~~~~~~~~~~~~~~~ - | | - | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2075 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2076:28: note: declared here - 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2004:28: note: declared here - 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] - 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); - | ^~~~~~~~~~~~~ - | | - | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2006 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:806:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 806 | EVP_PKEY_meth_set_cleanup(pkey_rsa_methods, rsa_pkey_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2007:28: note: declared here - 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2028:28: note: declared here - 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2068:28: note: declared here - 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:27: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ -/bin/bash ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,--wrap=Esys_Initialize -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o test/error_tpm2-tss-engine-common test/error_tpm2_tss_engine_common-error_tpm2-tss-engine-common.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rand.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -lcmocka -/bin/bash ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o test/tpm2-tss-engine-common test/tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_tpm2_tss_engine_common-tpm2-tss-engine.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-err.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rand.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -lcmocka +/bin/sh ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,--wrap=Esys_Initialize -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o test/error_tpm2-tss-engine-common test/error_tpm2_tss_engine_common-error_tpm2-tss-engine-common.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rand.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -lcmocka +/bin/sh ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o test/tpm2-tss-engine-common test/tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_tpm2_tss_engine_common-tpm2-tss-engine.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-err.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rand.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -lcmocka libtool: link: gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--wrap=Esys_Initialize -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o test/error_tpm2-tss-engine-common test/error_tpm2_tss_engine_common-error_tpm2-tss-engine-common.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rand.o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -lcmocka libtool: link: gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -o test/tpm2-tss-engine-common test/tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_tpm2_tss_engine_common-tpm2-tss-engine.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-common.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-err.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rand.o src/test_tpm2_tss_engine_common-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -lcmocka make[2]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' @@ -2917,7 +2953,7 @@ make[1]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' make[2]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' /usr/bin/mkdir -p '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/bin' - /bin/bash ./libtool --mode=install /usr/bin/install -c tpm2tss-genkey '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/bin' + /bin/sh ./libtool --mode=install /usr/bin/install -c tpm2tss-genkey '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/bin' libtool: warning: 'libtpm2tss.la' has not been installed in '/usr/lib/i386-linux-gnu/engines-3' libtool: install: /usr/bin/install -c .libs/tpm2tss-genkey /build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/bin/tpm2tss-genkey ([ -e /build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3 ] || \ @@ -2936,7 +2972,7 @@ /usr/bin/mkdir -p '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/share/man/man3' /usr/bin/install -c -m 644 man/man3/tpm2tss_tpm2data_write.3 man/man3/tpm2tss_rsa_makekey.3 man/man3/tpm2tss_rsa_genkey.3 man/man3/tpm2tss_ecc_makekey.3 man/man3/tpm2tss_ecc_genkey.3 man/man3/tpm2tss_ecc_getappdata.3 man/man3/tpm2tss_tpm2data_read.3 man/man3/tpm2tss_ecc_setappdata.3 '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/share/man/man3' /usr/bin/mkdir -p '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3' - /bin/bash ./libtool --mode=install /usr/bin/install -c libtpm2tss.la '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3' + /bin/sh ./libtool --mode=install /usr/bin/install -c libtpm2tss.la '/build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3' libtool: install: /usr/bin/install -c .libs/libtpm2tss.so /build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3/libtpm2tss.so libtool: install: /usr/bin/install -c .libs/libtpm2tss.lai /build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3/libtpm2tss.la libtool: install: /usr/bin/install -c .libs/libtpm2tss.a /build/reproducible-path/tpm2-tss-engine-1.2.0/debian/tmp/usr/lib/i386-linux-gnu/engines-3/libtpm2tss.a @@ -2974,11 +3010,11 @@ dpkg-gencontrol: warning: Depends field of package libengine-tpm2-tss-openssl: substitution variable ${shlibs:Depends} used, but is not defined dh_md5sums dh_builddeb -dpkg-deb: building package 'libengine-tpm2-tss-openssl' in '../libengine-tpm2-tss-openssl_1.2.0-2_i386.deb'. dpkg-deb: building package 'libengine-tpm2-tss-openssl-dbgsym' in '../libengine-tpm2-tss-openssl-dbgsym_1.2.0-2_i386.deb'. -dpkg-deb: building package 'tpm2-tss-engine-tools-dbgsym' in '../tpm2-tss-engine-tools-dbgsym_1.2.0-2_i386.deb'. dpkg-deb: building package 'tpm2-tss-engine-tools' in '../tpm2-tss-engine-tools_1.2.0-2_i386.deb'. +dpkg-deb: building package 'tpm2-tss-engine-tools-dbgsym' in '../tpm2-tss-engine-tools-dbgsym_1.2.0-2_i386.deb'. dpkg-deb: building package 'tpm2-tss-engine-dev' in '../tpm2-tss-engine-dev_1.2.0-2_all.deb'. +dpkg-deb: building package 'libengine-tpm2-tss-openssl' in '../libengine-tpm2-tss-openssl_1.2.0-2_i386.deb'. dpkg-genbuildinfo --build=binary -O../tpm2-tss-engine_1.2.0-2_i386.buildinfo dpkg-genchanges --build=binary -O../tpm2-tss-engine_1.2.0-2_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2987,12 +3023,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/104414/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/104414/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/53124 and its subdirectories -I: Current time: Sun Mar 24 16:54:16 -12 2024 -I: pbuilder-time-stamp: 1711342456 +I: removing directory /srv/workspace/pbuilder/104414 and its subdirectories +I: Current time: Mon Apr 28 01:18:48 +14 2025 +I: pbuilder-time-stamp: 1745752728