Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/openssl-pkcs11.spec'], chrootPath='/var/lib/mock/dist-an23-build-204032-61057/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/openssl-pkcs11.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1675036800 Wrote: /builddir/build/SRPMS/openssl-pkcs11-0.4.12-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openssl-pkcs11.spec'], chrootPath='/var/lib/mock/dist-an23-build-204032-61057/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openssl-pkcs11.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1675036800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1D5UoN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libp11-0.4.12 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libp11-0.4.12.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libp11-0.4.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openssl-pkcs11-0.4.10-set-rsa-fips-method-flag.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openssl-pkcs11-ossl3.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1XrMEl + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libp11-0.4.12 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2022-07-16 03:56:26.000000000 +0800 +++ ./configure 2023-01-30 14:20:57.559656709 +0800 @@ -1822,7 +1822,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-01-30 14:20:57.559656709 +0800 +++ ./configure 2023-01-30 14:20:57.572657099 +0800 @@ -7192,7 +7192,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -15345,7 +15345,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./config.guess '/usr/lib/rpm/anolis/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./config.sub '/usr/lib/rpm/anolis/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld"~' ./ltmain.sh + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 Forcing run-time library search path definition in configure to prevent libtool from adding rpath for standard directories (configure was generated with libtool without support for autodetection) + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking target system type... x86_64-Anolis-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for x86_64-Anolis-linux-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking for x86_64-Anolis-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking if LD -Wl,--version-script works... yes checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking whether make sets $(MAKE)... (cached) yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-Anolis-linux-gnu file names to x86_64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert x86_64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking for x86_64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 7198: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for x86_64-Anolis-linux-windres... no checking for windres... no checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for stdlib.h... (cached) yes checking for inttypes.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for dlfcn.h... (cached) yes checking utmp.h usability... yes checking utmp.h presence... yes checking for utmp.h... yes checking for doxygen... no checking for library containing dlopen... none required checking whether gcc is Clang... no checking whether pthreads work with "-pthread" and "-lpthread"... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking whether more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for libcrypto >= 0.9.8... yes checking if libtool needs -no-undefined flag to build shared libraries... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/libp11.pc config.status: creating src/libp11.rc config.status: creating src/pkcs11.rc config.status: creating doc/Makefile config.status: creating doc/doxygen.conf config.status: creating examples/Makefile config.status: creating tests/Makefile config.status: creating src/config.h config.status: executing depfiles commands config.status: executing libtool commands configure: creating src/libp11.map libp11 has been configured with the following options: Version: 0.4.12 libp11 directory: /usr/lib64 Engine directory: /usr/lib64/engines-3 Default PKCS11 module: /usr/lib64/p11-kit-proxy.so API doc support: no Host: x86_64-Anolis-linux-gnu Compiler: gcc Preprocessor flags: Compiler flags: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread Linker flags: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 Libraries: -lpthread OPENSSL_CFLAGS: OPENSSL_LIBS: -lcrypto + /usr/bin/make -O -j80 V=1 VERBOSE=1 Making all in src /usr/bin/make all-am make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o pkcs11_la-eng_err.lo `test -f 'eng_err.c' || echo './'`eng_err.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c eng_err.c -fPIC -DPIC -o .libs/pkcs11_la-eng_err.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_err.lo `test -f 'p11_err.c' || echo './'`p11_err.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_err.c -fPIC -DPIC -o .libs/libp11_la-p11_err.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_misc.lo `test -f 'p11_misc.c' || echo './'`p11_misc.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_misc.c -fPIC -DPIC -o .libs/libp11_la-p11_misc.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-libpkcs11.lo `test -f 'libpkcs11.c' || echo './'`libpkcs11.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c libpkcs11.c -fPIC -DPIC -o .libs/libp11_la-libpkcs11.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_ckr.lo `test -f 'p11_ckr.c' || echo './'`p11_ckr.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_ckr.c -fPIC -DPIC -o .libs/libp11_la-p11_ckr.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_atfork.lo `test -f 'p11_atfork.c' || echo './'`p11_atfork.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_atfork.c -fPIC -DPIC -o .libs/libp11_la-p11_atfork.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_load.lo `test -f 'p11_load.c' || echo './'`p11_load.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_load.c -fPIC -DPIC -o .libs/libp11_la-p11_load.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_attr.lo `test -f 'p11_attr.c' || echo './'`p11_attr.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_attr.c -fPIC -DPIC -o .libs/libp11_la-p11_attr.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o pkcs11_la-eng_front.lo `test -f 'eng_front.c' || echo './'`eng_front.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c eng_front.c -fPIC -DPIC -o .libs/pkcs11_la-eng_front.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' eng_front.c: In function 'get_ctx': eng_front.c:97:17: warning: 'ENGINE_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 97 | ctx = ENGINE_get_ex_data(engine, pkcs11_idx); | ^~~ In file included from engine.h:41, from eng_front.c:16: /usr/include/openssl/engine.h:534:29: note: declared here 534 | OSSL_DEPRECATEDIN_3_0 void *ENGINE_get_ex_data(const ENGINE *e, int idx); | ^~~~~~~~~~~~~~~~~~ eng_front.c:101:17: warning: 'ENGINE_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 101 | ENGINE_set_ex_data(engine, pkcs11_idx, ctx); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:533:27: note: declared here 533 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_ex_data(ENGINE *e, int idx, void *arg); | ^~~~~~~~~~~~~~~~~~ eng_front.c: In function 'engine_destroy': eng_front.c:128:9: warning: 'ENGINE_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 128 | ENGINE_set_ex_data(engine, pkcs11_idx, NULL); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:533:27: note: declared here 533 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_ex_data(ENGINE *e, int idx, void *arg); | ^~~~~~~~~~~~~~~~~~ eng_front.c: In function 'load_privkey': eng_front.c:197:9: warning: 'EVP_PKEY_set1_engine' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 197 | if (pkey && !EVP_PKEY_set1_engine(pkey, engine)) { | ^~ In file included from /usr/include/openssl/x509.h:29, from libp11.h:32, from engine.h:35: /usr/include/openssl/evp.h:1323:5: note: declared here 1323 | int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e); | ^~~~~~~~~~~~~~~~~~~~ eng_front.c: In function 'bind_helper': eng_front.c:220:9: warning: 'ENGINE_set_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 220 | if (!ENGINE_set_id(e, PKCS11_ENGINE_ID) || | ^~ /usr/include/openssl/engine.h:495:27: note: declared here 495 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_id(ENGINE *e, const char *id); | ^~~~~~~~~~~~~ eng_front.c:221:25: warning: 'ENGINE_set_destroy_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 221 | !ENGINE_set_destroy_function(e, engine_destroy) || | ^ /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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ eng_front.c:222:25: warning: 'ENGINE_set_init_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 222 | !ENGINE_set_init_function(e, engine_init) || | ^ /usr/include/openssl/engine.h:505:5: note: declared here 505 | int ENGINE_set_init_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR init_f); | ^~~~~~~~~~~~~~~~~~~~~~~~ eng_front.c:223:25: warning: 'ENGINE_set_finish_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 223 | !ENGINE_set_finish_function(e, engine_finish) || | ^ /usr/include/openssl/engine.h:507:5: note: declared here 507 | int ENGINE_set_finish_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR finish_f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ eng_front.c:224:25: warning: 'ENGINE_set_ctrl_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 224 | !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); | ^~~~~~~~~~~~~~~~~~~~~~~~ eng_front.c:225:25: warning: 'ENGINE_set_cmd_defns' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 225 | !ENGINE_set_cmd_defns(e, engine_cmd_defns) || | ^ /usr/include/openssl/engine.h:526:27: note: declared here 526 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_cmd_defns(ENGINE *e, | ^~~~~~~~~~~~~~~~~~~~ eng_front.c:226:25: warning: 'ENGINE_set_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 226 | !ENGINE_set_name(e, PKCS11_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); | ^~~~~~~~~~~~~~~ eng_front.c:227:25: warning: 'ENGINE_set_load_pubkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 227 | !ENGINE_set_load_pubkey_function(e, load_pubkey) || | ^ /usr/include/openssl/engine.h:513:5: note: declared here 513 | int ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eng_front.c:228:25: warning: 'ENGINE_set_load_privkey_function' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 228 | !ENGINE_set_load_privkey_function(e, load_privkey)) { | ^ /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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eng_front.c: In function 'bind_helper_methods': eng_front.c:246:25: warning: 'ENGINE_set_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 246 | !ENGINE_set_RSA(e, PKCS11_get_rsa_method()) || | ^ /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); | ^~~~~~~~~~~~~~ eng_front.c:251:25: warning: 'ENGINE_set_EC' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 251 | !ENGINE_set_EC(e, PKCS11_get_ec_key_method()) || | ^ /usr/include/openssl/engine.h:499:27: note: declared here 499 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_EC(ENGINE *e, const EC_KEY_METHOD *ecdsa_meth); | ^~~~~~~~~~~~~ eng_front.c:261:25: warning: 'ENGINE_set_pkey_meths' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 261 | !ENGINE_set_pkey_meths(e, PKCS11_pkey_meths)) { | ^ /usr/include/openssl/engine.h:522:5: note: declared here 522 | int ENGINE_set_pkey_meths(ENGINE *e, ENGINE_PKEY_METHS_PTR f); | ^~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_cert.lo `test -f 'p11_cert.c' || echo './'`p11_cert.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_cert.c -fPIC -DPIC -o .libs/libp11_la-p11_cert.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_pkey.lo `test -f 'p11_pkey.c' || echo './'`p11_pkey.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_pkey.c -fPIC -DPIC -o .libs/libp11_la-p11_pkey.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' p11_pkey.c: In function 'pkcs11_try_pkey_rsa_sign': p11_pkey.c:343:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 343 | rsa = (RSA *)EVP_PKEY_get0_RSA(pkey); | ^~~ In file included from /usr/include/openssl/x509.h:29, from libp11.h:32, from libp11-int.h:27, from p11_pkey.c:20: /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ p11_pkey.c: In function 'pkcs11_try_pkey_rsa_decrypt': p11_pkey.c:444:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 444 | rsa = (RSA *)EVP_PKEY_get0_RSA(pkey); | ^~~ /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ p11_pkey.c: In function 'pkcs11_pkey_method_rsa': p11_pkey.c:527:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 527 | orig_meth = (EVP_PKEY_METHOD *)EVP_PKEY_meth_find(EVP_PKEY_RSA); | ^~~~~~~~~ /usr/include/openssl/evp.h:1743:46: note: declared here 1743 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ p11_pkey.c:528:9: warning: 'EVP_PKEY_meth_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 528 | EVP_PKEY_meth_get_sign(orig_meth, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2079:28: note: declared here 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ p11_pkey.c:530:9: warning: 'EVP_PKEY_meth_get_decrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 530 | EVP_PKEY_meth_get_decrypt(orig_meth, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2107:28: note: declared here 2107 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_decrypt | ^~~~~~~~~~~~~~~~~~~~~~~~~ p11_pkey.c:534:9: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 534 | new_meth = EVP_PKEY_meth_new(EVP_PKEY_RSA, | ^~~~~~~~ /usr/include/openssl/evp.h:1744:40: note: declared here 1744 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ p11_pkey.c:542:9: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 542 | EVP_PKEY_meth_copy(new_meth, orig_meth); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1747:28: note: declared here 1747 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ p11_pkey.c:544:9: warning: 'EVP_PKEY_meth_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 544 | EVP_PKEY_meth_set_sign(new_meth, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2010:28: note: declared here 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ p11_pkey.c:546:9: warning: 'EVP_PKEY_meth_set_decrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 546 | EVP_PKEY_meth_set_decrypt(new_meth, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2037:28: note: declared here 2037 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_decrypt | ^~~~~~~~~~~~~~~~~~~~~~~~~ p11_pkey.c: In function 'pkcs11_try_pkey_ec_sign': p11_pkey.c:584:9: warning: 'EVP_PKEY_get0_EC_KEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 584 | eckey = (EC_KEY *)EVP_PKEY_get0_EC_KEY(pkey); | ^~~~~ /usr/include/openssl/evp.h:1372:25: note: declared here 1372 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~~~~ p11_pkey.c:589:17: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 589 | *siglen = (size_t)ECDSA_size(eckey); | ^ In file included from /usr/include/openssl/x509.h:33: /usr/include/openssl/ec.h:1455:27: note: declared here 1455 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); | ^~~~~~~~~~ p11_pkey.c:594:9: warning: 'ECDSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 594 | if (*siglen < (size_t)ECDSA_size(eckey)) | ^~ /usr/include/openssl/ec.h:1455:27: note: declared here 1455 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); | ^~~~~~~~~~ p11_pkey.c: In function 'pkcs11_pkey_method_ec': p11_pkey.c:673:9: warning: 'EVP_PKEY_meth_find' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 673 | orig_meth = (EVP_PKEY_METHOD *)EVP_PKEY_meth_find(EVP_PKEY_EC); | ^~~~~~~~~ /usr/include/openssl/evp.h:1743:46: note: declared here 1743 | OSSL_DEPRECATEDIN_3_0 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ^~~~~~~~~~~~~~~~~~ p11_pkey.c:674:9: warning: 'EVP_PKEY_meth_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 674 | EVP_PKEY_meth_get_sign(orig_meth, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2079:28: note: declared here 2079 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ p11_pkey.c:677:9: warning: 'EVP_PKEY_meth_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 677 | new_meth = EVP_PKEY_meth_new(EVP_PKEY_EC, 0); | ^~~~~~~~ /usr/include/openssl/evp.h:1744:40: note: declared here 1744 | OSSL_DEPRECATEDIN_3_0 EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ^~~~~~~~~~~~~~~~~ p11_pkey.c:684:9: warning: 'EVP_PKEY_meth_copy' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 684 | EVP_PKEY_meth_copy(new_meth, orig_meth); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1747:28: note: declared here 1747 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, | ^~~~~~~~~~~~~~~~~~ p11_pkey.c:686:9: warning: 'EVP_PKEY_meth_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 686 | EVP_PKEY_meth_set_sign(new_meth, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:2010:28: note: declared here 2010 | OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_rsa.lo `test -f 'p11_rsa.c' || echo './'`p11_rsa.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_rsa.c -fPIC -DPIC -o .libs/libp11_la-p11_rsa.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' p11_rsa.c: In function 'pkcs11_rsa': p11_rsa.c:38:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 38 | rsa = (RSA *)EVP_PKEY_get0_RSA(evp_key); | ^~~ In file included from /usr/include/openssl/x509.h:29, from libp11.h:32, from libp11-int.h:27, from p11_rsa.c:25: /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_sign': p11_rsa.c:54:9: warning: 'RSA_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 54 | return RSA_sign(type, m, m_len, sigret, siglen, rsa); | ^~~~~~ In file included from libp11.h:31: /usr/include/openssl/rsa.h:348:27: note: declared here 348 | OSSL_DEPRECATEDIN_3_0 int RSA_sign(int type, const unsigned char *m, | ^~~~~~~~ p11_rsa.c: In function 'pkcs11_get_rsa': p11_rsa.c:235:9: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 235 | rsa = RSA_new(); | ^~~ /usr/include/openssl/rsa.h:201:28: note: declared here 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ p11_rsa.c:239:9: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 239 | RSA_set0_key(rsa, rsa_n, rsa_e, NULL); | ^~~~~~~~~~~~ /usr/include/openssl/rsa.h:207:27: note: declared here 207 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); | ^~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_get_ex_data_rsa': p11_rsa.c:249:9: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 249 | return RSA_get_ex_data(rsa, rsa_ex_index); | ^~~~~~ /usr/include/openssl/rsa.h:446:29: note: declared here 446 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); | ^~~~~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_set_ex_data_rsa': p11_rsa.c:254:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 254 | RSA_set_ex_data(rsa, rsa_ex_index, key); | ^~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:445:27: note: declared here 445 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); | ^~~~~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_get_evp_key_rsa': p11_rsa.c:270:17: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 270 | RSA_free(rsa); | ^~~~~~~~ /usr/include/openssl/rsa.h:293:28: note: declared here 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ p11_rsa.c:274:17: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 274 | RSA_set_method(rsa, PKCS11_get_rsa_method()); | ^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:302:27: note: declared here 302 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); | ^~~~~~~~~~~~~~ p11_rsa.c:276:17: warning: 'RSA_set_flags' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 276 | RSA_set_flags(rsa, RSA_FLAG_EXT_PKEY); | ^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:243:28: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 void RSA_set_flags(RSA *r, int flags); | ^~~~~~~~~~~~~ p11_rsa.c:290:9: warning: 'EVP_PKEY_set1_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 290 | EVP_PKEY_set1_RSA(pk, rsa); /* Also increments the rsa ref count */ | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1344:5: note: declared here 1344 | int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key); | ^~~~~~~~~~~~~~~~~ p11_rsa.c:291:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 291 | RSA_free(rsa); /* Drops our reference to it */ | ^~~~~~~~ /usr/include/openssl/rsa.h:293:28: note: declared here 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ p11_rsa.c: In function 'pkcs11_get_key_modulus': p11_rsa.c:304:9: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 304 | RSA_get0_key(rsa, &rsa_n, NULL, NULL); | ^~~~~~~~~~~~ /usr/include/openssl/rsa.h:217:28: note: declared here 217 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_get_key_exponent': p11_rsa.c:321:9: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 321 | RSA_get0_key(rsa, NULL, &rsa_e, NULL); | ^~~~~~~~~~~~ /usr/include/openssl/rsa.h:217:28: note: declared here 217 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_get_key_size': p11_rsa.c:335:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 335 | return RSA_size(rsa); | ^~~~~~ /usr/include/openssl/rsa.h:204:27: note: declared here 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ p11_rsa.c: In function 'pkcs11_rsa_priv_dec_method': p11_rsa.c:368:17: warning: 'RSA_meth_get_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 368 | priv_dec = RSA_meth_get_priv_dec(RSA_get_default_method()); | ^~~~~~~~ /usr/include/openssl/rsa.h:515:7: note: declared here 515 | int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ p11_rsa.c:368:17: warning: 'RSA_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 368 | priv_dec = RSA_meth_get_priv_dec(RSA_get_default_method()); | ^~~~~~~~ /usr/include/openssl/rsa.h:299:41: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void); | ^~~~~~~~~~~~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_rsa_priv_enc_method': p11_rsa.c:381:17: warning: 'RSA_meth_get_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 381 | priv_enc = RSA_meth_get_priv_enc(RSA_get_default_method()); | ^~~~~~~~ /usr/include/openssl/rsa.h:505:7: note: declared here 505 | int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen, | ^~~~~~~~~~~~~~~~~~~~~ p11_rsa.c:381:17: warning: 'RSA_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 381 | priv_enc = RSA_meth_get_priv_enc(RSA_get_default_method()); | ^~~~~~~~ /usr/include/openssl/rsa.h:299:41: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void); | ^~~~~~~~~~~~~~~~~~~~~~ p11_rsa.c: In function 'pkcs11_rsa_free_method': p11_rsa.c:395:17: warning: 'RSA_meth_get_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 395 | RSA_meth_get_finish(RSA_get_default_method()); | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:552:7: note: declared here 552 | int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); | ^~~~~~~~~~~~~~~~~~~ p11_rsa.c:395:17: warning: 'RSA_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 395 | RSA_meth_get_finish(RSA_get_default_method()); | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:299:41: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void); | ^~~~~~~~~~~~~~~~~~~~~~ p11_rsa.c: In function 'PKCS11_get_rsa_method': p11_rsa.c:496:17: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 496 | ops = RSA_meth_dup(RSA_get_default_method()); | ^~~ /usr/include/openssl/rsa.h:475:35: note: declared here 475 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); | ^~~~~~~~~~~~ p11_rsa.c:496:17: warning: 'RSA_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 496 | ops = RSA_meth_dup(RSA_get_default_method()); | ^~~ /usr/include/openssl/rsa.h:299:41: note: declared here 299 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void); | ^~~~~~~~~~~~~~~~~~~~~~ p11_rsa.c:499:17: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 499 | RSA_meth_set1_name(ops, "libp11 RSA method"); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:477:27: note: declared here 477 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth, | ^~~~~~~~~~~~~~~~~~ p11_rsa.c:500:17: warning: 'RSA_meth_set_flags' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 500 | RSA_meth_set_flags(ops, RSA_FLAG_FIPS_METHOD); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:480:27: note: declared here 480 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set_flags(RSA_METHOD *meth, int flags); | ^~~~~~~~~~~~~~~~~~ p11_rsa.c:501:17: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 501 | RSA_meth_set_priv_enc(ops, pkcs11_rsa_priv_enc_method); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:510:5: note: declared here 510 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ p11_rsa.c:502:17: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 502 | RSA_meth_set_priv_dec(ops, pkcs11_rsa_priv_dec_method); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:520:5: note: declared here 520 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, | ^~~~~~~~~~~~~~~~~~~~~ p11_rsa.c:503:17: warning: 'RSA_meth_set_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 503 | RSA_meth_set_finish(ops, pkcs11_rsa_free_method); | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:554:5: note: declared here 554 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); | ^~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o pkcs11_la-eng_parse.lo `test -f 'eng_parse.c' || echo './'`eng_parse.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c eng_parse.c -fPIC -DPIC -o .libs/pkcs11_la-eng_parse.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_ec.lo `test -f 'p11_ec.c' || echo './'`p11_ec.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_ec.c -fPIC -DPIC -o .libs/libp11_la-p11_ec.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' p11_ec.c: In function 'pkcs11_get_params': p11_ec.c:203:9: warning: 'd2i_ECParameters' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 203 | rv = d2i_ECParameters(&ec, &a, (long)params_len) == NULL; | ^~ In file included from /usr/include/openssl/x509.h:33, from libp11.h:32, from libp11-int.h:27, from p11_ec.c:27: /usr/include/openssl/ec.h:1211:31: note: declared here 1211 | OSSL_DEPRECATEDIN_3_0 EC_KEY *d2i_ECParameters(EC_KEY **key, | ^~~~~~~~~~~~~~~~ p11_ec.c: In function 'pkcs11_get_point_x509': p11_ec.c:224:9: warning: 'EVP_PKEY_get0_EC_KEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 224 | pubkey_ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(pubkey); | ^~~~~~~~~ In file included from /usr/include/openssl/x509.h:29: /usr/include/openssl/evp.h:1372:25: note: declared here 1372 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~~~~ p11_ec.c:227:9: warning: 'EC_KEY_get0_public_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 227 | point = EC_KEY_get0_public_key(pubkey_ec); | ^~~~~ /usr/include/openssl/ec.h:1062:39: note: declared here 1062 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:230:9: warning: 'EC_KEY_set_public_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 230 | if (EC_KEY_set_public_key(ec, point) == 0) | ^~ /usr/include/openssl/ec.h:1070:27: note: declared here 1070 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); | ^~~~~~~~~~~~~~~~~~~~~ p11_ec.c: In function 'pkcs11_get_point': p11_ec.c:262:17: warning: 'o2i_ECPublicKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 262 | rv = o2i_ECPublicKey(&ec, &a, os->length) == NULL; | ^~ /usr/include/openssl/ec.h:1236:31: note: declared here 1236 | OSSL_DEPRECATEDIN_3_0 EC_KEY *o2i_ECPublicKey(EC_KEY **key, | ^~~~~~~~~~~~~~~ p11_ec.c:267:17: warning: 'o2i_ECPublicKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 267 | rv = o2i_ECPublicKey(&ec, &a, (long)point_len) == NULL; | ^~ /usr/include/openssl/ec.h:1236:31: note: declared here 1236 | OSSL_DEPRECATEDIN_3_0 EC_KEY *o2i_ECPublicKey(EC_KEY **key, | ^~~~~~~~~~~~~~~ p11_ec.c: In function 'pkcs11_get_ec': p11_ec.c:293:9: warning: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 293 | ec = EC_KEY_new(); | ^~ /usr/include/openssl/ec.h:968:31: note: declared here 968 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ p11_ec.c:303:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 303 | EC_KEY_free(ec); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ p11_ec.c:314:9: warning: 'EC_KEY_get0_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 314 | if (key->object_class == CKO_PRIVATE_KEY && EC_KEY_get0_private_key(ec) == NULL) { | ^~ /usr/include/openssl/ec.h:1048:37: note: declared here 1048 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:316:17: warning: 'EC_KEY_set_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 316 | EC_KEY_set_private_key(ec, bn); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1056:27: note: declared here 1056 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:322:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 322 | EC_KEY_free(ec); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ p11_ec.c: In function 'pkcs11_get_ex_data_ec': p11_ec.c:332:9: warning: 'EC_KEY_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 332 | return EC_KEY_get_ex_data(ec, ec_ex_index); | ^~~~~~ /usr/include/openssl/ec.h:1084:29: note: declared here 1084 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); | ^~~~~~~~~~~~~~~~~~ p11_ec.c: In function 'pkcs11_set_ex_data_ec': p11_ec.c:341:9: warning: 'EC_KEY_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 341 | EC_KEY_set_ex_data(ec, ec_ex_index, key); | ^~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1083:27: note: declared here 1083 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); | ^~~~~~~~~~~~~~~~~~ p11_ec.c: In function 'pkcs11_get_evp_key_ec': p11_ec.c:366:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 366 | EC_KEY_free(ec); | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ p11_ec.c:372:17: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 372 | EC_KEY_set_method(ec, PKCS11_get_ec_key_method()); | ^~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1283:27: note: declared here 1283 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ p11_ec.c:382:9: warning: 'EVP_PKEY_set1_EC_KEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 382 | EVP_PKEY_set1_EC_KEY(pk, ec); /* Also increments the ec ref count */ | ^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1370:5: note: declared here 1370 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key); | ^~~~~~~~~~~~~~~~~~~~ p11_ec.c:383:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 383 | EC_KEY_free(ec); /* Drops our reference to it */ | ^~~~~~~~~~~ /usr/include/openssl/ec.h:1003:28: note: declared here 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ p11_ec.c: In function 'pkcs11_ecdsa_sign_sig': p11_ec.c:466:17: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 466 | const EC_KEY_METHOD *meth = EC_KEY_OpenSSL(); | ^~~~~ /usr/include/openssl/ec.h:1279:44: note: declared here 1279 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); | ^~~~~~~~~~~~~~ p11_ec.c:467:17: warning: 'EC_KEY_METHOD_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 467 | EC_KEY_METHOD_get_sign((EC_KEY_METHOD *)meth, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1524:28: note: declared here 1524 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:479:17: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 479 | const EC_GROUP *group = EC_KEY_get0_group(ec); | ^~~~~ /usr/include/openssl/ec.h:1034:39: note: declared here 1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ p11_ec.c: In function 'pkcs11_ecdh_compute_key': p11_ec.c:642:9: warning: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 642 | const EC_GROUP *group = EC_KEY_get0_group(ecdh); | ^~~~~ /usr/include/openssl/ec.h:1034:39: note: declared here 1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ p11_ec.c: In function 'PKCS11_get_ec_key_method': p11_ec.c:752:17: warning: 'EC_KEY_METHOD_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 752 | ops = EC_KEY_METHOD_new((EC_KEY_METHOD *)EC_KEY_OpenSSL()); | ^~~ /usr/include/openssl/ec.h:1461:38: note: declared here 1461 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); | ^~~~~~~~~~~~~~~~~ p11_ec.c:752:17: warning: 'EC_KEY_OpenSSL' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 752 | ops = EC_KEY_METHOD_new((EC_KEY_METHOD *)EC_KEY_OpenSSL()); | ^~~ /usr/include/openssl/ec.h:1279:44: note: declared here 1279 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_OpenSSL(void); | ^~~~~~~~~~~~~~ p11_ec.c:753:17: warning: 'EC_KEY_METHOD_get_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 753 | EC_KEY_METHOD_get_init(ops, &orig_init, &ossl_ec_finish, &orig_copy, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1505:28: note: declared here 1505 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_init | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:755:17: warning: 'EC_KEY_METHOD_set_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 755 | EC_KEY_METHOD_set_init(ops, orig_init, pkcs11_ec_finish, orig_copy, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1463:28: note: declared here 1463 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_init | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:757:17: warning: 'EC_KEY_METHOD_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 757 | EC_KEY_METHOD_get_sign(ops, &orig_sign, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1524:28: note: declared here 1524 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:758:17: warning: 'EC_KEY_METHOD_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 758 | EC_KEY_METHOD_set_sign(ops, orig_sign, NULL, pkcs11_ecdsa_sign_sig); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1480:28: note: declared here 1480 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign | ^~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:759:17: warning: 'EC_KEY_METHOD_get_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 759 | EC_KEY_METHOD_get_compute_key(ops, &ossl_ecdh_compute_key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1517:28: note: declared here 1517 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_compute_key | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p11_ec.c:760:17: warning: 'EC_KEY_METHOD_set_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 760 | EC_KEY_METHOD_set_compute_key(ops, pkcs11_ec_ckey); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ec.h:1475:28: note: declared here 1475 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_compute_key | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_front.lo `test -f 'p11_front.c' || echo './'`p11_front.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_front.c -fPIC -DPIC -o .libs/libp11_la-p11_front.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_slot.lo `test -f 'p11_slot.c' || echo './'`p11_slot.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_slot.c -fPIC -DPIC -o .libs/libp11_la-p11_slot.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o libp11_la-p11_key.lo `test -f 'p11_key.c' || echo './'`p11_key.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c p11_key.c -fPIC -DPIC -o .libs/libp11_la-p11_key.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' p11_key.c: In function 'pkcs11_store_key': p11_key.c:367:17: warning: 'EVP_PKEY_get1_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 367 | RSA *rsa = EVP_PKEY_get1_RSA(pk); | ^~~ In file included from /usr/include/openssl/x509.h:29, from libp11.h:32, from libp11-int.h:27, from p11_key.c:20: /usr/include/openssl/evp.h:1348:16: note: declared here 1348 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ p11_key.c:368:17: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 368 | RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d); | ^~~~~~~~~~~~ In file included from libp11.h:31: /usr/include/openssl/rsa.h:217:28: note: declared here 217 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ p11_key.c:369:17: warning: 'RSA_get0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 369 | RSA_get0_factors(rsa, &rsa_p, &rsa_q); | ^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:220:28: note: declared here 220 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r, | ^~~~~~~~~~~~~~~~ p11_key.c:370:17: warning: 'RSA_get0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 370 | RSA_get0_crt_params(rsa, &rsa_dmp1, &rsa_dmq1, &rsa_iqmp); | ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:225:28: note: declared here 225 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r, | ^~~~~~~~~~~~~~~~~~~ p11_key.c:371:17: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 371 | RSA_free(rsa); | ^~~~~~~~ /usr/include/openssl/rsa.h:293:28: note: declared here 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o pkcs11_la-eng_back.lo `test -f 'eng_back.c' || echo './'`eng_back.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c eng_back.c -fPIC -DPIC -o .libs/pkcs11_la-eng_back.o make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -version-info 8:0:5 -Wl,--version-script=libp11.map -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o libp11.la -rpath /usr/lib64 libp11_la-libpkcs11.lo libp11_la-p11_attr.lo libp11_la-p11_cert.lo libp11_la-p11_err.lo libp11_la-p11_ckr.lo libp11_la-p11_key.lo libp11_la-p11_load.lo libp11_la-p11_misc.lo libp11_la-p11_rsa.lo libp11_la-p11_ec.lo libp11_la-p11_pkey.lo libp11_la-p11_slot.lo libp11_la-p11_front.lo libp11_la-p11_atfork.lo -lcrypto -lpthread libtool: link: gcc -shared -fPIC -DPIC .libs/libp11_la-libpkcs11.o .libs/libp11_la-p11_attr.o .libs/libp11_la-p11_cert.o .libs/libp11_la-p11_err.o .libs/libp11_la-p11_ckr.o .libs/libp11_la-p11_key.o .libs/libp11_la-p11_load.o .libs/libp11_la-p11_misc.o .libs/libp11_la-p11_rsa.o .libs/libp11_la-p11_ec.o .libs/libp11_la-p11_pkey.o .libs/libp11_la-p11_slot.o .libs/libp11_la-p11_front.o .libs/libp11_la-p11_atfork.o -lcrypto -lpthread -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -pthread -Wl,--version-script=libp11.map -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -pthread -Wl,-soname -Wl,libp11.so.3 -o .libs/libp11.so.3.5.0 libtool: link: (cd ".libs" && rm -f "libp11.so.3" && ln -s "libp11.so.3.5.0" "libp11.so.3") libtool: link: (cd ".libs" && rm -f "libp11.so" && ln -s "libp11.so.3.5.0" "libp11.so") libtool: link: ( cd ".libs" && rm -f "libp11.la" && ln -s "../libp11.la" "libp11.la" ) make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -module -shared -shrext .so -avoid-version -export-symbols "./pkcs11.exports" -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o pkcs11.la -rpath /usr/lib64/engines-3 pkcs11_la-eng_front.lo pkcs11_la-eng_back.lo pkcs11_la-eng_parse.lo pkcs11_la-eng_err.lo libp11_la-libpkcs11.lo libp11_la-p11_attr.lo libp11_la-p11_cert.lo libp11_la-p11_err.lo libp11_la-p11_ckr.lo libp11_la-p11_key.lo libp11_la-p11_load.lo libp11_la-p11_misc.lo libp11_la-p11_rsa.lo libp11_la-p11_ec.lo libp11_la-p11_pkey.lo libp11_la-p11_slot.lo libp11_la-p11_front.lo libp11_la-p11_atfork.lo -lcrypto -lpthread libtool: link: echo "{ global:" > .libs/pkcs11.ver libtool: link: cat ./pkcs11.exports | sed -e "s/\(.*\)/\1;/" >> .libs/pkcs11.ver libtool: link: echo "local: *; };" >> .libs/pkcs11.ver libtool: link: gcc -shared -fPIC -DPIC .libs/pkcs11_la-eng_front.o .libs/pkcs11_la-eng_back.o .libs/pkcs11_la-eng_parse.o .libs/pkcs11_la-eng_err.o .libs/libp11_la-libpkcs11.o .libs/libp11_la-p11_attr.o .libs/libp11_la-p11_cert.o .libs/libp11_la-p11_err.o .libs/libp11_la-p11_ckr.o .libs/libp11_la-p11_key.o .libs/libp11_la-p11_load.o .libs/libp11_la-p11_misc.o .libs/libp11_la-p11_rsa.o .libs/libp11_la-p11_ec.o .libs/libp11_la-p11_pkey.o .libs/libp11_la-p11_slot.o .libs/libp11_la-p11_front.o .libs/libp11_la-p11_atfork.o -lcrypto -lpthread -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -pthread -Wl,-soname -Wl,pkcs11.so -Wl,-version-script -Wl,.libs/pkcs11.ver -o .libs/pkcs11.so libtool: link: ( cd ".libs" && rm -f "pkcs11.la" && ln -s "../pkcs11.la" "pkcs11.la" ) make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' Making all in doc make[1]: Nothing to be done for 'all'. Making all in examples make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' gcc -DHAVE_CONFIG_H -I. -I../src -I. -I../src -I../ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o getrandom.o getrandom.c make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' gcc -DHAVE_CONFIG_H -I. -I../src -I. -I../src -I../ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o listkeys.o listkeys.c make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' gcc -DHAVE_CONFIG_H -I. -I../src -I. -I../src -I../ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o decrypt.o decrypt.c make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' decrypt.c: In function 'main': decrypt.c:172:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 172 | encrypted = OPENSSL_malloc(RSA_size(EVP_PKEY_get0_RSA(pubkey))); | ^~~~~~~~~ In file included from ../src/libp11.h:31, from decrypt.c:48: /usr/include/openssl/rsa.h:204:27: note: declared here 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ decrypt.c:172:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 172 | encrypted = OPENSSL_malloc(RSA_size(EVP_PKEY_get0_RSA(pubkey))); | ^~~~~~~~~ In file included from /usr/include/openssl/x509.h:29, from ../src/libp11.h:32: /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ decrypt.c:183:9: warning: 'RSA_public_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 183 | len = RSA_public_encrypt(RANDOM_SIZE, random, encrypted, | ^~~ /usr/include/openssl/rsa.h:282:5: note: declared here 282 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ decrypt.c:185:25: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 185 | (RSA *)EVP_PKEY_get0_RSA(pubkey), | ^ /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ decrypt.c:252:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 252 | decrypted = OPENSSL_malloc(RSA_size(EVP_PKEY_get0_RSA(pubkey))); | ^~~~~~~~~ /usr/include/openssl/rsa.h:204:27: note: declared here 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ decrypt.c:252:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 252 | decrypted = OPENSSL_malloc(RSA_size(EVP_PKEY_get0_RSA(pubkey))); | ^~~~~~~~~ /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ decrypt.c:261:9: warning: 'PKCS11_private_decrypt' is deprecated: This function will be removed in libp11 0.5.0 [-Wdeprecated-declarations] 261 | rc = PKCS11_private_decrypt(len, encrypted, | ^~ ../src/libp11.h:501:32: note: declared here 501 | P11_DEPRECATED_FUNC extern int PKCS11_private_decrypt( | ^~~~~~~~~~~~~~~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' gcc -DHAVE_CONFIG_H -I. -I../src -I. -I../src -I../ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o auth.o auth.c make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' auth.c: In function 'main': auth.c:252:9: warning: 'PKCS11_sign' is deprecated: This function will be removed in libp11 0.5.0 [-Wdeprecated-declarations] 252 | rc = PKCS11_sign(NID_sha1, random, RANDOM_SIZE, | ^~ In file included from auth.c:48: ../src/libp11.h:477:32: note: declared here 477 | P11_DEPRECATED_FUNC extern int PKCS11_sign(int type, | ^~~~~~~~~~~ auth.c:269:9: warning: 'RSA_verify' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 269 | rc = RSA_verify(NID_sha1, random, RANDOM_SIZE, | ^~ In file included from ../src/libp11.h:31: /usr/include/openssl/rsa.h:351:27: note: declared here 351 | OSSL_DEPRECATEDIN_3_0 int RSA_verify(int type, const unsigned char *m, | ^~~~~~~~~~ auth.c:271:25: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 271 | signature, siglen, (RSA *)EVP_PKEY_get0_RSA(pubkey)); | ^~~~~~~~~ In file included from /usr/include/openssl/x509.h:29, from ../src/libp11.h:32: /usr/include/openssl/evp.h:1346:22: note: declared here 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o getrandom getrandom.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o .libs/getrandom getrandom.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o listkeys listkeys.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o .libs/listkeys listkeys.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o decrypt decrypt.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o .libs/decrypt decrypt.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o auth auth.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o .libs/auth auth.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' Making all in tests make[1]: Nothing to be done for 'all'. make[1]: Nothing to be done for 'all-am'. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.aptlIZ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64 ++ dirname /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libp11-0.4.12 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64 'INSTALL=/usr/bin/install -p' Making install in src make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/engines-3' /bin/sh ../libtool --mode=install /usr/bin/install -p pkcs11.la '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/engines-3' libtool: install: /usr/bin/install -p .libs/pkcs11.so /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/engines-3/pkcs11.so libtool: install: /usr/bin/install -p .libs/pkcs11.lai /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/engines-3/pkcs11.la libtool: warning: remember to run 'libtool --finish /usr/lib64/engines-3' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64' /bin/sh ../libtool --mode=install /usr/bin/install -p libp11.la '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64' libtool: install: /usr/bin/install -p .libs/libp11.so.3.5.0 /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/libp11.so.3.5.0 libtool: install: (cd /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64 && { ln -s -f libp11.so.3.5.0 libp11.so.3 || { rm -f libp11.so.3 && ln -s libp11.so.3.5.0 libp11.so.3; }; }) libtool: install: (cd /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64 && { ln -s -f libp11.so.3.5.0 libp11.so || { rm -f libp11.so && ln -s libp11.so.3.5.0 libp11.so; }; }) libtool: install: /usr/bin/install -p .libs/libp11.lai /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/libp11.la libtool: warning: remember to run 'libtool --finish /usr/lib64' /usr/bin/make install-exec-hook make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' cd '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/engines-3' && ln -s -f pkcs11.so libpkcs11.so make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/include' /usr/bin/install -p -m 644 libp11.h p11_err.h '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/include' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/pkgconfig' /usr/bin/install -p -m 644 libp11.pc '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/pkgconfig' make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' Making install in doc make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/doc' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/doc' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/doc' make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/doc' Making install in examples make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/examples' Making install in tests make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[1]: Entering directory '/builddir/build/BUILD/libp11-0.4.12' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/share/doc/libp11' /usr/bin/install -p -m 644 NEWS '/builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/share/doc/libp11' make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12' make[1]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12' + rm -f /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/libp11.so + rm -f /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/pkgconfig/libp11.pc + rm -f /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/include/libp11.h /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/include/p11_err.h + rm -rf /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/share/doc + /usr/bin/find-debuginfo -j80 --strict-build-id -m -i --build-id-seed 0.4.12-1.an23 --unique-debug-suffix -0.4.12-1.an23.x86_64 --unique-debug-src-base openssl-pkcs11-0.4.12-1.an23.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/libp11-0.4.12 extracting debug info from /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/engines-3/pkcs11.so extracting debug info from /builddir/build/BUILDROOT/openssl-pkcs11-0.4.12-1.an23.x86_64/usr/lib64/libp11.so.3.5.0 Support for debuginfod is not compiled into GDB. Support for debuginfod is not compiled into GDB. original debug info size: 632kB, size after compression: 460kB /usr/bin/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 537 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/relink_symlinks + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.0fSFRu + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libp11-0.4.12 + /usr/bin/make -O -j80 V=1 VERBOSE=1 check Making check in src /usr/bin/make check-local make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/src' cd .libs && ln -s -f pkcs11.so libpkcs11.so make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/src' Making check in doc make[1]: Nothing to be done for 'check'. Making check in examples make[1]: Nothing to be done for 'check'. Making check in tests /usr/bin/make openssl_version fork-test evp-sign fork-change-slot list-tokens rsa-pss-sign rsa-oaep check-privkey store-cert \ rsa-testpkcs11.softhsm rsa-testfork.softhsm rsa-testlistkeys.softhsm rsa-evp-sign.softhsm ec-evp-sign.softhsm ec-testfork.softhsm fork-change-slot.softhsm rsa-pss-sign.softhsm rsa-oaep.softhsm case-insensitive.softhsm rsa-check-privkey.softhsm ec-check-privkey.softhsm pkcs11-uri-without-token.softhsm search-all-matching-tokens.softhsm ec-cert-store.softhsm rsa-cert.der rsa-prvkey.der rsa-pubkey.der ec-cert.der ec-prvkey.der ec-pubkey.der make[2]: Nothing to be done for 'rsa-testpkcs11.softhsm'. make[2]: Nothing to be done for 'rsa-testfork.softhsm'. make[2]: Nothing to be done for 'rsa-testlistkeys.softhsm'. make[2]: Nothing to be done for 'rsa-evp-sign.softhsm'. make[2]: Nothing to be done for 'ec-evp-sign.softhsm'. make[2]: Nothing to be done for 'ec-testfork.softhsm'. make[2]: Nothing to be done for 'fork-change-slot.softhsm'. make[2]: Nothing to be done for 'rsa-pss-sign.softhsm'. make[2]: Nothing to be done for 'rsa-oaep.softhsm'. make[2]: Nothing to be done for 'case-insensitive.softhsm'. make[2]: Nothing to be done for 'rsa-check-privkey.softhsm'. make[2]: Nothing to be done for 'ec-check-privkey.softhsm'. make[2]: Nothing to be done for 'pkcs11-uri-without-token.softhsm'. make[2]: Nothing to be done for 'search-all-matching-tokens.softhsm'. make[2]: Nothing to be done for 'ec-cert-store.softhsm'. make[2]: Nothing to be done for 'rsa-cert.der'. make[2]: Nothing to be done for 'rsa-prvkey.der'. make[2]: Nothing to be done for 'rsa-pubkey.der'. make[2]: Nothing to be done for 'ec-cert.der'. make[2]: Nothing to be done for 'ec-prvkey.der'. make[2]: Nothing to be done for 'ec-pubkey.der'. make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o openssl_version.o openssl_version.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o list-tokens.o list-tokens.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o check-privkey.o check-privkey.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' check-privkey.c: In function 'display_openssl_errors': check-privkey.c:47:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 47 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from /usr/include/openssl/engine.h:31, from check-privkey.c:24: /usr/include/openssl/err.h:423:15: note: declared here 423 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ check-privkey.c: In function 'main': check-privkey.c:87:9: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 87 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ check-privkey.c:99:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 99 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ check-privkey.c:101:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 101 | engine = ENGINE_by_id("pkcs11"); | ^~~~~~ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ check-privkey.c:109:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 109 | if (!ENGINE_ctrl_cmd_string(engine, "VERBOSE", NULL, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ check-privkey.c:114:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 114 | if (!ENGINE_ctrl_cmd_string(engine, "MODULE_PATH", module, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ check-privkey.c:119:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 119 | if (!ENGINE_init(engine)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ check-privkey.c:128:17: warning: 'ENGINE_ctrl_cmd' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 128 | if (!ENGINE_ctrl_cmd(engine, "LOAD_CERT_CTRL", 0, ¶ms, NULL, 1)) { | ^~ /usr/include/openssl/engine.h:450:27: note: declared here 450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, | ^~~~~~~~~~~~~~~ check-privkey.c:153:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 153 | pkey = ENGINE_load_private_key(engine, privkey, 0, 0); | ^~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ check-privkey.c:162:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 162 | ENGINE_finish(engine); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o rsa-oaep.o rsa-oaep.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' rsa-oaep.c: In function 'display_openssl_errors': rsa-oaep.c:50:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 50 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from rsa-oaep.c:35: /usr/include/openssl/err.h:423:15: note: declared here 423 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ rsa-oaep.c: In function 'main': rsa-oaep.c:98:9: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 98 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from rsa-oaep.c:36: /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:108:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 108 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:110:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 110 | e = ENGINE_by_id("pkcs11"); | ^ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ rsa-oaep.c:116:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 116 | if (!ENGINE_ctrl_cmd_string(e, "VERBOSE", NULL, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:121:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 121 | if (!ENGINE_ctrl_cmd_string(e, "MODULE_PATH", module_path, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:126:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 126 | if (!ENGINE_init(e)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ rsa-oaep.c:131:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 131 | if (key_pass && !ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:136:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 136 | private_key = ENGINE_load_private_key(e, private_key_name, NULL, NULL); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:143:9: warning: 'ENGINE_load_public_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 143 | public_key = ENGINE_load_public_key(e, public_key_name, NULL, NULL); | ^~~~~~~~~~ /usr/include/openssl/engine.h:641:11: note: declared here 641 | EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-oaep.c:241:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 241 | ENGINE_finish(e); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o rsa-pss-sign.o rsa-pss-sign.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' rsa-pss-sign.c: In function 'display_openssl_errors': rsa-pss-sign.c:49:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 49 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from rsa-pss-sign.c:35: /usr/include/openssl/err.h:423:15: note: declared here 423 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ rsa-pss-sign.c: In function 'main': rsa-pss-sign.c:98:9: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 98 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from rsa-pss-sign.c:36: /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:110:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 110 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:111:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 111 | e = ENGINE_by_id("pkcs11"); | ^ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ rsa-pss-sign.c:117:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 117 | if (!ENGINE_ctrl_cmd_string(e, "VERBOSE", NULL, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:122:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 122 | if (!ENGINE_ctrl_cmd_string(e, "MODULE_PATH", module_path, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:127:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 127 | if (!ENGINE_init(e)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ rsa-pss-sign.c:132:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 132 | if (key_pass && !ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:137:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 137 | private_key = ENGINE_load_private_key(e, private_key_name, NULL, NULL); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:144:9: warning: 'ENGINE_load_public_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 144 | public_key = ENGINE_load_public_key(e, public_key_name, NULL, NULL); | ^~~~~~~~~~ /usr/include/openssl/engine.h:641:11: note: declared here 641 | EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~ rsa-pss-sign.c:264:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 264 | ENGINE_finish(e); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o store-cert.o store-cert.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' store-cert.c: In function 'display_openssl_errors': store-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 46 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from ../src/libp11.h:29, from store-cert.c:21: /usr/include/openssl/err.h:423:15: note: declared here 423 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ store-cert.c: In function 'main': store-cert.c:181:9: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 181 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from store-cert.c:23: /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ store-cert.c:194:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 194 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ store-cert.c:196:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 196 | engine = ENGINE_by_id("pkcs11"); | ^~~~~~ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ store-cert.c:204:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 204 | if (!ENGINE_ctrl_cmd_string(engine, "VERBOSE", NULL, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ store-cert.c:209:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 209 | if (!ENGINE_ctrl_cmd_string(engine, "MODULE_PATH", module, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ store-cert.c:214:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 214 | if (!ENGINE_init(engine)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ store-cert.c:223:17: warning: 'ENGINE_ctrl_cmd' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 223 | if (!ENGINE_ctrl_cmd( | ^~ /usr/include/openssl/engine.h:450:27: note: declared here 450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, | ^~~~~~~~~~~~~~~ store-cert.c:267:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 267 | ENGINE_finish(engine); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o evp-sign.o evp-sign.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' evp-sign.c: In function 'display_openssl_errors': evp-sign.c:134:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 134 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from evp-sign.c:38: /usr/include/openssl/err.h:423:15: note: declared here 423 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ evp-sign.c: In function 'main': evp-sign.c:186:9: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 186 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from evp-sign.c:39: /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:198:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 198 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:199:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 199 | e = ENGINE_by_id("pkcs11"); | ^ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ evp-sign.c:205:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 205 | if (!ENGINE_ctrl_cmd_string(e, "VERBOSE", NULL, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:210:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 210 | if (!ENGINE_ctrl_cmd_string(e, "MODULE_PATH", module_path, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:215:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 215 | if (!ENGINE_init(e)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ evp-sign.c:228:17: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 228 | if (key_pass && !ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0)) { | ^~ /usr/include/openssl/engine.h:479:5: note: declared here 479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | ^~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:236:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 236 | private_key = ENGINE_load_private_key(e, private_key_name, | ^~~~~~~~~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:244:9: warning: 'ENGINE_load_public_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 244 | public_key = ENGINE_load_public_key(e, public_key_name, | ^~~~~~~~~~ /usr/include/openssl/engine.h:641:11: note: declared here 641 | EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~ evp-sign.c:309:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 309 | ENGINE_finish(e); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o fork-test.o fork-test.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' gcc -DHAVE_CONFIG_H -I. -I../src -I.. -I../src -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -c -o fork-change-slot.o fork-change-slot.c make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' fork-change-slot.c: In function 'main': fork-change-slot.c:205:9: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 205 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from fork-change-slot.c:61: /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ fork-change-slot.c:208:5: warning: 'ENGINE_add_conf_module' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 208 | ENGINE_add_conf_module(); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:709:28: note: declared here 709 | OSSL_DEPRECATEDIN_3_0 void ENGINE_add_conf_module(void); | ^~~~~~~~~~~~~~~~~~~~~~ fork-change-slot.c:218:5: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 218 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ fork-change-slot.c:221:5: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 221 | engine = ENGINE_by_id("pkcs11"); | ^~~~~~ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ fork-change-slot.c:230:9: warning: 'ENGINE_ctrl_cmd' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 230 | ENGINE_ctrl_cmd(engine, "MODULE_PATH", 0, argv[3], NULL, 1); | ^~~~~~~~~~~~~~~ /usr/include/openssl/engine.h:450:27: note: declared here 450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, | ^~~~~~~~~~~~~~~ fork-change-slot.c:234:5: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 234 | if (ENGINE_init(engine)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ fork-change-slot.c:235:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 235 | pkey = ENGINE_load_private_key(engine, argv[1], 0, 0); | ^~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ fork-change-slot.c:241:9: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 241 | ENGINE_free(engine); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:493:27: note: declared here 493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e); | ^~~~~~~~~~~ fork-change-slot.c:310:9: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 310 | ENGINE_free(engine); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:493:27: note: declared here 493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e); | ^~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o openssl_version openssl_version.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o openssl_version openssl_version.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o list-tokens list-tokens.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o list-tokens list-tokens.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o check-privkey check-privkey.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o check-privkey check-privkey.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o rsa-oaep rsa-oaep.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o rsa-oaep rsa-oaep.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o rsa-pss-sign rsa-pss-sign.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o rsa-pss-sign rsa-pss-sign.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o store-cert store-cert.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o store-cert store-cert.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o evp-sign evp-sign.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o evp-sign evp-sign.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o fork-test fork-test.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o fork-test fork-test.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[2]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -no-install -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o fork-change-slot fork-change-slot.o ../src/libp11.la -lcrypto -lpthread libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -o fork-change-slot fork-change-slot.o ../src/.libs/libp11.so -lcrypto -lpthread -pthread -Wl,-rpath -Wl,/builddir/build/BUILD/libp11-0.4.12/src/.libs make[2]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' /usr/bin/make check-TESTS make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' FAIL: ec-cert-store.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' FAIL: ec-check-privkey.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' FAIL: rsa-check-privkey.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' FAIL: pkcs11-uri-without-token.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: rsa-pss-sign.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: rsa-oaep.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: rsa-testpkcs11.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: rsa-testlistkeys.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: ec-testfork.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: rsa-testfork.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: case-insensitive.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: ec-evp-sign.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: rsa-evp-sign.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' FAIL: search-all-matching-tokens.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' PASS: fork-change-slot.softhsm make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' make[3]: Entering directory '/builddir/build/BUILD/libp11-0.4.12/tests' ========================================= libp11 0.4.12: tests/test-suite.log ========================================= # TOTAL: 15 # PASS: 10 # SKIP: 0 # XFAIL: 0 # FAIL: 5 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: rsa-check-privkey.softhsm =============================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981027 * Initializing smart card... ok Using slot 0 with a present token (0x726aae10) Using slot 0 with a present token (0x726aae10) ./rsa-no-pubkey.sh: line 118: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x726aae10) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Could not open file output.1981027/rsa-cert.pem The private key loading couldn't get the public key from the certificate FAIL rsa-check-privkey.softhsm (exit status: 1) FAIL: ec-check-privkey.softhsm ============================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981029 * Initializing smart card... ok Using slot 0 with a present token (0x3cec5696) Using slot 0 with a present token (0x3cec5696) ./ec-no-pubkey.sh: line 117: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x3cec5696) Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Could not open file output.1981029/ec-cert.pem The private key loading couldn't get the public key from the certificate FAIL ec-check-privkey.softhsm (exit status: 1) FAIL: pkcs11-uri-without-token.softhsm ====================================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981037 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x42868a97) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Detected system: linux-gnu ./pkcs11-uri-without-token.softhsm: line 56: openssl: command not found Failed to generate signature using PKCS#11 URI pkcs11:object=server-key;type=private;pin-value=1234 FAIL pkcs11-uri-without-token.softhsm (exit status: 1) FAIL: search-all-matching-tokens.softhsm ======================================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981041 * Initializing smart card libp11-test-0...ok Importing objects to token libp11-test-0 Finished Public Key Object; RSA 2048 bits label: label-0 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-0 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-0 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-1...ok Importing objects to token libp11-test-1 Finished Public Key Object; RSA 2048 bits label: label-1 ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: label-1 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: label-1 subject: DN: CN=server-1 ID: 01020304 * Initializing smart card libp11-test-2...ok Importing objects to token libp11-test-2 Finished Certificate Object; type = X.509 cert label: label-2 subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: label-2 ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: label-2 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-3...ok Importing objects to token libp11-test-3 Finished Public Key Object; RSA 2048 bits label: label-3 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-3 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-3 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-4...ok Importing objects to token libp11-test-4 Finished Private Key Object; RSA label: label-4 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Public Key Object; RSA 2048 bits label: label-4 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-4 subject: DN: CN=server-1 ID: 01020304 * Initializing smart card libp11-test-5...ok Importing objects to token libp11-test-5 Finished Certificate Object; type = X.509 cert label: label-5 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-5 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Public Key Object; RSA 2048 bits label: label-5 ID: 01020304 Usage: encrypt, verify, wrap Access: none Detected system: linux-gnu ./search-all-matching-tokens.softhsm: line 74: openssl: command not found ./search-all-matching-tokens.softhsm: line 83: openssl: command not found Failed to sign file using PKCS#11 URI pkcs11:token=libp11-test-3;object=label-3;type=private;pin-value=1234 FAIL search-all-matching-tokens.softhsm (exit status: 1) FAIL: ec-cert-store.softhsm =========================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981046 * Initializing smart card... ok Using slot 0 with a present token (0x24bc146e) Using slot 0 with a present token (0x24bc146e) ./ec-no-pubkey.sh: line 117: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x24bc146e) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Could not open file output.1981046/ec-cert.pem The certificate storing couldn't be performed FAIL ec-cert-store.softhsm (exit status: 1) ============================================================================ Testsuite summary for libp11 0.4.12 ============================================================================ # TOTAL: 15 # PASS: 10 # SKIP: 0 # XFAIL: 0 # FAIL: 5 # XPASS: 0 # ERROR: 0 ============================================================================ See tests/test-suite.log ============================================================================ make[3]: Leaving directory '/builddir/build/BUILD/libp11-0.4.12/tests' Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981023 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x55a46964) Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1436838244] SoftHSM slot ID 0x55a4696 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x55a46964 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PASS case-insensitive.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981046 * Initializing smart card... ok Using slot 0 with a present token (0x24bc146e) Using slot 0 with a present token (0x24bc146e) ./ec-no-pubkey.sh: line 117: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x24bc146e) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Could not open file output.1981046/ec-cert.pem The certificate storing couldn't be performed FAIL ec-cert-store.softhsm (exit status: 1) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981029 * Initializing smart card... ok Using slot 0 with a present token (0x3cec5696) Using slot 0 with a present token (0x3cec5696) ./ec-no-pubkey.sh: line 117: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x3cec5696) Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Could not open file output.1981029/ec-cert.pem The private key loading couldn't get the public key from the certificate FAIL ec-check-privkey.softhsm (exit status: 1) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981008 * Initializing smart card... ok Using slot 0 with a present token (0x43097321) Using slot 0 with a present token (0x43097321) Using slot 0 with a present token (0x43097321) *************** Listing objects *************** Using slot 0 with a present token (0x43097321) Public Key Object; EC EC_POINT 256 bits EC_POINT: 044104dd0eeb0cdbf4d1e0a385f424f0dc1cb7da10e41e11ab1da667ad96f2a8b7039178bad0166556dc2bbe96dd46879eb6036bb5b90dac4f28d8792092a5fd941c4c EC_PARAMS: 06082a8648ce3d030107 label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slot -1 for private key without login: label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Looking in slot -1 for private key with login: label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slot -1 for public key without login: label=server-key - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slot -1 for private key without login: id=01020304 - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Looking in slot -1 for private key with login: id=01020304 - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slot -1 for public key without login: id=01020304 - [1124692769] SoftHSM slot ID 0x4309732 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x43097321 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PASS ec-evp-sign.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981014 * Initializing smart card... ok Using slot 0 with a present token (0x45124489) Using slot 0 with a present token (0x45124489) Using slot 0 with a present token (0x45124489) *************** Listing objects *************** Using slot 0 with a present token (0x45124489) Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Public Key Object; EC EC_POINT 256 bits EC_POINT: 044104dd0eeb0cdbf4d1e0a385f424f0dc1cb7da10e41e11ab1da667ad96f2a8b7039178bad0166556dc2bbe96dd46879eb6036bb5b90dac4f28d8792092a5fd941c4c EC_PARAMS: 06082a8648ce3d030107 label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x45124489 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 3635d80245124489 71-byte signature created Signature matched Cleanup complete Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x45124489 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 3635d80245124489 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x45124489 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 3635d80245124489 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x45124489 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 3635d80245124489 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x45124489 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 3635d80245124489 PASS ec-testfork.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981024 * Initializing smart card token1...ok * Initializing smart card token2...ok Key pair generated: Private Key Object; RSA label: pkey ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive, always sensitive, never extractable, local Public Key Object; RSA 2048 bits label: pkey ID: 01020304 Usage: encrypt, verify, wrap Access: local Found token (5a8edefa-41d6-722e-c434-8cd577206153) with matching token label. The token (output.1981024/softhsm-testpkcs11.db/5a8edefa-41d6-722e-c434-8cd577206153) has been deleted. pid 1981283 is the parent Remove or add a device to try to cause an error Waiting for signal SIGUSR1 pid 1981287: 256-byte signature created pid 1981287: Signature matched pid 1981283 is the parent spawned 1981287 child 1981287 exited with status 0 pid 1981283: 256-byte signature created pid 1981283: Signature matched PASS fork-change-slot.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981037 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x42868a97) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Detected system: linux-gnu ./pkcs11-uri-without-token.softhsm: line 56: openssl: command not found Failed to generate signature using PKCS#11 URI pkcs11:object=server-key;type=private;pin-value=1234 FAIL pkcs11-uri-without-token.softhsm (exit status: 1) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981027 * Initializing smart card... ok Using slot 0 with a present token (0x726aae10) Using slot 0 with a present token (0x726aae10) ./rsa-no-pubkey.sh: line 118: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x726aae10) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Could not open file output.1981027/rsa-cert.pem The private key loading couldn't get the public key from the certificate FAIL rsa-check-privkey.softhsm (exit status: 1) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981000 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x7d26a247) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive pkcs11:token=libp11-test;id=%01%02%03%04;object=server-key;type=private;pin-value=1234 PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified pkcs11:token=libp11-test;id=%01%02%03%04;object=server-key;type=private;pin-source=output.1981000/pin.txt PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified pkcs11:token=libp11-test;id=%01%02%03%04;object=server-key;type=private;pin-source=file:output.1981000/pin.txt PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slot -1 for private key without login: label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slot -1 for private key with login: label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slot -1 for public key without login: label=server-key - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slot -1 for private key without login: id=01020304 - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Looking in slot -1 for private key with login: id=01020304 - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slot -1 for public key without login: id=01020304 - [2099683911] SoftHSM slot ID 0x7d26a24 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x7d26a247 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PASS rsa-evp-sign.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981019 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x3b2ca643) Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [992781891] SoftHSM slot ID 0x3b2ca64 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x3b2ca643 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [992781891] SoftHSM slot ID 0x3b2ca64 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x3b2ca643 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [992781891] SoftHSM slot ID 0x3b2ca64 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x3b2ca643 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Data encrypted Successfully decrypted PASS rsa-oaep.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981016 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x77c68810) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so Found 2 slots Looking in slots for private key without login: id=01020304 label=server-key - [2009499664] SoftHSM slot ID 0x77c6881 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x77c68810 Found token: libp11-test Looking in slots for private key with login: id=01020304 label=server-key - [2009499664] SoftHSM slot ID 0x77c6881 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x77c68810 Found token: libp11-test Found 1 private key: 1 P id=01020304 label=server-key Returning last matching private key: id=01020304 label=server-key Looking in slots for public key without login: id=01020304 label=server-key - [2009499664] SoftHSM slot ID 0x77c6881 login (libp11-test) - [1] SoftHSM slot ID 0x1 uninitialized, login (no label) Found slot: SoftHSM slot ID 0x77c68810 Found token: libp11-test Found 1 public key: 1 id=01020304 label=server-key Returning last matching public key: id=01020304 label=server-key Signature created Signature verified PASS rsa-pss-sign.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1980996 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x5ddaaa43) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x5ddaaa43 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 03edb6bfdddaaa43 256-byte signature created Signature matched Cleanup complete Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x5ddaaa43 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 03edb6bfdddaaa43 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x5ddaaa43 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 03edb6bfdddaaa43 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x5ddaaa43 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 03edb6bfdddaaa43 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x5ddaaa43 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 03edb6bfdddaaa43 PASS rsa-testfork.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1980995 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x594ce828) Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x594ce828 Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 432a88e3d94ce828 Public keys: * Public key: server-key Private keys: * Private key: server-key Success. PASS rsa-testlistkeys.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1980987 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x31b886ef) Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Slot manufacturer......: SoftHSM project Slot description.......: SoftHSM slot ID 0x31b886ef Slot token label.......: libp11-test Slot token manufacturer: SoftHSM project Slot token model.......: SoftHSM v2 Slot token serialnr....: 3e1d8d9f31b886ef authentication successful. PASS rsa-testpkcs11.softhsm (exit status: 0) Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981041 * Initializing smart card libp11-test-0...ok Importing objects to token libp11-test-0 Finished Public Key Object; RSA 2048 bits label: label-0 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-0 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-0 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-1...ok Importing objects to token libp11-test-1 Finished Public Key Object; RSA 2048 bits label: label-1 ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: label-1 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: label-1 subject: DN: CN=server-1 ID: 01020304 * Initializing smart card libp11-test-2...ok Importing objects to token libp11-test-2 Finished Certificate Object; type = X.509 cert label: label-2 subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: label-2 ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: label-2 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-3...ok Importing objects to token libp11-test-3 Finished Public Key Object; RSA 2048 bits label: label-3 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-3 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-3 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-4...ok Importing objects to token libp11-test-4 Finished Private Key Object; RSA label: label-4 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Public Key Object; RSA 2048 bits label: label-4 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-4 subject: DN: CN=server-1 ID: 01020304 * Initializing smart card libp11-test-5...ok Importing objects to token libp11-test-5 Finished Certificate Object; type = X.509 cert label: label-5 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-5 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Public Key Object; RSA 2048 bits label: label-5 ID: 01020304 Usage: encrypt, verify, wrap Access: none Detected system: linux-gnu ./search-all-matching-tokens.softhsm: line 74: openssl: command not found ./search-all-matching-tokens.softhsm: line 83: openssl: command not found Failed to sign file using PKCS#11 URI pkcs11:token=libp11-test-3;object=label-3;type=private;pin-value=1234 FAIL search-all-matching-tokens.softhsm (exit status: 1) ========================================= libp11 0.4.12: tests/test-suite.log ========================================= # TOTAL: 15 # PASS: 10 # SKIP: 0 # XFAIL: 0 # FAIL: 5 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: rsa-check-privkey.softhsm =============================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981027 * Initializing smart card... ok Using slot 0 with a present token (0x726aae10) Using slot 0 with a present token (0x726aae10) ./rsa-no-pubkey.sh: line 118: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x726aae10) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Could not open file output.1981027/rsa-cert.pem The private key loading couldn't get the public key from the certificate FAIL rsa-check-privkey.softhsm (exit status: 1) FAIL: ec-check-privkey.softhsm ============================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981029 * Initializing smart card... ok Using slot 0 with a present token (0x3cec5696) Using slot 0 with a present token (0x3cec5696) ./ec-no-pubkey.sh: line 117: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x3cec5696) Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Could not open file output.1981029/ec-cert.pem The private key loading couldn't get the public key from the certificate FAIL ec-check-privkey.softhsm (exit status: 1) FAIL: pkcs11-uri-without-token.softhsm ====================================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981037 * Initializing smart card libp11-test...ok Importing Finished *************** Listing objects *************** Using slot 0 with a present token (0x42868a97) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: server-key ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Detected system: linux-gnu ./pkcs11-uri-without-token.softhsm: line 56: openssl: command not found Failed to generate signature using PKCS#11 URI pkcs11:object=server-key;type=private;pin-value=1234 FAIL pkcs11-uri-without-token.softhsm (exit status: 1) FAIL: search-all-matching-tokens.softhsm ======================================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981041 * Initializing smart card libp11-test-0...ok Importing objects to token libp11-test-0 Finished Public Key Object; RSA 2048 bits label: label-0 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-0 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-0 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-1...ok Importing objects to token libp11-test-1 Finished Public Key Object; RSA 2048 bits label: label-1 ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: label-1 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Certificate Object; type = X.509 cert label: label-1 subject: DN: CN=server-1 ID: 01020304 * Initializing smart card libp11-test-2...ok Importing objects to token libp11-test-2 Finished Certificate Object; type = X.509 cert label: label-2 subject: DN: CN=server-1 ID: 01020304 Public Key Object; RSA 2048 bits label: label-2 ID: 01020304 Usage: encrypt, verify, wrap Access: none Private Key Object; RSA label: label-2 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-3...ok Importing objects to token libp11-test-3 Finished Public Key Object; RSA 2048 bits label: label-3 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-3 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-3 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive * Initializing smart card libp11-test-4...ok Importing objects to token libp11-test-4 Finished Private Key Object; RSA label: label-4 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Public Key Object; RSA 2048 bits label: label-4 ID: 01020304 Usage: encrypt, verify, wrap Access: none Certificate Object; type = X.509 cert label: label-4 subject: DN: CN=server-1 ID: 01020304 * Initializing smart card libp11-test-5...ok Importing objects to token libp11-test-5 Finished Certificate Object; type = X.509 cert label: label-5 subject: DN: CN=server-1 ID: 01020304 Private Key Object; RSA label: label-5 ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Public Key Object; RSA 2048 bits label: label-5 ID: 01020304 Usage: encrypt, verify, wrap Access: none Detected system: linux-gnu ./search-all-matching-tokens.softhsm: line 74: openssl: command not found ./search-all-matching-tokens.softhsm: line 83: openssl: command not found Failed to sign file using PKCS#11 URI pkcs11:token=libp11-test-3;object=label-3;type=private;pin-value=1234 FAIL search-all-matching-tokens.softhsm (exit status: 1) FAIL: ec-cert-store.softhsm =========================== Current directory: /builddir/build/BUILD/libp11-0.4.12/tests Source directory: . Output directory: output.1981046 * Initializing smart card... ok Using slot 0 with a present token (0x24bc146e) Using slot 0 with a present token (0x24bc146e) ./ec-no-pubkey.sh: line 117: openssl: command not found *************** Listing objects *************** Using slot 0 with a present token (0x24bc146e) Certificate Object; type = X.509 cert label: server-key subject: DN: CN=ec ID: 01020304 Private Key Object; EC label: server-key ID: 01020304 Usage: decrypt, sign, unwrap Access: sensitive Could not open file output.1981046/ec-cert.pem The certificate storing couldn't be performed FAIL ec-cert-store.softhsm (exit status: 1) make[3]: *** [Makefile:810: test-suite.log] Error 1 make[2]: *** [Makefile:918: check-TESTS] Error 2 make[1]: *** [Makefile:1089: check-am] Error 2 make: *** [Makefile:480: check-recursive] Error 1 + '[' 2 -ne 0 ']' + cat tests/case-insensitive.softhsm.log tests/ec-cert-store.softhsm.log tests/ec-check-privkey.softhsm.log tests/ec-evp-sign.softhsm.log tests/ec-testfork.softhsm.log tests/fork-change-slot.softhsm.log tests/pkcs11-uri-without-token.softhsm.log tests/rsa-check-privkey.softhsm.log tests/rsa-evp-sign.softhsm.log tests/rsa-oaep.softhsm.log tests/rsa-pss-sign.softhsm.log tests/rsa-testfork.softhsm.log tests/rsa-testlistkeys.softhsm.log tests/rsa-testpkcs11.softhsm.log tests/search-all-matching-tokens.softhsm.log tests/test-suite.log + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.0fSFRu (%check) Bad exit status from /var/tmp/rpm-tmp.0fSFRu (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openssl-pkcs11.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openssl-pkcs11.spec