Diff of the two buildlogs: -- --- b1/build.log 2024-04-24 20:44:48.771068013 +0000 +++ b2/build.log 2024-04-24 20:51:09.230823907 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue May 27 15:06:41 -12 2025 -I: pbuilder-time-stamp: 1748401601 +I: Current time: Thu Apr 25 10:44:52 +14 2024 +I: pbuilder-time-stamp: 1713991492 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-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/724878/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3778537/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-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 Apr 24 20:45 /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/3778537/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3778537/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=42 ' - DISTRIBUTION='trixie' - 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=20 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='ed47d56eff4d4793a02c2340030c7238' - 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='724878' - PS1='# ' - PS2='> ' + INVOCATION_ID=768244a9e7d1483ea41cbfb552ac284f + 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=3778537 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.bU64oHGL/pbuilderrc_xzUa --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.bU64oHGL/b1 --logfile b1/build.log tpm2-tss-engine_1.2.0-2.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.bU64oHGL/pbuilderrc_ZcJa --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.bU64oHGL/b2 --logfile b2/build.log tpm2-tss-engine_1.2.0-2.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 25 19:07 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/724878/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 22 13:10 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3778537/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -273,7 +305,7 @@ Get: 84 http://deb.debian.org/debian trixie/main amd64 pandoc amd64 3.1.3+ds-2 [24.3 MB] Get: 85 http://deb.debian.org/debian trixie/main amd64 pkgconf-bin amd64 1.8.1-1+b2 [29.7 kB] Get: 86 http://deb.debian.org/debian trixie/main amd64 pkgconf amd64 1.8.1-1+b2 [26.2 kB] -Fetched 61.4 MB in 1s (103 MB/s) +Fetched 61.4 MB in 5s (11.7 MB/s) debconf: delaying package configuration, since apt-utils is not installed dpkg: libnettle8:amd64: dependency problems, but removing anyway as you requested: libhogweed6:amd64 depends on libnettle8. @@ -674,7 +706,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/3778537/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/3778537/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 @@ -926,7 +962,7 @@ make[1]: Leaving directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' dh_auto_build - make -j42 + make -j20 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 @@ -936,22 +972,22 @@ mkdir -p man/man3 && cat man/tpm2tss_ecc_genkey.3.md | /usr/bin/pandoc -s -t man >man/man3/tpm2tss_ecc_genkey.3 mkdir -p man/man3 && cat man/tpm2tss_ecc_getappdata.3.md | /usr/bin/pandoc -s -t man >man/man3/tpm2tss_ecc_getappdata.3 gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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-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.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-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-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-ecc.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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-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-rsa.c -fPIC -DPIC -o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o src/tpm2tss-genkey.c: In function 'genkey_rsa': src/tpm2tss-genkey.c:253:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 253 | rsa = RSA_new(); @@ -1054,140 +1090,52 @@ /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, | ^~~~~~~~~~~ -src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': -src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 63 | md = EVP_MD_CTX_md(ctx); - | ^~ -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:557:15: note: declared here - 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ -src/tpm2-tss-engine.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-digest-sign.c: In function 'digest_sign_init': -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-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:562:6: note: declared here - 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.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); - | ^~~~~~~~~~~~~~~ +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-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); | ^~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/engine.h:25, from src/tpm2-tss-engine-rsa.c:34: /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine.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:120:9: warning: 'RSA_meth_get_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 120 | return RSA_meth_get_priv_enc(default_rsa)(flen, from, to, rsa, padding); | ^~~~~~ /usr/include/openssl/rsa.h:511:7: note: declared here 511 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.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-rsa.c:137:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 137 | digest.size = RSA_size(rsa); | ^~~~~~ /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': src/tpm2-tss-engine-rsa.c:145:9: warning: 'RSA_padding_add_PKCS1_type_1' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 145 | ret = RSA_padding_add_PKCS1_type_1(&digest.buffer[0], digest.size, | ^~~ /usr/include/openssl/rsa.h:382:5: note: declared here 382 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { - | ^~ -src/tpm2-tss-engine-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(); - | ^~~~~ -/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:149:9: warning: 'RSA_padding_add_X931' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 149 | ret = RSA_padding_add_X931(&digest.buffer[0], digest.size, from, flen); | ^~~ /usr/include/openssl/rsa.h:422:27: note: declared here 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/engine.h:29, - from src/tpm2-tss-engine-common.c:39: -/usr/include/openssl/rand.h:50:42: note: declared here - 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); - | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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-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/rsa.h:417:27: note: declared here 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:55:36: note: declared here - 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: 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-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:179:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 179 | if (ret > RSA_size(rsa) || ret <= 0) { | ^~ /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -In file included from /usr/include/openssl/engine.h:28, - from src/tpm2-tss-engine-ecc.c:34: -/usr/include/openssl/ec.h:1037:39: note: declared here - 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': src/tpm2-tss-engine-rsa.c:218:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 218 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); @@ -1201,58 +1149,52 @@ /usr/include/openssl/rsa.h:521:7: note: declared here 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rand.c: In function 'init_rand': -src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 150 | return ENGINE_set_RAND(e, &rand_methods); - | ^~~~~~ -In file included from src/tpm2-tss-engine-rand.c:34: -/usr/include/openssl/engine.h:501:27: note: declared here - 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': +src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); + | ^~~~~ +In file included from /usr/include/openssl/engine.h:29, + from src/tpm2-tss-engine-common.c:39: +/usr/include/openssl/rand.h:50:42: note: declared here + 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:55:36: note: declared here + 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 296 | RAND_set_rand_method(rand_save); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:274:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 274 | if (flen > RSA_size(rsa) || flen <= 0) { | ^~ /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -src/tpm2-tss-engine-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:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': -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:1381:34: note: declared here - 1381 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, - | ^~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:307:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 307 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); | ^~~~~~~~~ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 311 | RSA_set_app_data(rsa, NULL); | ^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1037:39: note: declared here - 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function '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); @@ -1260,16 +1202,12 @@ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 442 | RSA_set0_key(rsa, n, e, d); | ^~~~~~~~~~~~ /usr/include/openssl/rsa.h:213:27: note: declared here 213 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ -src/tpm2-tss-engine-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:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 443 | RSA_set0_factors(rsa, p, q); | ^~~~~~~~~~~~~~~~ @@ -1282,27 +1220,13 @@ /usr/include/openssl/rsa.h:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, | ^~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1377:25: note: declared here - 1377 | 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: 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) { | ^~ -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:207:28: note: declared here 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ -/usr/include/openssl/ec.h:1458:27: note: declared here - 1458 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); - | ^~~~~~~~~~ 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); | ^~~~~~~~~~~~~~ @@ -1317,111 +1241,47 @@ /usr/include/openssl/evp.h:1333:5: note: declared here 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1045:27: note: declared here - 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 489 | RSA_free(rsa); | ^~~~~~~~ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -src/tpm2-tss-engine-ecc.c:536:5: warning: 'EC_KEY_set_asn1_flag' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 536 | EC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1090:28: note: declared here - 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { | ^~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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)) { - | ^~ 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/ec.h:1125:27: note: declared here - 1125 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: 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:971:31: note: declared here - 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': -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:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { | ^~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1006:28: note: declared here - 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 603 | RSA_set_app_data(rsa, NULL); | ^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1333:5: note: declared here - 1333 | 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:1006:28: note: declared here - 1006 | 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-ecc.c: In function 'tpm2tss_ecc_getappdata': src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); | ^~~ /usr/include/openssl/evp.h:1351:22: note: declared here 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1087:29: note: declared here - 1087 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); - | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_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:1086:27: note: declared here - 1086 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); - | ^~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~ @@ -1435,43 +1295,24 @@ 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'init_rsa': -src/tpm2-tss-engine-ecc.c: In function 'init_ecc': src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 768 | default_rsa = RSA_PKCS1_OpenSSL(); | ^~~~~~~~~~~ /usr/include/openssl/rsa.h:311:41: note: declared here 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1282:44: note: declared here - 1282 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); - | ^~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 772 | rsa_methods = RSA_meth_dup(default_rsa); | ^~~~~~~~~~~ /usr/include/openssl/rsa.h:481:35: note: declared here 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); | ^~~~~~~~~~~~ -src/tpm2-tss-engine-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:1464:38: note: declared here - 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:483:27: note: declared here 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:837:5: warning: 'EC_KEY_METHOD_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 837 | EC_KEY_METHOD_get_sign(ecc_methods, &orig_sign, NULL, NULL); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1527:28: note: declared here - 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign - | ^~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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); | ^~~~~~~~~~~~~~~~~~~~~ @@ -1481,163 +1322,83 @@ src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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/rsa.h:526:5: note: declared here 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1483:28: note: declared here - 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:839:5: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 839 | EC_KEY_METHOD_set_compute_key(ecc_methods, ecdh_compute_key); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); | ^~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:558:7: note: declared here 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); | ^~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1478:28: note: declared here - 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:777:5: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 777 | RSA_meth_set_finish(rsa_methods, rsa_finish); | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:560:5: note: declared here 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1749:40: note: declared here - 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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-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:1748:46: note: declared here - 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, | ^~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1749:40: note: declared here 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1752:28: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1748:46: note: declared here 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:2073:28: note: declared here - 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1752:28: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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 *)} src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2073:28: note: declared here 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2075 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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:865:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 865 | EVP_PKEY_meth_get_cleanup(pkey_ecc_methods, &ecdsa_pkey_orig_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2076:28: note: declared here - 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2075 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:2004:28: note: declared here - 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_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:2076:28: note: declared here 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_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:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2004:28: note: declared here 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2006 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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 *)} -src/tpm2-tss-engine-ecc.c:868:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 868 | EVP_PKEY_meth_set_cleanup(pkey_ecc_methods, ecdsa_pkey_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2007:28: note: declared here - 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 2006 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2028:28: note: declared here - 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1647,24 +1408,12 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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:2028:28: note: declared here 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2068:28: note: declared here - 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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: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:1755:27: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2068:28: note: declared here 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1674,46 +1423,21 @@ /usr/include/openssl/evp.h:1755:27: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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.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-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-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 -libtool: link: /usr/bin/nm -B src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o | /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libtpm2tss.exp -libtool: link: /usr/bin/grep -E -e "(tpm2tss*|bind_engine|v_check)" ".libs/libtpm2tss.exp" > ".libs/libtpm2tss.expT" -libtool: link: mv -f ".libs/libtpm2tss.expT" ".libs/libtpm2tss.exp" -libtool: link: echo "{ global:" > .libs/libtpm2tss.ver -libtool: link: cat .libs/libtpm2tss.exp | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libtpm2tss.ver -libtool: link: echo "local: *; };" >> .libs/libtpm2tss.ver -libtool: link: gcc -shared -fPIC -DPIC src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -fstack-protector-all -g -O2 -fstack-protector-strong -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -Wl,-soname -Wl,libtpm2tss.so -Wl,-version-script -Wl,.libs/libtpm2tss.ver -o .libs/libtpm2tss.so -libtool: link: ar cr .libs/libtpm2tss.a src/libtpm2tss_la-tpm2-tss-engine.o src/libtpm2tss_la-tpm2-tss-engine-common.o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/libtpm2tss_la-tpm2-tss-engine-err.o src/libtpm2tss_la-tpm2-tss-engine-ecc.o src/libtpm2tss_la-tpm2-tss-engine-rand.o src/libtpm2tss_la-tpm2-tss-engine-rsa.o -libtool: link: ranlib .libs/libtpm2tss.a -libtool: link: ( cd ".libs" && rm -f "libtpm2tss.la" && ln -s "../libtpm2tss.la" "libtpm2tss.la" ) -/bin/bash ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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 -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' -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.o `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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 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 -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-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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 +src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': +src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 63 | md = EVP_MD_CTX_md(ctx); + | ^~ +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:557:15: note: declared here + 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': +src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:562:6: note: declared here + 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-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); @@ -1722,15 +1446,7 @@ /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-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.c: In function 'bind': -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:557:15: note: declared here - 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ src/tpm2-tss-engine.c:329:5: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 329 | if (!ENGINE_set_id(e, engine_id)) { | ^~ @@ -1772,45 +1488,270 @@ 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-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); - | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/engine.h:28, from src/tpm2-tss-engine-ecc.c:34: /usr/include/openssl/ec.h:1037:39: note: declared here 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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-digest-sign.c: In function 'digest_sign_init': -src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 296 | RAND_set_rand_method(rand_save); - | ^~~~~~~~~~~~~~~~~~~~ -/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:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:562:6: note: declared here - 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, - | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': +src/tpm2-tss-engine-ecc.c:320:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 320 | EC_KEY_set_method(eckey, ecc_method_default); + | ^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1286:27: note: declared here + 1286 | 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:1381:34: note: declared here + 1381 | 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:1286:27: note: declared here + 1286 | 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:1037:39: note: declared here + 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +src/tpm2-tss-engine-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:1377:25: note: declared here + 1377 | 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:1458:27: note: declared here + 1458 | 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:1045:27: note: declared here + 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:536:5: warning: 'EC_KEY_set_asn1_flag' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 536 | EC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1090:28: note: declared here + 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1125:27: note: declared here + 1125 | 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:971:31: note: declared here + 971 | 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:1286:27: note: declared here + 1286 | 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:1006:28: note: declared here + 1006 | 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:1333:5: note: declared here + 1333 | 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:1006:28: note: declared here + 1006 | 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:1087:29: note: declared here + 1087 | 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:1086:27: note: declared here + 1086 | 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:1282:44: note: declared here + 1282 | 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:1464:38: note: declared here + 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:837:5: warning: 'EC_KEY_METHOD_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 837 | EC_KEY_METHOD_get_sign(ecc_methods, &orig_sign, NULL, NULL); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1527:28: note: declared here + 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1483:28: note: declared here + 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:839:5: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 839 | EC_KEY_METHOD_set_compute_key(ecc_methods, ecdh_compute_key); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1478:28: note: declared here + 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1749:40: note: declared here + 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1748:46: note: declared here + 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: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:1752:28: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: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:2073:28: note: declared here + 2073 | 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:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2075 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:865:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 865 | EVP_PKEY_meth_get_cleanup(pkey_ecc_methods, &ecdsa_pkey_orig_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2076:28: note: declared here + 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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:2004:28: note: declared here + 2004 | 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:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2006 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:868:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 868 | EVP_PKEY_meth_set_cleanup(pkey_ecc_methods, ecdsa_pkey_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2007:28: note: declared here + 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2028:28: note: declared here + 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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:2068:28: note: declared here + 2068 | 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:1755:27: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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-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.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-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/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" +libtool: link: echo "{ global:" > .libs/libtpm2tss.ver +libtool: link: cat .libs/libtpm2tss.exp | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libtpm2tss.ver +libtool: link: echo "local: *; };" >> .libs/libtpm2tss.ver +libtool: link: gcc -shared -fPIC -DPIC src/.libs/libtpm2tss_la-tpm2-tss-engine.o src/.libs/libtpm2tss_la-tpm2-tss-engine-common.o src/.libs/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/.libs/libtpm2tss_la-tpm2-tss-engine-err.o src/.libs/libtpm2tss_la-tpm2-tss-engine-ecc.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rand.o src/.libs/libtpm2tss_la-tpm2-tss-engine-rsa.o -ltss2-esys -ltss2-mu -ltss2-tctildr -lcrypto -fstack-protector-all -g -O2 -fstack-protector-strong -Wl,--no-undefined -Wl,-z -Wl,noexecstack -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs -Wl,-soname -Wl,libtpm2tss.so -Wl,-version-script -Wl,.libs/libtpm2tss.ver -o .libs/libtpm2tss.so +libtool: link: ar cr .libs/libtpm2tss.a src/libtpm2tss_la-tpm2-tss-engine.o src/libtpm2tss_la-tpm2-tss-engine-common.o src/libtpm2tss_la-tpm2-tss-engine-digest-sign.o src/libtpm2tss_la-tpm2-tss-engine-err.o src/libtpm2tss_la-tpm2-tss-engine-ecc.o src/libtpm2tss_la-tpm2-tss-engine-rand.o src/libtpm2tss_la-tpm2-tss-engine-rsa.o +libtool: link: ranlib .libs/libtpm2tss.a +libtool: link: ( cd ".libs" && rm -f "libtpm2tss.la" && ln -s "../libtpm2tss.la" "libtpm2tss.la" ) +/bin/sh ./libtool --tag=CC --mode=link gcc -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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[1]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' +make test/error_tpm2-tss-engine-common test/tpm2-tss-engine-common +make[2]: Entering directory '/build/reproducible-path/tpm2-tss-engine-1.2.0' +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine.o `test -f 'src/tpm2-tss-engine.c' || echo './'`src/tpm2-tss-engine.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-common.o `test -f 'src/tpm2-tss-engine-common.c' || echo './'`src/tpm2-tss-engine-common.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-digest-sign.o `test -f 'src/tpm2-tss-engine-digest-sign.c' || echo './'`src/tpm2-tss-engine-digest-sign.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_error_tpm2_tss_engine_common-tpm2-tss-engine-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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 +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-err.o `test -f 'src/tpm2-tss-engine-err.c' || echo './'`src/tpm2-tss-engine-err.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/test_tpm2_tss_engine_common-tpm2-tss-engine-ecc.o `test -f 'src/tpm2-tss-engine-ecc.c' || echo './'`src/tpm2-tss-engine-ecc.c +gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -DNEG_HANDLE_PEM=\"./test/neg-handle.pem\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/tpm2-tss-engine-1.2.0=. -fstack-protector-strong -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.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)) { @@ -1825,91 +1766,47 @@ /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-common.c: In function 'tpm2tss_tpm2data_readtpm': -src/tpm2-tss-engine-ecc.c: In function 'ecdsa_ec_key_sign': -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.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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/engine.h:29, - from src/tpm2-tss-engine-common.c:39: -/usr/include/openssl/rand.h:50:42: note: declared here - 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -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.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-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 267 | RAND_set_rand_method(RAND_OpenSSL()); - | ^~~~~~~~~~~~~~~~~~~~ -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/rand.h:55:36: note: declared here - 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); - | ^~~~~~~~~~~~ -/usr/include/openssl/ec.h:1381:34: note: declared here - 1381 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, - | ^~~~~~~~~~~~~~~~ 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-rsa.c: In function 'rsa_priv_enc': -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:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine.c:360:5: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 360 | if (!ENGINE_set_cmd_defns(e, cmd_defns)) { | ^~ /usr/include/openssl/engine.h:526:27: note: declared here 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rand.c: In function 'init_rand': +src/tpm2-tss-engine-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); | ^~~~~~~~~ -src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 296 | RAND_set_rand_method(rand_save); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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; - | ^~~ In file included from /usr/include/openssl/engine.h:25, from src/tpm2-tss-engine-rsa.c:34: /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -/usr/include/openssl/rand.h:49:27: note: declared here - 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1037:39: note: declared here - 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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); | ^~~~~~ @@ -1940,125 +1837,44 @@ /usr/include/openssl/rsa.h:417:27: note: declared here 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': -src/tpm2-tss-engine-ecc.c:195:5: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 195 | const EC_GROUP *group = EC_KEY_get0_group(eckey); - | ^~~~~ -src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': -In file included from /usr/include/openssl/engine.h:28, - from src/tpm2-tss-engine-ecc.c:34: -/usr/include/openssl/ec.h:1037:39: note: declared here - 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:179:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 179 | if (ret > RSA_size(rsa) || ret <= 0) { | ^~ /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1377:25: note: declared here - 1377 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~ -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/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:225:9: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 225 | return RSA_meth_get_priv_dec(default_rsa)(flen, from, to, rsa, padding); | ^~~~~~ -src/tpm2-tss-engine-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)); - | ^~~~~~ -In file included from src/tpm2-tss-engine-digest-sign.c:34: -/usr/include/openssl/evp.h:557:15: note: declared here - 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); - | ^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:521:7: note: declared here 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1458:27: note: declared here - 1458 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); - | ^~~~~~~~~~ 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-ecc.c: In function 'ecdsa_ec_key_sign': /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -src/tpm2-tss-engine-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-ecc.c: In function 'populate_ecc': -/usr/include/openssl/ec.h:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rand.c: In function 'init_rand': -src/tpm2-tss-engine-ecc.c:321:9: warning: 'ECDSA_do_sign_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 321 | ret = ECDSA_do_sign_ex(dgst, dgst_len, inv, rp, eckey); - | ^~~ src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': -/usr/include/openssl/ec.h:1381:34: note: declared here - 1381 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, - | ^~~~~~~~~~~~~~~~ -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)) { - | ^~ -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/ec.h:1045:27: note: declared here - 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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: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:1286:27: note: declared here - 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -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:536:5: warning: 'EC_KEY_set_asn1_flag' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 536 | EC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1090:28: note: declared here - 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 311 | RSA_set_app_data(rsa, NULL); | ^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1037:39: note: declared here - 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function '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); @@ -2066,6 +1882,300 @@ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 442 | RSA_set0_key(rsa, n, e, d); + | ^~~~~~~~~~~~ +/usr/include/openssl/rsa.h:213:27: note: declared here + 213 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 443 | RSA_set0_factors(rsa, p, q); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:214:27: note: declared here + 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:215:27: note: declared here + 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': +src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 476 | if ((rsa = RSA_new()) == NULL) { + | ^~ +/usr/include/openssl/rsa.h:207:28: note: declared here + 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); + | ^~~~~~~ +src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 484 | RSA_set_method(rsa, rsa_methods); + | ^~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:308:27: note: declared here + 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); + | ^~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:487:5: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 487 | if (!EVP_PKEY_assign_RSA(pkey, rsa)) { + | ^~ +In file included from /usr/include/openssl/rand.h:23, + from /usr/include/openssl/engine.h:29: +/usr/include/openssl/evp.h:1333:5: note: declared here + 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 489 | RSA_free(rsa); + | ^~~~~~~~ +/usr/include/openssl/rsa.h:299:28: note: declared here + 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:499:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 499 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': +src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 603 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': +src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~ +/usr/include/openssl/evp.h:1351:22: note: declared here + 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); + | ^~~~~~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'init_rsa': +src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 768 | default_rsa = RSA_PKCS1_OpenSSL(); + | ^~~~~~~~~~~ +/usr/include/openssl/rsa.h:311:41: note: declared here + 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 772 | rsa_methods = RSA_meth_dup(default_rsa); + | ^~~~~~~~~~~ +/usr/include/openssl/rsa.h:481:35: note: declared here + 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:483:27: note: declared here + 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); + | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:516:5: note: declared here + 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); + | ^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:526:5: note: declared here + 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, + | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); + | ^~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:558:7: note: declared here + 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:777:5: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 777 | RSA_meth_set_finish(rsa_methods, rsa_finish); + | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:560:5: note: declared here + 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); + | ^~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:779:5: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 779 | if (!ENGINE_set_RSA(e, rsa_methods)) + | ^~ +/usr/include/openssl/engine.h:497:27: note: declared here + 497 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); + | ^~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1749:40: note: declared here + 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1748:46: note: declared here + 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1752:28: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:802:5: warning: 'EVP_PKEY_meth_get_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2073:28: note: declared here + 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] + 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); + | ^~~~~~~~~~~~~~~~~~~ + | | + | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2075 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2076:28: note: declared here + 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:805:5: warning: 'EVP_PKEY_meth_set_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2004:28: note: declared here + 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] + 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); + | ^~~~~~~~~~~~~ + | | + | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} +/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2006 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:806:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 806 | EVP_PKEY_meth_set_cleanup(pkey_rsa_methods, rsa_pkey_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2007:28: note: declared here + 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2028:28: note: declared here + 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2068:28: note: declared here + 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:27: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ +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-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-digest-sign.c: In function 'digest_init': +src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 63 | md = EVP_MD_CTX_md(ctx); + | ^~ +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:557:15: note: declared here + 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); @@ -2073,6 +2183,113 @@ /usr/include/openssl/evp.h:562:6: note: declared here 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_init': +src/tpm2-tss-engine-digest-sign.c:63:5: warning: 'EVP_MD_CTX_md' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 63 | md = EVP_MD_CTX_md(ctx); + | ^~ +In file included from src/tpm2-tss-engine-digest-sign.c:34: +/usr/include/openssl/evp.h:557:15: note: declared here + 557 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); + | ^~~~~~~~~~~~~ +src/tpm2-tss-engine-digest-sign.c: In function 'digest_sign_init': +src/tpm2-tss-engine-digest-sign.c:206:5: warning: 'EVP_MD_CTX_set_update_fn' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 206 | EVP_MD_CTX_set_update_fn(mctx, digest_update); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:562:6: note: declared here + 562 | void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c: In function 'tpm2tss_tpm2data_readtpm': +src/tpm2-tss-engine-common.c:263:9: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 263 | const RAND_METHOD *rand_save = RAND_get_rand_method(); + | ^~~~~ +In file included from /usr/include/openssl/engine.h:29, + from src/tpm2-tss-engine-common.c:39: +/usr/include/openssl/rand.h:50:42: note: declared here + 50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:267:9: warning: 'RAND_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 267 | RAND_set_rand_method(RAND_OpenSSL()); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:55:36: note: declared here + 55 | OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void); + | ^~~~~~~~~~~~ +src/tpm2-tss-engine-common.c:296:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 296 | RAND_set_rand_method(rand_save); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/rand.h:49:27: note: declared here + 49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1037:39: note: declared here + 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_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:1286:27: note: declared here + 1286 | 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:1381:34: note: declared here + 1381 | 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:1286:27: note: declared here + 1286 | 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:1037:39: note: declared here + 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +src/tpm2-tss-engine-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:1377:25: note: declared here + 1377 | 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:1458:27: note: declared here + 1458 | 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:1045:27: note: declared here + 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:536:5: warning: 'EC_KEY_set_asn1_flag' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 536 | EC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE); + | ^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1090:28: note: declared here + 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-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)) { | ^~ @@ -2086,112 +2303,154 @@ /usr/include/openssl/ec.h:971:31: note: declared here 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': -src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 442 | RSA_set0_key(rsa, n, e, d); - | ^~~~~~~~~~~~ -/usr/include/openssl/rsa.h:213:27: note: declared here - 213 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); - | ^~~~~~~~~~~~ -src/tpm2-tss-engine-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-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:1286:27: note: declared here 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:443:5: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 443 | RSA_set0_factors(rsa, p, q); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:214:27: note: declared here - 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); - | ^~~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1377:25: note: declared here - 1377 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); - | ^~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:215:27: note: declared here - 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, - | ^~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-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:1006:28: note: declared here 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ -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: In function 'tpm2tss_rsa_makekey': -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-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/ec.h:1458:27: note: declared here - 1458 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); - | ^~~~~~~~~~ /usr/include/openssl/evp.h:1333:5: note: declared here 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 476 | if ((rsa = RSA_new()) == NULL) { - | ^~ -/usr/include/openssl/rsa.h:207:28: note: declared here - 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); - | ^~~~~~~ src/tpm2-tss-engine-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:1006:28: note: declared here 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 484 | RSA_set_method(rsa, rsa_methods); - | ^~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:308:27: note: declared here - 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); - | ^~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_getappdata': -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-rand.c: In function 'init_rand': +src/tpm2-tss-engine-rand.c:150:5: warning: 'ENGINE_set_RAND' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 150 | return ENGINE_set_RAND(e, &rand_methods); + | ^~~~~~ +In file included from src/tpm2-tss-engine-rand.c:34: +/usr/include/openssl/engine.h:501:27: note: declared here + 501 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); + | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: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:1087:29: note: declared here 1087 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); | ^~~~~~~~~~~~~~~~~~ -In file included from /usr/include/openssl/rand.h:23, - from /usr/include/openssl/engine.h:29: -/usr/include/openssl/evp.h:1333:5: note: declared here - 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); - | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_setappdata': -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); - | ^~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdh_compute_key': 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); | ^~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': /usr/include/openssl/ec.h:1086:27: note: declared here 1086 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 489 | RSA_free(rsa); - | ^~~~~~~~ -/usr/include/openssl/rsa.h:299:28: note: declared here - 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ +src/tpm2-tss-engine-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:1037:39: note: declared here + 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function '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:1282:44: note: declared here + 1282 | 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); + | ^~~~~~~~~~~ +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:1286:27: note: declared here + 1286 | 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:1381:34: note: declared here + 1381 | 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:1286:27: note: declared here + 1286 | 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:1037:39: note: declared here + 1037 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1464:38: note: declared here + 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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); + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: In function 'ecdsa_digest_custom': +/usr/include/openssl/ec.h:1527:28: note: declared here + 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1377:25: note: declared here + 1377 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~~~~ +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:1483:28: note: declared here + 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:839:5: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 839 | EC_KEY_METHOD_set_compute_key(ecc_methods, ecdh_compute_key); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1478:28: note: declared here + 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1749:40: note: declared here + 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1748:46: note: declared here + 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: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:1752:28: note: declared here + 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, + | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: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: 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); + | ^~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/engine.h:25, from src/tpm2-tss-engine-rsa.c:34: /usr/include/openssl/rsa.h:452:29: note: declared here @@ -2203,225 +2462,207 @@ /usr/include/openssl/rsa.h:511:7: note: declared here 511 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { - | ^~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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)) { - | ^~ +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:1458:27: note: declared here + 1458 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); + | ^~~~~~~~~~ src/tpm2-tss-engine-rsa.c:137:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 137 | digest.size = RSA_size(rsa); | ^~~~~~ /usr/include/openssl/rsa.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -/usr/include/openssl/ec.h:1045:27: note: declared here - 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:145:9: warning: 'RSA_padding_add_PKCS1_type_1' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 145 | ret = RSA_padding_add_PKCS1_type_1(&digest.buffer[0], digest.size, | ^~~ /usr/include/openssl/rsa.h:382:5: note: declared here 382 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:499:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 499 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:149:9: warning: 'RSA_padding_add_X931' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 149 | ret = RSA_padding_add_X931(&digest.buffer[0], digest.size, from, flen); | ^~~ /usr/include/openssl/rsa.h:422:27: note: declared here 422 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_X931(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:536:5: warning: 'EC_KEY_set_asn1_flag' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 536 | EC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE); - | ^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1090:28: note: declared here - 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:152:9: warning: 'RSA_padding_add_none' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 152 | ret = RSA_padding_add_none(&digest.buffer[0], digest.size, from, flen); | ^~~ /usr/include/openssl/rsa.h:417:27: note: declared here 417 | OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, | ^~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1125:27: note: declared here - 1125 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(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:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ -src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_makekey': -src/tpm2-tss-engine-ecc.c: In function 'init_ecc': +src/tpm2-tss-engine-ecc.c: In function 'populate_ecc': src/tpm2-tss-engine-rsa.c: In function 'rsa_priv_dec': -src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': src/tpm2-tss-engine-rsa.c:218:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 218 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); | ^~~~~~~~~ /usr/include/openssl/rsa.h:452:29: note: declared here 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:971:31: note: declared here - 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ src/tpm2-tss-engine-rsa.c:225:9: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 225 | return RSA_meth_get_priv_dec(default_rsa)(flen, from, to, rsa, padding); | ^~~~~~ /usr/include/openssl/rsa.h:521:7: note: declared here 521 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { +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:1045:27: note: declared here + 1045 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:274:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 274 | if (flen > RSA_size(rsa) || flen <= 0) { | ^~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': +src/tpm2-tss-engine-rsa.c:307:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 307 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1090:28: note: declared here + 1090 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 311 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1282:44: note: declared here - 1282 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); - | ^~~~~~~~~~~~~~ +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/evp.h:2073:28: note: declared here + 2073 | 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:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ + 2075 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:865:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 865 | EVP_PKEY_meth_get_cleanup(pkey_ecc_methods, &ecdsa_pkey_orig_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2076:28: note: declared here + 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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:2004:28: note: declared here + 2004 | 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:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2006 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:868:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 868 | EVP_PKEY_meth_set_cleanup(pkey_ecc_methods, ecdsa_pkey_cleanup); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2007:28: note: declared here + 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:1125:27: note: declared here + 1125 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2028:28: note: declared here + 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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) { + | ^~ +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:2068:28: note: declared here + 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:971:31: note: declared here + 971 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); + | ^~~~~~~~~~ src/tpm2-tss-engine-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)) { | ^~ +src/tpm2-tss-engine-ecc.c:871:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 871 | EVP_PKEY_meth_add0(pkey_ecc_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:27: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1286:27: note: declared here 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 603 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1464:38: note: declared here - 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-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:1006:28: note: declared here 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(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) { - | ^~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ src/tpm2-tss-engine-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/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1333:5: note: declared here 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': -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); - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_finish': -/usr/include/openssl/ec.h:1527:28: note: declared here - 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: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: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:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 442 | RSA_set0_key(rsa, n, e, d); + | ^~~~~~~~~~~~ /usr/include/openssl/ec.h:1006:28: note: declared here 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~ -/usr/include/openssl/evp.h:1351:22: note: declared here - 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:311:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 311 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_getappdata': -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:1483:28: note: declared here - 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'populate_rsa': -src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:331:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 331 | TPM2_DATA *tpm2Data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: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:1087:29: note: declared here 1087 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:839:5: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 839 | EC_KEY_METHOD_set_compute_key(ecc_methods, ecdh_compute_key); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: In function 'tpm2tss_ecc_setappdata': -/usr/include/openssl/ec.h:1478:28: note: declared here - 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-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:1086:27: note: declared here 1086 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); - | ^~~~~~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-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:1749:40: note: declared here - 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:442:5: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 442 | RSA_set0_key(rsa, n, e, d); - | ^~~~~~~~~~~~ /usr/include/openssl/rsa.h:213:27: note: declared here 213 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ @@ -2431,12 +2672,6 @@ /usr/include/openssl/rsa.h:214:27: note: declared here 214 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); | ^~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:1748:46: note: declared here - 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:444:5: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 444 | RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); | ^~~~~~~~~~~~~~~~~~~ @@ -2444,269 +2679,138 @@ 215 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r, | ^~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_makekey': -src/tpm2-tss-engine-rsa.c: In function 'init_rsa': -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:1752:28: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:476:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 476 | if ((rsa = RSA_new()) == NULL) { | ^~ /usr/include/openssl/rsa.h:207:28: note: declared here 207 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ -src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 768 | default_rsa = RSA_PKCS1_OpenSSL(); - | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:311:41: note: declared here - 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:484:5: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 484 | RSA_set_method(rsa, rsa_methods); | ^~~~~~~~~~~~~~ -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-ecc.c: In function 'init_ecc': /usr/include/openssl/rsa.h:308:27: note: declared here 308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); | ^~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2073:28: note: declared here - 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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-ecc.c:826:5: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 826 | ecc_method_default = EC_KEY_OpenSSL(); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:772:5: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 772 | rsa_methods = RSA_meth_dup(default_rsa); - | ^~~~~~~~~~~ -/usr/include/openssl/rsa.h:481:35: note: declared here - 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); - | ^~~~~~~~~~~~ -/usr/include/openssl/ec.h:1282:44: note: declared here - 1282 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); - | ^~~~~~~~~~~~~~ -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:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2075 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/rand.h:23, from /usr/include/openssl/engine.h:29: /usr/include/openssl/evp.h:1333:5: note: declared here 1333 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:483:27: note: declared here - 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, - | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:489:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 489 | RSA_free(rsa); | ^~~~~~~~ /usr/include/openssl/rsa.h:299:28: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -src/tpm2-tss-engine-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:1464:38: note: declared here - 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:865:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 865 | EVP_PKEY_meth_get_cleanup(pkey_ecc_methods, &ecdsa_pkey_orig_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2076:28: note: declared here - 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:493:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 493 | if (!RSA_set_app_data(rsa, tpm2Data)) { | ^~ /usr/include/openssl/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:774:5: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 774 | RSA_meth_set_priv_enc(rsa_methods, rsa_priv_enc); - | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:516:5: note: declared here - 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:2004:28: note: declared here - 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy - | ^~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~ -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/rsa.h:451:27: note: declared here 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: 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:1282:44: note: declared here + 1282 | 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); + | ^~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': +src/tpm2-tss-engine-rsa.c:590:5: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 590 | if (!RSA_set_app_data(rsa, tpm2Data)) { + | ^~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1464:38: note: declared here + 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 603 | RSA_set_app_data(rsa, NULL); + | ^~~~~~~~~~~~~~~~ +/usr/include/openssl/rsa.h:451:27: note: declared here + 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: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); + | ^~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': +src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~ +/usr/include/openssl/evp.h:1351:22: note: declared here + 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:662:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); + | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); + | ^~~~~~~~~ +/usr/include/openssl/rsa.h:452:29: note: declared here + 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); + | ^~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); + | ^~~~~~ +/usr/include/openssl/rsa.h:210:27: note: declared here + 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); + | ^~~~~~~~ /usr/include/openssl/ec.h:1527:28: note: declared here 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); - | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:526:5: note: declared here - 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, - | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2006 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: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:1483:28: note: declared here 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:776:5: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 776 | rsa_orig_finish = RSA_meth_get_finish(rsa_methods); - | ^~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:558:7: note: declared here - 558 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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-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/evp.h:2007:28: note: declared here - 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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/ec.h:1478:28: note: declared here 1478 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:560:5: note: declared here - 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); - | ^~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'tpm2tss_rsa_genkey': -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:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2028:28: note: declared here - 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/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: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: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/evp.h:1749:40: note: declared here 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c: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:2068:28: note: declared here - 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:603:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 603 | RSA_set_app_data(rsa, NULL); - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/rsa.h:451:27: note: declared here - 451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); - | ^~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: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:1748:46: note: declared here 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, - | ^~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1749:40: note: declared here - 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); - | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:871:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 871 | EVP_PKEY_meth_add0(pkey_ecc_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:27: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'rsa_digest_custom': 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:1748:46: note: declared here - 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); - | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-rsa.c: In function 'init_rsa': /usr/include/openssl/evp.h:1752:28: note: declared here 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:662:5: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 662 | RSA *rsa = EVP_PKEY_get0_RSA(pkey); - | ^~~ -/usr/include/openssl/evp.h:1351:22: note: declared here - 1351 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); - | ^~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-ecc.c: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:797:5: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 797 | EVP_PKEY_meth_copy(pkey_rsa_methods, pkey_orig_rsa_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1752:28: note: declared here - 1752 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2073:28: note: declared here - 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: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: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:663:5: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 663 | TPM2_DATA *tpm2data = RSA_get_app_data(rsa); - | ^~~~~~~~~ -/usr/include/openssl/rsa.h:452:29: note: declared here - 452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); - | ^~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2073:28: note: declared here 2073 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_copy | ^~~~~~~~~~~~~~~~~~~~~~ +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(); + | ^~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~ @@ -2717,145 +2821,58 @@ | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 2075 | const EVP_PKEY_CTX *src)); | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:667:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 667 | return digest_sign_init(ctx, mctx, tpm2data, RSA_size(rsa)); - | ^~~~~~ -/usr/include/openssl/rsa.h:210:27: note: declared here - 210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); - | ^~~~~~~~ -src/tpm2-tss-engine-rsa.c:802:46: warning: passing argument 2 of 'EVP_PKEY_meth_get_copy' from incompatible pointer type [-Wincompatible-pointer-types] - 802 | EVP_PKEY_meth_get_copy(pkey_rsa_methods, &rsa_pkey_orig_copy); - | ^~~~~~~~~~~~~~~~~~~ - | | - | int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2074:43: note: expected 'int (**)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (**)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (**)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2074 | (const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst, - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ - 2075 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:865:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 865 | EVP_PKEY_meth_get_cleanup(pkey_ecc_methods, &ecdsa_pkey_orig_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2076:28: note: declared here - 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:803:5: warning: 'EVP_PKEY_meth_get_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 803 | EVP_PKEY_meth_get_cleanup(pkey_rsa_methods, &rsa_pkey_orig_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2076:28: note: declared here - 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:2004:28: note: declared here - 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_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:2004:28: note: declared here - 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy - | ^~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c: In function 'init_rsa': -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:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2006 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:805:46: warning: passing argument 2 of 'EVP_PKEY_meth_set_copy' from incompatible pointer type [-Wincompatible-pointer-types] - 805 | EVP_PKEY_meth_set_copy(pkey_rsa_methods, rsa_pkey_copy); - | ^~~~~~~~~~~~~ - | | - | int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *) {aka int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)} -/usr/include/openssl/evp.h:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} - 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ - 2006 | const EVP_PKEY_CTX *src)); - | ~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:768:5: warning: 'RSA_PKCS1_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 768 | default_rsa = RSA_PKCS1_OpenSSL(); - | ^~~~~~~~~~~ /usr/include/openssl/rsa.h:311:41: note: declared here 311 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_PKCS1_OpenSSL(void); | ^~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:868:5: warning: 'EVP_PKEY_meth_set_cleanup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 868 | EVP_PKEY_meth_set_cleanup(pkey_ecc_methods, ecdsa_pkey_cleanup); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2007:28: note: declared here - 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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); +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:2007:28: note: declared here - 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup - | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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/evp.h:2076:28: note: declared here + 2076 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:481:35: note: declared here 481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); | ^~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2028:28: note: declared here - 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:807:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 807 | EVP_PKEY_meth_set_signctx(pkey_rsa_methods, NULL, rsa_signctx); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2028:28: note: declared here - 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx - | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:773:5: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 773 | RSA_meth_set1_name(rsa_methods, "TPM2TSS RSA methods"); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:483:27: note: declared here 483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-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:2068:28: note: declared here - 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:808:5: warning: 'EVP_PKEY_meth_set_digest_custom' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 808 | EVP_PKEY_meth_set_digest_custom(pkey_rsa_methods, rsa_digest_custom); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:2068:28: note: declared here - 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:2004:28: note: declared here + 2004 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_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:516:5: note: declared here 516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-ecc.c:871:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 871 | EVP_PKEY_meth_add0(pkey_ecc_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:27: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ -src/tpm2-tss-engine-rsa.c:809:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 809 | EVP_PKEY_meth_add0(pkey_rsa_methods); - | ^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/evp.h:1755:27: note: declared here - 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); - | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c: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:2005:36: note: expected 'int (*)(EVP_PKEY_CTX *, const EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, const struct evp_pkey_ctx_st *)'} but argument is of type 'int (*)(EVP_PKEY_CTX *, EVP_PKEY_CTX *)' {aka 'int (*)(struct evp_pkey_ctx_st *, struct evp_pkey_ctx_st *)'} + 2005 | (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ + 2006 | const EVP_PKEY_CTX *src)); + | ~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:775:5: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 775 | RSA_meth_set_priv_dec(rsa_methods, rsa_priv_dec); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:526:5: note: declared here 526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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: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); | ^~~~~~~~~~~~~~~ @@ -2868,24 +2885,45 @@ /usr/include/openssl/rsa.h:560:5: note: declared here 560 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); | ^~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2007:28: note: declared here + 2007 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup + | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c: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-ecc.c:869:5: warning: 'EVP_PKEY_meth_set_signctx' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 869 | EVP_PKEY_meth_set_signctx(pkey_ecc_methods, NULL, ecdsa_signctx); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:2028:28: note: declared here + 2028 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_signctx + | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:788:5: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 788 | pkey_rsa_methods = EVP_PKEY_meth_new(EVP_PKEY_RSA, | ^~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1749:40: note: declared here 1749 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-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:2068:28: note: declared here + 2068 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_digest_custom + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-rsa.c:794:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 794 | EVP_PKEY_meth_find(EVP_PKEY_RSA); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1748:46: note: declared here 1748 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ +src/tpm2-tss-engine-ecc.c:871:5: warning: 'EVP_PKEY_meth_add0' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 871 | EVP_PKEY_meth_add0(pkey_ecc_methods); + | ^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/evp.h:1755:27: note: declared here + 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); + | ^~~~~~~~~~~~~~~~~~ src/tpm2-tss-engine-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); | ^~~~~~~~~~~~~~~~~~ @@ -2954,12 +2992,10 @@ /usr/include/openssl/evp.h:1755:27: note: declared here 1755 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ^~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -I./src -std=gnu99 -Wall -Wextra -Wformat-security -fstack-protector-all -fpic -fPIC -Wno-missing-braces -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -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 -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 -/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 -/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 -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/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 +/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 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' @@ -2987,7 +3023,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 ] || \ @@ -3006,7 +3042,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 @@ -3039,11 +3075,11 @@ dh_gencontrol dh_md5sums dh_builddeb +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 '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 'libengine-tpm2-tss-openssl' in '../libengine-tpm2-tss-openssl_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) @@ -3052,12 +3088,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/3778537/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3778537/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/724878 and its subdirectories -I: Current time: Tue May 27 15:07:47 -12 2025 -I: pbuilder-time-stamp: 1748401668 +I: removing directory /srv/workspace/pbuilder/3778537 and its subdirectories +I: Current time: Thu Apr 25 10:51:07 +14 2024 +I: pbuilder-time-stamp: 1713991867