Diff of the two buildlogs: -- --- b1/build.log 2024-06-03 16:47:50.694484534 +0000 +++ b2/build.log 2024-06-03 16:49:24.594490162 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Jun 3 04:44:35 -12 2024 -I: pbuilder-time-stamp: 1717433075 +I: Current time: Mon Jul 7 13:10:52 +14 2025 +I: pbuilder-time-stamp: 1751843452 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ 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/1944641/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1047827/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +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 Jul 6 23:11 /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/1047827/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1047827/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + 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]="x86_64-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=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='551545dd7cf8415c868d89451cbe4617' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - 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='1944641' - PS1='# ' - PS2='> ' + INVOCATION_ID=ca6e175cf90f432daae127071b20fca7 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-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=1047827 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.fEtrisVq/pbuilderrc_CCRW --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.fEtrisVq/b1 --logfile b1/build.log tpm2-tss-engine_1.2.0-2.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132: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.fEtrisVq/pbuilderrc_X2LD --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.fEtrisVq/b2 --logfile b2/build.log tpm2-tss-engine_1.2.0-2.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 3 07:43 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1944641/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jul 5 14:05 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1047827/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -216,7 +248,7 @@ Get: 91 http://deb.debian.org/debian unstable/main amd64 pandoc amd64 3.1.3+ds-3 [24.3 MB] Get: 92 http://deb.debian.org/debian unstable/main amd64 pkgconf-bin amd64 1.8.1-1+b2 [29.7 kB] Get: 93 http://deb.debian.org/debian unstable/main amd64 pkgconf amd64 1.8.1-1+b2 [26.2 kB] -Fetched 60.5 MB in 2s (37.4 MB/s) +Fetched 60.5 MB in 1s (50.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libapparmor1:amd64. (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 ... 19705 files and directories currently installed.) @@ -627,7 +659,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/1047827/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1047827/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 @@ -879,7 +915,7 @@ make[1]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' dh_auto_build - make -j20 + make -j42 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 @@ -889,20 +925,20 @@ 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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/tpm2-tss-engine-err.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/tpm2-tss-engine-ecc.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/tpm2tss-genkey.c: In function 'genkey_rsa': @@ -1007,7 +1043,44 @@ /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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/tpm2-tss-engine-err.c -o src/libtpm2tss_la-tpm2-tss-engine-err.o >/dev/null 2>&1 +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, + | ^~~~~~~~~~~~~~~~~~~~ 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); @@ -1047,25 +1120,77 @@ /usr/include/openssl/rsa.h:422:27: note: declared here 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ +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(); + | ^~~~~ 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) { | ^~ +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); + | ^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *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); + | ^~~~~~~~~~~~ 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); | ^~~~~~~~~ +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); + | ^~~~~~ /usr/include/openssl/rsa.h:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +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: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); | ^~~~~~ +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); + | ^~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:526:7: note: declared here 526 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': +src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': +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: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); + | ^~~~~ +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:560:15: note: declared here + 560 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ +In file included from /usr/include/openssl/engine.h:28, + from src/tpm2-tss-engine-ecc.c:34: +/usr/include/openssl/ec.h:1053:39: note: declared here + 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ 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) { | ^~ @@ -1085,40 +1210,51 @@ /usr/include/openssl/rsa.h:456:27: note: declared here 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~ 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/evp.h:565:6: note: declared here + 565 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~ +/usr/include/openssl/ec.h:1302:27: note: declared here + 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +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); + | ^~~ +/usr/include/openssl/ec.h:1397:34: note: declared here + 1397 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:322:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 322 | EC_KEY_set_method(eckey, ecc_methods); + | ^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1302:27: note: declared here + 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ 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:218:27: note: declared here 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ +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/ec.h:1053:39: note: declared here + 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~ @@ -1132,18 +1268,30 @@ 220 | 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-ecc.c: In function 'ecdsa_digest_custom': 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:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ +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); + | ^~~~~~ 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:313:27: note: declared here 313 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); | ^~~~~~~~~~~~~~ +In file included from /usr/include/openssl/rand.h:23, + from /usr/include/openssl/engine.h:29: +/usr/include/openssl/evp.h:1380:25: note: declared here + 1380 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:430:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 430 | EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey); + | ^~~~~~~~~~~~~~~~~~~~ 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)) { | ^~ @@ -1152,12 +1300,12 @@ /usr/include/openssl/evp.h:1336:5: note: declared here 1336 | 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-ecc.c:435:5: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 435 | return digest_sign_init(ctx, mctx, tpm2data, ECDSA_size(eckey)); + | ^~~~~~ +/usr/include/openssl/ec.h:1474:27: note: declared here + 1474 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); + | ^~~~~~~~~~ src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 489 | RSA_free(rsa); | ^~~~~~~~ @@ -1176,6 +1324,19 @@ /usr/include/openssl/rsa.h:456:27: note: declared here 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': +src/tpm2-tss-engine-ecc.c:531:5: warning: 'EC_KEY_set_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 531 | if (!EC_KEY_set_group(key, ecgroup)) { + | ^~ +/usr/include/openssl/ec.h:1061:27: note: declared here + 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +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:1106:28: note: declared here + 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ 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)) { @@ -1183,73 +1344,86 @@ /usr/include/openssl/rsa.h:456:27: note: declared here 456 | 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)) { + | ^~ +/usr/include/openssl/ec.h:1141:27: note: declared here + 1141 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_makekey': 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:456:27: note: declared here 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:587:5: warning: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 587 | if ((eckey = EC_KEY_new()) == NULL) { + | ^~ +/usr/include/openssl/ec.h:987:31: note: declared here + 987 | 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.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:596:5: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 596 | if (!EC_KEY_set_method(eckey, ecc_methods)) { | ^~ -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:1302:27: note: declared here + 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ 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); | ^~~ -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/evp.h:1354:22: note: declared here 1354 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ -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, - | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:599:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 599 | EC_KEY_free(eckey); + | ^~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1022:28: note: declared here + 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ 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:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +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)) { + | ^~ +/usr/include/openssl/evp.h:1336:5: note: declared here + 1336 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); + | ^~~~~~~~~~~~~~~ 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:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ +src/tpm2-tss-engine-ecc.c:605:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 605 | EC_KEY_free(eckey); + | ^~~~~~~~~~~ +/usr/include/openssl/ec.h:1022:28: note: declared here + 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_getappdata': +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); + | ^~~~~~ +/usr/include/openssl/ec.h:1103:29: note: declared here + 1103 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'init_rsa': +src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_setappdata': +src/tpm2-tss-engine-ecc.c:673:5: warning: 'EC_KEY_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 673 | return EC_KEY_set_ex_data(key, ec_key_app_data, tpm2Data); + | ^~~~~~ +/usr/include/openssl/ec.h:1102:27: note: declared here + 1102 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); + | ^~~~~~~~~~~~~~~~~~ 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(); | ^~~~~~~~~~~ @@ -1274,18 +1448,31 @@ /usr/include/openssl/rsa.h:521:5: note: declared here 521 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'init_ecc': 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:531:5: note: declared here 531 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:826:5: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 826 | ecc_method_default = EC_KEY_OpenSSL(); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1298:44: note: declared here + 1298 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); + | ^~~~~~~~~~~~~~ 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:563:7: note: declared here 563 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:830:5: warning: 'EC_KEY_METHOD_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 830 | ecc_methods = EC_KEY_METHOD_new(ecc_method_default); + | ^~~~~~~~~~~ +/usr/include/openssl/ec.h:1480:38: note: declared here + 1480 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~ @@ -1295,15 +1482,33 @@ 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: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:1543:28: note: declared here + 1543 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_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); | ^~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~ 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/ec.h:1499:28: note: declared here + 1499 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign + | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1752:40: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ +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:1494:28: note: declared here + 1494 | 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); | ^~~~~~~~~~~~~~~~~~ @@ -1316,34 +1521,68 @@ /usr/include/openssl/evp.h:1755:28: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1752:40: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ 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:2079:28: note: declared here 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy | ^~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1751:46: note: declared here + 1751 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ 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 *)} +src/tpm2-tss-engine-ecc.c:859:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 859 | EVP_PKEY_meth_copy(pkey_ecc_methods, pkey_orig_ecc_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:28: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2080: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 *)'} 2080 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2081 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~ 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:2082:28: note: declared here 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2079:28: note: declared here + 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy + | ^~~~~~~~~~~~~~~~~~~~~~ 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:2010:28: note: declared here 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ +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 *)} +/usr/include/openssl/evp.h:2080: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 *)'} + 2080 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2081 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~ @@ -1354,18 +1593,40 @@ | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2012 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ +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:2082:28: note: declared here + 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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:2013:28: note: declared here 2013 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2010:28: note: declared here + 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy + | ^~~~~~~~~~~~~~~~~~~~~~ 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:2034:28: note: declared here 2034 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~ + | | + | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2011: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 *)'} + 2011 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2012 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1378,209 +1639,6 @@ /usr/include/openssl/evp.h:1758:27: note: declared here 1758 | 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); - | ^~~~~ -In file included from /usr/include/openssl/engine.h:28, - from src/tpm2-tss-engine-ecc.c:34: -/usr/include/openssl/ec.h:1053:39: note: declared here - 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1302:27: note: declared here - 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -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); - | ^~~ -/usr/include/openssl/ec.h:1397:34: note: declared here - 1397 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, - | ^~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:322:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 322 | EC_KEY_set_method(eckey, ecc_methods); - | ^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1302:27: note: declared here - 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -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/ec.h:1053:39: note: declared here - 1053 | 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-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 /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1380:25: note: declared here - 1380 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:430:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 430 | EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:435:5: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 435 | return digest_sign_init(ctx, mctx, tpm2data, ECDSA_size(eckey)); - | ^~~~~~ -/usr/include/openssl/ec.h:1474:27: note: declared here - 1474 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); - | ^~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': -src/tpm2-tss-engine-ecc.c:531:5: warning: 'EC_KEY_set_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 531 | if (!EC_KEY_set_group(key, ecgroup)) { - | ^~ -/usr/include/openssl/ec.h:1061:27: note: declared here - 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ -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:1106:28: note: declared here - 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ -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)) { - | ^~ -/usr/include/openssl/ec.h:1141:27: note: declared here - 1141 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_makekey': -src/tpm2-tss-engine-ecc.c:587:5: warning: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 587 | if ((eckey = EC_KEY_new()) == NULL) { - | ^~ -/usr/include/openssl/ec.h:987:31: note: declared here - 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ -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)) { - | ^~ -/usr/include/openssl/ec.h:1302:27: note: declared here - 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:599:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 599 | EC_KEY_free(eckey); - | ^~~~~~~~~~~ -/usr/include/openssl/ec.h:1022:28: note: declared here - 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -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)) { - | ^~ -/usr/include/openssl/evp.h:1336:5: note: declared here - 1336 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:605:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 605 | EC_KEY_free(eckey); - | ^~~~~~~~~~~ -/usr/include/openssl/ec.h:1022:28: note: declared here - 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_getappdata': -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); - | ^~~~~~ -/usr/include/openssl/ec.h:1103:29: note: declared here - 1103 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_setappdata': -src/tpm2-tss-engine-ecc.c:673:5: warning: 'EC_KEY_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 673 | return EC_KEY_set_ex_data(key, ec_key_app_data, tpm2Data); - | ^~~~~~ -/usr/include/openssl/ec.h:1102:27: note: declared here - 1102 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'init_ecc': -src/tpm2-tss-engine-ecc.c:826:5: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 826 | ecc_method_default = EC_KEY_OpenSSL(); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1298:44: note: declared here - 1298 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); - | ^~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:830:5: warning: 'EC_KEY_METHOD_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 830 | ecc_methods = EC_KEY_METHOD_new(ecc_method_default); - | ^~~~~~~~~~~ -/usr/include/openssl/ec.h:1480:38: note: declared here - 1480 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -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:1543:28: note: declared here - 1543 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign - | ^~~~~~~~~~~~~~~~~~~~~~ -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/ec.h:1499:28: note: declared here - 1499 | 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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1494:28: note: declared here - 1494 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1752:40: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1751:46: note: declared here - 1751 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:859:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 859 | EVP_PKEY_meth_copy(pkey_ecc_methods, pkey_orig_ecc_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:28: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2079:28: note: declared here - 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -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 *)} -/usr/include/openssl/evp.h:2080: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 *)'} - 2080 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2081 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -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:2082:28: note: declared here - 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2010:28: note: declared here - 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ - | | - | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2011: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 *)'} - 2011 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2012 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1605,36 +1663,14 @@ /usr/include/openssl/evp.h:1758:27: note: declared here 1758 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -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:560:15: note: declared here - 560 | 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:565:6: note: declared here - 565 | 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); - | ^~~~~~~~~~~~~~~ +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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/tpm2-tss-engine-err.c -o src/libtpm2tss_la-tpm2-tss-engine-err.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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/tpm2-tss-engine-rsa.c -o src/libtpm2tss_la-tpm2-tss-engine-rsa.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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/tpm2-tss-engine-ecc.c -o src/libtpm2tss_la-tpm2-tss-engine-ecc.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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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/x86_64-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 +/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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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/x86_64-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" @@ -1645,11 +1681,11 @@ 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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 +/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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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/x86_64-linux-gnu/engines-3 make[1]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' dh_auto_test - make -j20 check "TESTSUITEFLAGS=-j20 --verbose" VERBOSE=1 + make -j42 check "TESTSUITEFLAGS=-j42 --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' @@ -1660,7 +1696,6 @@ 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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 @@ -1669,15 +1704,7 @@ 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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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-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); - | ^~~~~~~~~~~~~~~~~~~~ +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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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-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); @@ -1687,50 +1714,105 @@ /usr/include/openssl/ec.h:1053:39: note: declared here 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ -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.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-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); | ^~~~~~~~~~~~~~~~~ +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/ec.h:1302:27: note: declared here 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ +/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-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.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/ec.h:1397:34: note: declared here 1397 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, | ^~~~~~~~~~~~~~~~ +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-ecc.c:322:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 322 | EC_KEY_set_method(eckey, ecc_methods); | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1302:27: note: declared here 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': 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/ec.h:1053:39: note: declared here 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ +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-digest-sign.c: In function 'digest_init': +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-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-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 src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:560:15: note: declared here + 560 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +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-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); | ^~~~~~ @@ -1745,9 +1827,16 @@ src/tpm2-tss-engine-ecc.c:435:5: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 435 | return digest_sign_init(ctx, mctx, tpm2data, ECDSA_size(eckey)); | ^~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': /usr/include/openssl/ec.h:1474:27: note: declared here 1474 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); | ^~~~~~~~~~ +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:565:6: note: declared here + 565 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': src/tpm2-tss-engine-ecc.c:531:5: warning: 'EC_KEY_set_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 531 | if (!EC_KEY_set_group(key, ecgroup)) { @@ -1834,17 +1923,9 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~ /usr/include/openssl/ec.h:1499:28: note: declared here 1499 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:560:15: note: declared here - 560 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1857,13 +1938,6 @@ /usr/include/openssl/evp.h:1752:40: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ -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:565:6: note: declared here - 565 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~ @@ -1892,71 +1966,211 @@ | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2081 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:560:15: note: declared here - 560 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ /usr/include/openssl/evp.h:2082:28: note: declared here 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_enc': 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); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2010:28: note: declared here 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~ +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 /usr/include/openssl/engine.h:25, + from src/tpm2-tss-engine-rsa.c:34: +/usr/include/openssl/rsa.h:457:29: note: declared here + 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~ | | | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +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/evp.h:2011: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 *)'} 2011 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2012 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:516:7: note: declared here + 516 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, + | ^~~~~~~~~~~~~~~~~~~~~ +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-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:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +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-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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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/evp.h:2013:28: note: declared here 2013 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:387:5: note: declared here + 387 | 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:427:27: note: declared here + 427 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~ +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-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:422:27: note: declared here + 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rand.c: In function 'init_rand': 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:2034:28: note: declared here 2034 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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-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/engine.h:503:5: note: declared here + 503 | int ENGINE_set_destroy_function(ENGINE *e,ENGINE_GEN_INT_FUNC_PTR destroy_f); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +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.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-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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2074:28: note: declared here 2074 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +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); + | ^~~~~~ 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:1758:27: note: declared here 1758 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -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:565:6: note: declared here - 565 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': +src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': +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); + | ^~~~~~~~~ +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: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); + | ^~~~~ +/usr/include/openssl/rsa.h:457:29: note: declared here + 457 | 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:526:7: note: declared here + 526 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, + | ^~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/openssl/engine.h:28, + from src/tpm2-tss-engine-ecc.c:34: +/usr/include/openssl/ec.h:1053:39: note: declared here + 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +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) { + | ^~ +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': +/usr/include/openssl/rsa.h:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +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()); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': +/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-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-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); | ^~~~~~~~~ +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:457:29: note: declared here + 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/engine.h:25, from src/tpm2-tss-engine-rsa.c:34: /usr/include/openssl/rsa.h:457:29: note: declared here @@ -1965,21 +2179,53 @@ 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); | ^~~~~~ +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:516:7: note: declared here 516 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': +src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': +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-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); + | ^~~~~~~~~~~~~~~~~ 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:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ +/usr/include/openssl/ec.h:1302:27: note: declared here + 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +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:457:29: note: declared here + 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ 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, | ^~~ +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); + | ^~~ /usr/include/openssl/rsa.h:387:5: note: declared here 387 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1397:34: note: declared here + 1397 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, + | ^~~~~~~~~~~~~~~~ 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); | ^~~ @@ -1989,66 +2235,187 @@ 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-ecc.c:322:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 322 | EC_KEY_set_method(eckey, ecc_methods); + | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:422:27: note: declared here 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1302:27: note: declared here + 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +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/ec.h:1053:39: note: declared here + 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ 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:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ +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:218:27: note: declared here + 218 | 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:219:27: note: declared here + 219 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); + | ^~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': +src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': 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:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +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:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); + | ^~~~~~~~~~~~~~~~~~~ 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:526:7: note: declared here 526 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:220:27: note: declared here + 220 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:560:15: note: declared here + 560 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': +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); + | ^~~~~~ +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:212:28: note: declared here + 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); + | ^~~~~~~ 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:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ +In file included from /usr/include/openssl/rand.h:23, + from /usr/include/openssl/engine.h:29: +/usr/include/openssl/evp.h:1380:25: note: declared here + 1380 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~~~~ +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:313:27: note: declared here + 313 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); + | ^~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': +src/tpm2-tss-engine-ecc.c:430:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 430 | EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey); + | ^~~~~~~~~~~~~~~~~~~~ +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-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-ecc.c:435:5: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 435 | return digest_sign_init(ctx, mctx, tpm2data, ECDSA_size(eckey)); + | ^~~~~~ /usr/include/openssl/rsa.h:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1474:27: note: declared here + 1474 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); + | ^~~~~~~~~~ +In file included from /usr/include/openssl/rand.h:23, + from /usr/include/openssl/engine.h:29: +/usr/include/openssl/evp.h:1336:5: note: declared here + 1336 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': 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:456:27: note: declared here 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': +/usr/include/openssl/evp.h:565:6: note: declared here + 565 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 489 | RSA_free(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:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | 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)) { + | ^~ +src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': +/usr/include/openssl/rsa.h:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:531:5: warning: 'EC_KEY_set_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 531 | if (!EC_KEY_set_group(key, ecgroup)) { + | ^~ +/usr/include/openssl/ec.h:1061:27: note: declared here + 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +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:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~ +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/rsa.h:218:27: note: declared here 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ +/usr/include/openssl/ec.h:1106:28: note: declared here + 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ 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:219:27: note: declared here 219 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); | ^~~~~~~~~~~~~~~~ +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)) { + | ^~ +/usr/include/openssl/ec.h:1141:27: note: declared here + 1141 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~ @@ -2056,768 +2423,466 @@ 220 | 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: In function 'tpm2tss_rsa_genkey': +src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_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:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ +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:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:587:5: warning: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 587 | if ((eckey = EC_KEY_new()) == NULL) { + | ^~ 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:313:27: note: declared here 313 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); | ^~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:987:31: note: declared here + 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(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-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:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +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)) { + | ^~ +/usr/include/openssl/ec.h:1302:27: note: declared here + 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/rand.h:23, from /usr/include/openssl/engine.h:29: /usr/include/openssl/evp.h:1336:5: note: declared here 1336 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:599:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 599 | EC_KEY_free(eckey); + | ^~~~~~~~~~~ +/usr/include/openssl/ec.h:1022:28: note: declared here + 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': 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:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +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)) { + | ^~ +/usr/include/openssl/evp.h:1336:5: note: declared here + 1336 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); + | ^~~~~~~~~~~~~~~ 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:456:27: note: declared here 456 | 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:456:27: note: declared here - 456 | 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:456:27: note: declared here - 456 | 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:456:27: note: declared here - 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -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-rsa.c: In function 'rsa_digest_custom': -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-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:1354:22: note: declared here 1354 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ -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-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:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:605:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 605 | EC_KEY_free(eckey); + | ^~~~~~~~~~~ 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.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); - | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1022:28: note: declared here + 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +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:457:29: note: declared here 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -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-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); + | ^~~~~~ 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:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ +/usr/include/openssl/ec.h:1103:29: note: declared here + 1103 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_setappdata': +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': +src/tpm2-tss-engine-ecc.c:673:5: warning: 'EC_KEY_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 673 | return EC_KEY_set_ex_data(key, ec_key_app_data, tpm2Data); + | ^~~~~~ +/usr/include/openssl/ec.h:1102:27: note: declared here + 1102 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); + | ^~~~~~~~~~~~~~~~~~ +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:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'init_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:456:27: note: declared here + 456 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ 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:316:41: note: declared here 316 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': 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:486:35: note: declared here 486 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); | ^~~~~~~~~~~~ +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:1354:22: note: declared here + 1354 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'init_ecc': 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:488:27: note: declared here 488 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:826:5: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 826 | ecc_method_default = EC_KEY_OpenSSL(); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1298:44: note: declared here + 1298 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); + | ^~~~~~~~~~~~~~ +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: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:521:5: note: declared here 521 | int RSA_meth_set_priv_enc(RSA_METHOD *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:457:29: note: declared here + 457 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ 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:531:5: note: declared here 531 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:830:5: warning: 'EC_KEY_METHOD_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 830 | ecc_methods = EC_KEY_METHOD_new(ecc_method_default); + | ^~~~~~~~~~~ +/usr/include/openssl/ec.h:1480:38: note: declared here + 1480 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +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:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *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:563:7: note: declared here 563 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *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:1543:28: note: declared here + 1543 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign + | ^~~~~~~~~~~~~~~~~~~~~~ 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:565:5: note: declared here 565 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); | ^~~~~~~~~~~~~~~~~~~ +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/ec.h:1499:28: note: declared here + 1499 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign + | ^~~~~~~~~~~~~~~~~~~~~~ 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 'init_rsa': /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: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:316:41: note: declared here + 316 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); + | ^~~~~~~~~~~~~~~~~ +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:1494:28: note: declared here + 1494 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_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:1752:40: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ -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:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 772 | rsa_methods = RSA_meth_dup(default_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); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:486:35: note: declared here + 486 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); + | ^~~~~~~~~~~~ +/usr/include/openssl/evp.h:1752:40: note: declared here + 1752 | 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); | ^~~~~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/engine.h:28, - from src/tpm2-tss-engine-ecc.c:34: -/usr/include/openssl/ec.h:1053:39: note: declared here - 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1751:46: note: declared here 1751 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ +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:488:27: note: declared here + 488 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *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); + | ^~~~~~~~~~~~~~~~~~ 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:1755:28: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1751:46: note: declared here + 1751 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~ +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:521:5: note: declared here + 521 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2079:28: note: declared here 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy | ^~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1302:27: note: declared here - 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -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); - | ^~~ -/usr/include/openssl/ec.h:1397:34: note: declared here - 1397 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, - | ^~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:322:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 322 | EC_KEY_set_method(eckey, ecc_methods); - | ^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1302:27: note: declared here - 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:859:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 859 | EVP_PKEY_meth_copy(pkey_ecc_methods, pkey_orig_ecc_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:28: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ +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:531:5: note: declared here + 531 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~ 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 *)} -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/ec.h:1053:39: note: declared here - 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c: In function 'bind': +/usr/include/openssl/evp.h:2079:28: note: declared here + 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy + | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2080: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 *)'} 2080 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2081 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ -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-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:563:7: note: declared here + 563 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + | ^~~~~~~~~~~~~~~~~~~ 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:2082:28: note: declared here 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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-ecc.c: In function 'ecdsa_digest_custom': +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:565:5: note: declared here + 565 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); + | ^~~~~~~~~~~~~~~~~~~ +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 *)} +/usr/include/openssl/evp.h:2080: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 *)'} + 2080 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2081 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~ +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/evp.h:2010:28: note: declared here 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ -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-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); - | ^~~~~~ +/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-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:2082:28: note: declared here + 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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 *)} -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1380:25: note: declared here - 1380 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2011: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 *)'} 2011 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2012 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ -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:430:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 430 | EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey); - | ^~~~~~~~~~~~~~~~~~~~ -/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-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:2013:28: note: declared here - 2013 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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-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:2034:28: note: declared here - 2034 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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-ecc.c:435:5: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 435 | return digest_sign_init(ctx, mctx, tpm2data, ECDSA_size(eckey)); - | ^~~~~~ -/usr/include/openssl/ec.h:1474:27: note: declared here - 1474 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); - | ^~~~~~~~~~ -/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-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:2074:28: note: declared here - 2074 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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-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:1758:27: note: declared here - 1758 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': -src/tpm2-tss-engine-ecc.c:531:5: warning: 'EC_KEY_set_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 531 | if (!EC_KEY_set_group(key, ecgroup)) { - | ^~ -/usr/include/openssl/ec.h:1061:27: note: declared here - 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ -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:1106:28: note: declared here - 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ -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)) { - | ^~ -/usr/include/openssl/ec.h:1141:27: note: declared here - 1141 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_makekey': -src/tpm2-tss-engine-ecc.c:587:5: warning: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 587 | if ((eckey = EC_KEY_new()) == NULL) { - | ^~ -/usr/include/openssl/ec.h:987:31: note: declared here - 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ -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)) { - | ^~ -/usr/include/openssl/ec.h:1302:27: note: declared here - 1302 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:599:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 599 | EC_KEY_free(eckey); - | ^~~~~~~~~~~ -/usr/include/openssl/ec.h:1022:28: note: declared here - 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -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)) { - | ^~ -/usr/include/openssl/evp.h:1336:5: note: declared here - 1336 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:605:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 605 | EC_KEY_free(eckey); - | ^~~~~~~~~~~ -/usr/include/openssl/ec.h:1022:28: note: declared here - 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_getappdata': -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); - | ^~~~~~ -/usr/include/openssl/ec.h:1103:29: note: declared here - 1103 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_setappdata': -src/tpm2-tss-engine-ecc.c:673:5: warning: 'EC_KEY_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 673 | return EC_KEY_set_ex_data(key, ec_key_app_data, tpm2Data); - | ^~~~~~ -/usr/include/openssl/ec.h:1102:27: note: declared here - 1102 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'init_ecc': -src/tpm2-tss-engine-ecc.c:826:5: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 826 | ecc_method_default = EC_KEY_OpenSSL(); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1298:44: note: declared here - 1298 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); - | ^~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:830:5: warning: 'EC_KEY_METHOD_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 830 | ecc_methods = EC_KEY_METHOD_new(ecc_method_default); - | ^~~~~~~~~~~ -/usr/include/openssl/ec.h:1480:38: note: declared here - 1480 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -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:1543:28: note: declared here - 1543 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign - | ^~~~~~~~~~~~~~~~~~~~~~ -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/ec.h:1499:28: note: declared here - 1499 | 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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1494:28: note: declared here - 1494 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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-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:1752:40: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1751:46: note: declared here - 1751 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:859:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 859 | EVP_PKEY_meth_copy(pkey_ecc_methods, pkey_orig_ecc_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:28: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2079:28: note: declared here - 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -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 *)} -/usr/include/openssl/evp.h:2080: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 *)'} - 2080 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2081 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -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:2082:28: note: declared here - 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1752:40: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2010:28: note: declared here 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ +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:2013:28: note: declared here + 2013 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~ | | | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +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:1751:46: note: declared here + 1751 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2011: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 *)'} 2011 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2012 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ +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:2034:28: note: declared here + 2034 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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:2013:28: note: declared here 2013 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:28: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ +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:2074:28: note: declared here + 2074 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_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:2079:28: note: declared here + 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy + | ^~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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:2034:28: note: declared here 2034 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1758:27: note: declared here + 1758 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2074:28: note: declared here 2074 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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:1758:27: note: declared here - 1758 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ -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: 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:457:29: note: declared here - 457 | 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:516:7: note: declared here - 516 | 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:215:27: note: declared here - 215 | 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:387:5: note: declared here - 387 | 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:427:27: note: declared here - 427 | 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:422:27: note: declared here - 422 | 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:215:27: note: declared here - 215 | 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:457:29: note: declared here - 457 | 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:526:7: note: declared here - 526 | 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:215:27: note: declared here - 215 | 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:457:29: note: declared here - 457 | 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:456:27: note: declared here - 456 | 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:457:29: note: declared here - 457 | 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:218:27: note: declared here - 218 | 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:219:27: note: declared here - 219 | 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:220:27: note: declared here - 220 | 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:212:28: note: declared here - 212 | 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:313:27: note: declared here - 313 | 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:1336:5: note: declared here - 1336 | 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:304:28: note: declared here - 304 | 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:456:27: note: declared here - 456 | 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:456:27: note: declared here - 456 | 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:456:27: note: declared here - 456 | 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:456:27: note: declared here - 456 | 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:1354:22: note: declared here - 1354 | 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:457:29: note: declared here - 457 | 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:215:27: note: declared here - 215 | 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:316:41: note: declared here - 316 | 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:486:35: note: declared here - 486 | 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:488:27: note: declared here - 488 | 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:521:5: note: declared here - 521 | 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:531:5: note: declared here - 531 | 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:563:7: note: declared here - 563 | 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:565:5: note: declared here - 565 | 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:1752:40: note: declared here - 1752 | 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:1751:46: note: declared here - 1751 | 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:1755:28: note: declared here - 1755 | 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:2079:28: note: declared here - 2079 | 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); | ^~~~~~~~~~~~~~~~~~~ @@ -2828,9 +2893,15 @@ | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2081 | 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); + | ^~~~~~~~~~~~~~~~~~ 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:1758:27: note: declared here + 1758 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2082:28: note: declared here 2082 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2874,45 +2945,10 @@ /usr/include/openssl/evp.h:1758:27: note: declared here 1758 | 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); - | ^~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ -/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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -/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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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' make check-TESTS make[2]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' @@ -2940,7 +2976,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/x86_64-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/x86_64-linux-gnu/engines-3 ] || \ @@ -2959,7 +2995,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/x86_64-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/x86_64-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/x86_64-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/x86_64-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/x86_64-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/x86_64-linux-gnu/engines-3/libtpm2tss.a @@ -2992,11 +3028,11 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'libengine-tpm2-tss-openssl' in '../libengine-tpm2-tss-openssl_1.2.0-2_amd64.deb'. dpkg-deb: building package 'libengine-tpm2-tss-openssl-dbgsym' in '../libengine-tpm2-tss-openssl-dbgsym_1.2.0-2_amd64.deb'. +dpkg-deb: building package 'libengine-tpm2-tss-openssl' in '../libengine-tpm2-tss-openssl_1.2.0-2_amd64.deb'. dpkg-deb: building package 'tpm2-tss-engine-dev' in '../tpm2-tss-engine-dev_1.2.0-2_all.deb'. -dpkg-deb: building package 'tpm2-tss-engine-tools-dbgsym' in '../tpm2-tss-engine-tools-dbgsym_1.2.0-2_amd64.deb'. dpkg-deb: building package 'tpm2-tss-engine-tools' in '../tpm2-tss-engine-tools_1.2.0-2_amd64.deb'. +dpkg-deb: building package 'tpm2-tss-engine-tools-dbgsym' in '../tpm2-tss-engine-tools-dbgsym_1.2.0-2_amd64.deb'. dpkg-genbuildinfo --build=binary -O../tpm2-tss-engine_1.2.0-2_amd64.buildinfo dpkg-genchanges --build=binary -O../tpm2-tss-engine_1.2.0-2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -3005,12 +3041,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/1047827/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1047827/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/1944641 and its subdirectories -I: Current time: Mon Jun 3 04:47:50 -12 2024 -I: pbuilder-time-stamp: 1717433270 +I: removing directory /srv/workspace/pbuilder/1047827 and its subdirectories +I: Current time: Mon Jul 7 13:12:23 +14 2025 +I: pbuilder-time-stamp: 1751843543