Mock Version: 5.0
Mock Version: 5.0
Mock Version: 5.0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/pkcs11-provider.spec'], chrootPath='/var/lib/mock/f39-build-1810408-41827/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffff7b1cfc10>timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/pkcs11-provider.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: riscv64
Building for target riscv64
setting SOURCE_DATE_EPOCH=1689897600
Wrote: /builddir/build/SRPMS/pkcs11-provider-0.2-2.fc39.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/pkcs11-provider.spec'], chrootPath='/var/lib/mock/f39-build-1810408-41827/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffff7b1cfc10>timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/pkcs11-provider.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: riscv64
Building for target riscv64
setting SOURCE_DATE_EPOCH=1689897600
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wB3ENy
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf pkcs11-provider-0.2
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pkcs11-provider-0.2.tar.xz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pkcs11-provider-0.2
+ rm -rf /builddir/build/BUILD/pkcs11-provider-0.2-SPECPARTS
+ /usr/bin/mkdir -p /builddir/build/BUILD/pkcs11-provider-0.2-SPECPARTS
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.c5up2G
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd pkcs11-provider-0.2
+ autoreconf -fi
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:12: installing './compile'
configure.ac:8: installing './missing'
src/Makefile.am: installing './depcomp'
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ 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	2023-11-26 06:16:27.443918867 -0500
+++ ./configure	2023-11-26 06:17:20.413923289 -0500
@@ -1768,7 +1768,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-11-26 06:17:20.413923289 -0500
+++ ./configure	2023-11-26 06:17:21.353923368 -0500
@@ -7051,7 +7051,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'"
@@ -15312,7 +15312,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.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./config.sub
++ basename ./config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
'/usr/lib/rpm/redhat/config.sub' -> './config.sub'
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./config.guess
++ basename ./config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
'/usr/lib/rpm/redhat/config.guess' -> './config.guess'
+ '[' 1 = 1 ']'
+ '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-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/redhat/redhat-hardened-ld"~' ./ltmain.sh
++ grep -q runstatedir=DIR ./configure
++ echo --runstatedir=/run
+ ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --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 --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for riscv64-koji-linux-gnu-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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... 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 riscv64-koji-linux-gnu-ar... no
checking for riscv64-koji-linux-gnu-lib... no
checking for riscv64-koji-linux-gnu-link... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... riscv64-koji-linux-gnu
checking host system type... riscv64-koji-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
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 whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert riscv64-koji-linux-gnu file names to riscv64-koji-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-koji-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for riscv64-koji-linux-gnu-file... no
checking for file... file
checking for riscv64-koji-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-koji-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-koji-linux-gnu-ar... ar
checking for archiver @FILE support... @
checking for riscv64-koji-linux-gnu-strip... no
checking for strip... strip
checking for riscv64-koji-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 7057:  -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 riscv64-koji-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
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) 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... yes
checking for riscv64-koji-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether C compiler accepts -std=c11... yes
checking for valgrind... no
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... yes
checking whether C compiler accepts -fdiagnostics-show-option... yes
checking for libcrypto >= 3.0.7... yes
checking for libcrypto >= 3.0.7, libssl... yes
checking for --with-address-sanitizer... no
checking for /usr/lib64/libsoftokn3.so... yes
checking for string.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for size_t... yes
checking for strpbrk... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ /usr/bin/make -O -j8 V=1 VERBOSE=1
Making all in src
/usr/bin/make  all-am
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-debug.lo `test -f 'debug.c' || echo './'`debug.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c debug.c  -fPIC -DPIC -o .libs/pkcs11_la-debug.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c debug.c -o pkcs11_la-debug.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-kdf.lo `test -f 'kdf.c' || echo './'`kdf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c kdf.c  -fPIC -DPIC -o .libs/pkcs11_la-kdf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c kdf.c -o pkcs11_la-kdf.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-asymmetric_cipher.lo `test -f 'asymmetric_cipher.c' || echo './'`asymmetric_cipher.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c asymmetric_cipher.c  -fPIC -DPIC -o .libs/pkcs11_la-asymmetric_cipher.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c asymmetric_cipher.c -o pkcs11_la-asymmetric_cipher.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-digests.lo `test -f 'digests.c' || echo './'`digests.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c digests.c  -fPIC -DPIC -o .libs/pkcs11_la-digests.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c digests.c -o pkcs11_la-digests.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-exchange.lo `test -f 'exchange.c' || echo './'`exchange.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c exchange.c  -fPIC -DPIC -o .libs/pkcs11_la-exchange.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c exchange.c -o pkcs11_la-exchange.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-encoder.lo `test -f 'encoder.c' || echo './'`encoder.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c encoder.c  -fPIC -DPIC -o .libs/pkcs11_la-encoder.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c encoder.c -o pkcs11_la-encoder.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-keymgmt.lo `test -f 'keymgmt.c' || echo './'`keymgmt.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c keymgmt.c  -fPIC -DPIC -o .libs/pkcs11_la-keymgmt.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c keymgmt.c -o pkcs11_la-keymgmt.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-random.lo `test -f 'random.c' || echo './'`random.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c random.c  -fPIC -DPIC -o .libs/pkcs11_la-random.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c random.c -o pkcs11_la-random.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-interface.lo `test -f 'interface.c' || echo './'`interface.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c interface.c  -fPIC -DPIC -o .libs/pkcs11_la-interface.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c interface.c -o pkcs11_la-interface.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-tls.lo `test -f 'tls.c' || echo './'`tls.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c tls.c  -fPIC -DPIC -o .libs/pkcs11_la-tls.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c tls.c -o pkcs11_la-tls.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-slot.lo `test -f 'slot.c' || echo './'`slot.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c slot.c  -fPIC -DPIC -o .libs/pkcs11_la-slot.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c slot.c -o pkcs11_la-slot.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-session.lo `test -f 'session.c' || echo './'`session.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c session.c  -fPIC -DPIC -o .libs/pkcs11_la-session.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c session.c -o pkcs11_la-session.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-store.lo `test -f 'store.c' || echo './'`store.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c store.c  -fPIC -DPIC -o .libs/pkcs11_la-store.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c store.c -o pkcs11_la-store.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-objects.lo `test -f 'objects.c' || echo './'`objects.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c objects.c  -fPIC -DPIC -o .libs/pkcs11_la-objects.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c objects.c -o pkcs11_la-objects.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-provider.lo `test -f 'provider.c' || echo './'`provider.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c provider.c  -fPIC -DPIC -o .libs/pkcs11_la-provider.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c provider.c -o pkcs11_la-provider.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-signature.lo `test -f 'signature.c' || echo './'`signature.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c signature.c  -fPIC -DPIC -o .libs/pkcs11_la-signature.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c signature.c -o pkcs11_la-signature.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pkcs11_la-util.lo `test -f 'util.c' || echo './'`util.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c util.c  -fPIC -DPIC -o .libs/pkcs11_la-util.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -c util.c -o pkcs11_la-util.o >/dev/null 2>&1
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -Wall -Werror -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -module -shared -shrext .so -avoid-version -export-symbols "./provider.exports" -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o pkcs11.la -rpath /usr/lib64/ossl-modules pkcs11_la-asymmetric_cipher.lo pkcs11_la-debug.lo pkcs11_la-encoder.lo pkcs11_la-digests.lo pkcs11_la-exchange.lo pkcs11_la-kdf.lo pkcs11_la-keymgmt.lo pkcs11_la-interface.lo pkcs11_la-objects.lo pkcs11_la-provider.lo pkcs11_la-random.lo pkcs11_la-session.lo pkcs11_la-signature.lo pkcs11_la-slot.lo pkcs11_la-store.lo pkcs11_la-tls.lo pkcs11_la-util.lo -lcrypto 
libtool: link: echo "{ global:" > .libs/pkcs11.ver
libtool: link:  cat ./provider.exports | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/pkcs11.ver
libtool: link:  echo "local: *; };" >> .libs/pkcs11.ver
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/pkcs11_la-asymmetric_cipher.o .libs/pkcs11_la-debug.o .libs/pkcs11_la-encoder.o .libs/pkcs11_la-digests.o .libs/pkcs11_la-exchange.o .libs/pkcs11_la-kdf.o .libs/pkcs11_la-keymgmt.o .libs/pkcs11_la-interface.o .libs/pkcs11_la-objects.o .libs/pkcs11_la-provider.o .libs/pkcs11_la-random.o .libs/pkcs11_la-session.o .libs/pkcs11_la-signature.o .libs/pkcs11_la-slot.o .libs/pkcs11_la-store.o .libs/pkcs11_la-tls.o .libs/pkcs11_la-util.o   -lcrypto -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -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/pkcs11-provider-0.2/src'
Making all in tests
make[1]: Nothing to be done for 'all'.
Making all in docs
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.xqEeth
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64
++ dirname /builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd pkcs11-provider-0.2
+ /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64 'INSTALL=/usr/bin/install -p'
Making install in src
make[1]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/lib64/ossl-modules'
 /bin/sh ../libtool   --mode=install /usr/bin/install -p   pkcs11.la '/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/lib64/ossl-modules'
libtool: install: /usr/bin/install -p .libs/pkcs11.so /builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/lib64/ossl-modules/pkcs11.so
libtool: install: /usr/bin/install -p .libs/pkcs11.lai /builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/lib64/ossl-modules/pkcs11.la
libtool: warning: remember to run 'libtool --finish /usr/lib64/ossl-modules'
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[1]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
Making install in tests
make[1]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make[1]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
Making install in docs
make[1]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/docs'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/docs'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/share/man/man7'
 /usr/bin/install -p -m 644 provider-pkcs11.7 '/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/share/man/man7'
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/docs'
make[1]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/docs'
make[1]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2'
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/share/doc/pkcs11-provider'
 /usr/bin/install -p -m 644 README.md '/builddir/build/BUILDROOT/pkcs11-provider-0.2-2.fc39.riscv64/usr/share/doc/pkcs11-provider'
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2'
make[1]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2'
+ /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.2-2.fc39 --unique-debug-suffix -0.2-2.fc39.riscv64 --unique-debug-src-base pkcs11-provider-0.2-2.fc39.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pkcs11-provider-0.2
find-debuginfo: starting
Extracting debug info from 1 files
DWARF-compressing 1 files
sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.
Creating .debug symlinks for symlinks to ELF files
Copying sources found by 'debugedit -l' to /usr/src/debug/pkcs11-provider-0.2-2.fc39.riscv64
1273 blocks
find-debuginfo: done
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
*** WARNING: ./usr/lib64/ossl-modules/pkcs11.la is executable but has no shebang, removing executable bit
+ /usr/lib/rpm/brp-remove-la-files
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8
+ /usr/lib/rpm/redhat/brp-python-hardlink
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.CvHBMt
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd pkcs11-provider-0.2
+ make check
Making check in src
make[1]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
make[1]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/src'
Making check in tests
make[1]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make  tsession tgenkey tlsctx tdigests treadkeys tfork pincache \
  helpers.sh setup-softhsm.sh setup-softokn.sh softhsm-proxy.sh test-wrapper tbasic tcerts tecc tecdh tedwards tdemoca thkdf toaepsha2 trsapss tdigest ttls tpubkey tfork turi trand
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o tsession-tsession.o `test -f 'tsession.c' || echo './'`tsession.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tsession tsession-tsession.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tsession tsession-tsession.o  -lssl -lcrypto
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o tgenkey-tgenkey.o `test -f 'tgenkey.c' || echo './'`tgenkey.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tgenkey tgenkey-tgenkey.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tgenkey tgenkey-tgenkey.o  -lssl -lcrypto
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o tlsctx-tlsctx.o `test -f 'tlsctx.c' || echo './'`tlsctx.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tlsctx tlsctx-tlsctx.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tlsctx tlsctx-tlsctx.o  -lssl -lcrypto
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o tdigests-tdigests.o `test -f 'tdigests.c' || echo './'`tdigests.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tdigests tdigests-tdigests.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tdigests tdigests-tdigests.o  -lssl -lcrypto
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o treadkeys-treadkeys.o `test -f 'treadkeys.c' || echo './'`treadkeys.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o treadkeys treadkeys-treadkeys.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o treadkeys treadkeys-treadkeys.o  -lssl -lcrypto
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o tfork-tfork.o `test -f 'tfork.c' || echo './'`tfork.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tfork tfork-tfork.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tfork tfork-tfork.o  -lssl -lcrypto
gcc -DHAVE_CONFIG_H -I. -I../src    -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11 -c -o pincache-pincache.o `test -f 'pincache.c' || echo './'`pincache.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer  -std=c11  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o pincache pincache-pincache.o -lssl -lcrypto 
libtool: link: gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Wno-unused-parameter -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -std=c11 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o pincache pincache-pincache.o  -lssl -lcrypto
make[2]: Nothing to be done for 'helpers.sh'.
make[2]: Nothing to be done for 'setup-softhsm.sh'.
make[2]: Nothing to be done for 'setup-softokn.sh'.
make[2]: Nothing to be done for 'softhsm-proxy.sh'.
make[2]: Nothing to be done for 'test-wrapper'.
make[2]: Nothing to be done for 'tbasic'.
make[2]: Nothing to be done for 'tcerts'.
make[2]: Nothing to be done for 'tecc'.
make[2]: Nothing to be done for 'tecdh'.
make[2]: Nothing to be done for 'tedwards'.
make[2]: Nothing to be done for 'tdemoca'.
make[2]: Nothing to be done for 'thkdf'.
make[2]: Nothing to be done for 'toaepsha2'.
make[2]: Nothing to be done for 'trsapss'.
make[2]: Nothing to be done for 'tdigest'.
make[2]: Nothing to be done for 'ttls'.
make[2]: Nothing to be done for 'tpubkey'.
make[2]: 'tfork' is up to date.
make[2]: Nothing to be done for 'turi'.
make[2]: Nothing to be done for 'trand'.
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make  check-TESTS
make[2]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make[3]: Entering directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
LIBSPATH=/builddir/build/BUILD/pkcs11-provider-0.2/src/.libs \
TESTSSRCDIR=/builddir/build/BUILD/pkcs11-provider-0.2/tests \
TESTBLDDIR=/builddir/build/BUILD/pkcs11-provider-0.2/tests \
SHARED_EXT=.so \
SOFTOKNPATH="/usr/lib64/" \
/builddir/build/BUILD/pkcs11-provider-0.2/tests/setup-softokn.sh > setup-softokn.log 2>&1
LIBSPATH=/builddir/build/BUILD/pkcs11-provider-0.2/src/.libs \
TESTSSRCDIR=/builddir/build/BUILD/pkcs11-provider-0.2/tests \
TESTBLDDIR=/builddir/build/BUILD/pkcs11-provider-0.2/tests \
SHARED_EXT=.so \
P11KITCLIENTPATH="/usr/lib64/pkcs11/p11-kit-client.so" \
/builddir/build/BUILD/pkcs11-provider-0.2/tests/setup-softhsm.sh > setup-softhsm.log 2>&1
FAIL: basic-softokn.t
FAIL: basic-softhsm.t
PASS: pubkey-softokn.t
PASS: pubkey-softhsm.t
PASS: certs-softokn.t
PASS: certs-softhsm.t
PASS: ecc-softokn.t
PASS: ecc-softhsm.t
PASS: edwards-softhsm.t
PASS: ecdh-softokn.t
PASS: democa-softokn.t
PASS: democa-softhsm.t
PASS: digest-softokn.t
PASS: digest-softhsm.t
PASS: fork-softokn.t
PASS: fork-softhsm.t
PASS: oaepsha2-softokn.t
PASS: hkdf-softokn.t
PASS: rsapss-softokn.t
PASS: genkey-softokn.t
PASS: genkey-softhsm.t
PASS: session-softokn.t
PASS: session-softhsm.t
PASS: rand-softokn.t
PASS: rand-softhsm.t
PASS: readkeys-softokn.t
PASS: readkeys-softhsm.t
FAIL: tls-softokn.t
FAIL: tls-softhsm.t
PASS: uri-softokn.t
PASS: uri-softhsm.t
============================================================================
Testsuite summary for pkcs11-provider 0.2
============================================================================
# TOTAL: 31
# PASS:  27
# SKIP:  0
# XFAIL: 0
# FAIL:  4
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to simo@redhat.com
============================================================================
make[3]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make[3]: *** [Makefile:1004: test-suite.log] Error 1
make[2]: *** [Makefile:1112: check-TESTS] Error 2
make[2]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make[1]: *** [Makefile:1178: check-am] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/pkcs11-provider-0.2/tests'
make: *** [Makefile:476: check-recursive] Error 1
+ '[' 2 -ne 0 ']'
+ cat tests/basic-softhsm.log tests/basic-softokn.log tests/certs-softhsm.log tests/certs-softokn.log tests/democa-softhsm.log tests/democa-softokn.log tests/digest-softhsm.log tests/digest-softokn.log tests/ecc-softhsm.log tests/ecc-softokn.log tests/ecdh-softokn.log tests/edwards-softhsm.log tests/fork-softhsm.log tests/fork-softokn.log tests/genkey-softhsm.log tests/genkey-softokn.log tests/hkdf-softokn.log tests/oaepsha2-softokn.log tests/pubkey-softhsm.log tests/pubkey-softokn.log tests/rand-softhsm.log tests/rand-softokn.log tests/readkeys-softhsm.log tests/readkeys-softokn.log tests/rsapss-softokn.log tests/session-softhsm.log tests/session-softokn.log tests/setup-softhsm.log tests/setup-softokn.log tests/test-suite.log tests/tls-softhsm.log tests/tls-softokn.log tests/uri-softhsm.log tests/uri-softokn.log
Executing ./tbasic
## Raw Sign check error
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -pkeyopt pad-mode:none
              -in ${TMPPDIR}/64Brandom.bin
              -out ${TMPPDIR}/raw-sig.bin
Public Key operation error
2054D8A3FFFFFF00:error:0200007A:rsa routines:p11prov_sig_operate:data too small for key size:signature.c:874:
## Sign and Verify with provided Hash and RSA
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}"
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## Sign and Verify with provided Hash and RSA with DigestInfo struct
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}" -pkeyopt digest:sha256
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}" -pkeyopt digest:sha256
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with RSA
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -digest sha256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-dgstsig.bin
 openssl 
pkeyutl -verify -inkey "${BASEURI}" -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
RSA basic encrypt and decrypt
 openssl 
pkeyutl -encrypt -inkey "${PUBURI}" -pubin
                 -in ${SECRETFILE}
                 -out ${SECRETFILE}.enc
 openssl 
pkeyutl -decrypt -inkey "${PRIURI}"
                 -in ${SECRETFILE}.enc
                 -out ${SECRETFILE}.dec
## Test Disallow Public Export
 openssl pkey -in $PUBURI -pubin -pubout -text
## Test CSR generation from RSA private keys
 openssl 
req -new -batch -key "${PRIURI}" -out ${TMPPDIR}/rsa_csr.pem
 openssl 
req -in ${TMPPDIR}/rsa_csr.pem -verify -noout
Certificate request self-signature verify OK
## Test fetching public keys without PIN in config files
 openssl pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/rsa.pub.nopin.pem
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ec.pub.nopin.pem
## Test fetching public keys with a PIN in URI
 openssl pkey -in $BASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/rsa.pub.uripin.pem
 openssl pkey -in $ECBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ec.pub.uripin.pem
## Test prompting without PIN in config files
Failed to get expected command output
Original command output:
Enter pass phrase for PKCS#11 Token (Slot 533815277 - SoftHSM slot ID 0x1fd15fed):
PKCS11 RSA Private Key (2048 bits)
[Can't export and print private key data]
URI pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%01;object=testCert;type=private
FAIL basic-softhsm.t (exit status: 1)
Executing ./tbasic
## Raw Sign check error
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -pkeyopt pad-mode:none
              -in ${TMPPDIR}/64Brandom.bin
              -out ${TMPPDIR}/raw-sig.bin
Public Key operation error
20E4D9B9FFFFFF00:error:0200007A:rsa routines:p11prov_sig_operate:data too small for key size:signature.c:874:
## Sign and Verify with provided Hash and RSA
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}"
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## Sign and Verify with provided Hash and RSA with DigestInfo struct
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}" -pkeyopt digest:sha256
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}" -pkeyopt digest:sha256
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with RSA
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -digest sha256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-dgstsig.bin
 openssl 
pkeyutl -verify -inkey "${BASEURI}" -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
RSA basic encrypt and decrypt
 openssl 
pkeyutl -encrypt -inkey "${PUBURI}" -pubin
                 -in ${SECRETFILE}
                 -out ${SECRETFILE}.enc
 openssl 
pkeyutl -decrypt -inkey "${PRIURI}"
                 -in ${SECRETFILE}.enc
                 -out ${SECRETFILE}.dec
## Test Disallow Public Export
 openssl pkey -in $PUBURI -pubin -pubout -text
## Test CSR generation from RSA private keys
 openssl 
req -new -batch -key "${PRIURI}" -out ${TMPPDIR}/rsa_csr.pem
 openssl 
req -in ${TMPPDIR}/rsa_csr.pem -verify -noout
Certificate request self-signature verify OK
## Test fetching public keys without PIN in config files
 openssl pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/rsa.pub.nopin.pem
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ec.pub.nopin.pem
## Test fetching public keys with a PIN in URI
 openssl pkey -in $BASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/rsa.pub.uripin.pem
 openssl pkey -in $ECBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ec.pub.uripin.pem
## Test prompting without PIN in config files
Failed to get expected command output
Original command output:
Enter pass phrase for PKCS#11 Token (Slot 1 - NSS Internal Cryptographic Services):
PKCS11 RSA Private Key (2048 bits)
[Can't export and print private key data]
URI pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%6C%4F%6D%63%63%93%AF%24%B6%FA%EC%24%DD%8B%1D%DD%EB%D2%0B%CA;type=private
FAIL basic-softokn.t (exit status: 1)
Executing ./tcerts
## Check we can fetch certifiatce objects
 openssl 
x509 -in ${CRTURI} -subject -out ${TMPPDIR}/crt-subj.txt
 openssl 
x509 -in ${ECCRTURI} -subject -out ${TMPPDIR}/eccrt-subj.txt
## Use storeutl command to match specific certs via params
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
PASS certs-softhsm.t (exit status: 0)
Executing ./tcerts
## Check we can fetch certifiatce objects
 openssl 
x509 -in ${CRTURI} -subject -out ${TMPPDIR}/crt-subj.txt
 openssl 
x509 -in ${ECCRTURI} -subject -out ${TMPPDIR}/eccrt-subj.txt
## Use storeutl command to match specific certs via params
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
 openssl 
storeutl -certs -subject "${subj}"
                -out ${TMPPDIR}/storeutl-crt-subj.txt
                pkcs11:type=cert
0: Certificate
PASS certs-softokn.t (exit status: 0)
Executing ./tdemoca
## Set up demoCA
## Generating CA cert if needed
 openssl req -batch -noenc -x509 -new -key ${PRIURI} -out ${DEMOCA}/cacert.pem
## Generating a new CSR
 openssl 
req -batch -noenc -newkey rsa:2048
    -subj "/CN=testing-csr-signing/O=PKCS11 Provider/C=US"
    -keyout ${DEMOCA}/cert.key -out ${DEMOCA}/cert.csr
.....+........+...+++++++++++++++++++++++++++++++++++++++*.+.........+++++++++++++++++++++++++++++++++++++++*.....++++++
...........+...+....+++++++++++++++++++++++++++++++++++++++*....+...+....+......+........+.........+.+..+....+........+..........+........+...+.........+++++++++++++++++++++++++++++++++++++++*.+...+..+....+.........+......+..+.......+..+....+.........+...+.....+...+.......+..+.......+...........+....+...........+...+....+........+...+......+......+....+...+......+..+....+........+...+.........+.+...+...........+.+...+.........+...........+.......+..............+.+.....+..................+.+........+.+...........+.........+......+...+...+.......+...+.....+....+.....+.+........+............+.......+........+...+....+...+..+.......+..............+......+...+.+..+.......+........+....+...+..+.........+.......+..+..........+.....+......+.........+......+....+.....+.............+...+.....+.+.....+...............+.............+..+.+...+......+.....+.............+........+...+.+...+.....+.+.....+......+......+...+....+...+..+...........................+....+......+...........+.......+...+........+.........+......+..........+..+...............+.........+.+........+...................+..+.........+...............+.......+...+.....+.......+..+..........+..+.+.....+...+.+.........+.....+......+.+.........+...+..+...+.+..+...+.+......+..+...+....+........+.+......+........+.......+...+...........+......+.............+...+.....+....+........+......+.+...........+.............+...........+.+..+.+......+......+..+......+......+...............+.+...+.........+.....+......+.........+.+......+...+..+................+.........+......+..+...+...+.+...+..+....+.........+......+..............+.+............++++++
-----
## Signing the new certificate
 openssl 
ca -batch -in ${DEMOCA}/cert.csr -keyfile ${PRIURI} -out ${DEMOCA}/cert.pem
Using configuration from /builddir/build/BUILD/pkcs11-provider-0.2/tests/tmp.softhsm/openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName            :ASN.1 12:'testing-csr-signing'
organizationName      :ASN.1 12:'PKCS11 Provider'
countryName           :PRINTABLE:'US'
Certificate is to be certified until Nov 25 11:28:36 2024 GMT (365 days)
2074CBBDFFFFFF00:error:40800054:pkcs11:p11prov_GetOperationState:reason(84):interface.gen.c:279:Error returned by C_GetOperationState
Write out database with 1 new entries
Database updated
## Set up OCSP
 openssl 
req -batch -noenc -new -subj "/CN=OCSP/O=PKCS11 Provider/C=US"
    -key ${PRIURI} -out ${DEMOCA}/ocspSigning.csr
 openssl 
ca -batch -keyfile ${PRIURI} -cert ${DEMOCA}/cacert.pem
   -in ${DEMOCA}/ocspSigning.csr -out ${DEMOCA}/ocspSigning.pem
Using configuration from /builddir/build/BUILD/pkcs11-provider-0.2/tests/tmp.softhsm/openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName            :ASN.1 12:'OCSP'
organizationName      :ASN.1 12:'PKCS11 Provider'
countryName           :PRINTABLE:'US'
Certificate is to be certified until Nov 25 11:28:38 2024 GMT (365 days)
209408B6FFFFFF00:error:40800054:pkcs11:p11prov_GetOperationState:reason(84):interface.gen.c:279:Error returned by C_GetOperationState
Write out database with 1 new entries
Database updated
## Run OCSP
ACCEPT 0.0.0.0:12345 PID=257024
 openssl 
ocsp -CAfile ${DEMOCA}/cacert.pem -issuer ${DEMOCA}/cacert.pem
     -cert ${DEMOCA}/cert.pem -resp_text -noverify
     -url http://127.0.0.1:${PORT}
ocsp: waiting for OCSP client connections...
ocsp: Received request, 1st line: POST / HTTP/1.0
OCSP Request Data:
    Version: 1 (0x0)
    Requestor List:
        Certificate ID:
          Hash Algorithm: sha1
          Issuer Name Hash: 810C6D581B88B8245F66B67E49B738D99BD5F7BB
          Issuer Key Hash: 229BB1DDB1BC5724890A147950196165A3303779
          Serial Number: 01
    Request Extensions:
        OCSP Nonce: 
            04108C9097031958568954EA99B3297F5A90
OCSP Response Data:
    OCSP Response Status: successful (0x0)
    Response Type: Basic OCSP Response
    Version: 1 (0x0)
    Responder Id: C = US, O = PKCS11 Provider, CN = OCSP
    Produced At: Nov 26 11:28:39 2023 GMT
    Responses:
    Certificate ID:
      Hash Algorithm: sha1
      Issuer Name Hash: 810C6D581B88B8245F66B67E49B738D99BD5F7BB
      Issuer Key Hash: 229BB1DDB1BC5724890A147950196165A3303779
      Serial Number: 01
    Cert Status: good
    This Update: Nov 26 11:28:39 2023 GMT
    Response Extensions:
        OCSP Nonce: 
            04108C9097031958568954EA99B3297F5A90
    Signature Algorithm: sha1WithRSAEncryption
    Signature Value:
        61:ea:66:40:d9:18:a2:5e:17:90:9f:c5:a1:97:56:c5:2b:2f:
        4f:0d:21:d4:8c:f5:86:02:fa:80:e8:0d:5a:88:6b:fe:ac:1b:
        af:b3:6e:33:64:a5:66:34:72:26:13:b8:04:47:08:1f:83:de:
        c7:5e:a5:51:fa:6d:61:27:f3:ac:f6:b2:31:78:75:65:46:2e:
        90:47:0c:1a:48:27:36:63:3c:f4:a5:9e:e0:d0:ca:bd:8b:7d:
        89:9a:8a:a4:87:e3:f9:20:42:4f:2d:28:f0:02:1d:37:9b:d7:
        b0:48:2a:4a:d7:bf:21:97:c2:96:cc:ad:01:49:28:98:03:71:
        66:85:97:74:09:ff:df:36:5e:00:f8:6c:6d:c0:f5:62:b3:c9:
        99:20:f1:54:c7:99:24:f4:de:57:b3:36:58:b4:23:86:78:24:
        0c:1a:c6:14:21:0d:92:89:67:5a:82:68:55:6b:62:42:ef:24:
        b2:1a:04:0f:95:b3:3d:e9:e6:af:69:e4:50:90:a0:93:92:7c:
        2b:1e:49:bd:b7:df:e9:04:86:ac:84:b3:85:f9:85:1a:30:ba:
        5b:77:5a:6f:d8:7c:2a:1e:49:58:92:b8:78:b5:c2:10:aa:aa:
        f7:48:8f:e6:57:c9:b3:3e:44:ad:9f:13:67:7a:90:1a:ec:d4:
        d8:c1:92:12
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 2 (0x2)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, ST=New York, L=New York, O=PKCS11 Provider, OU=Testing Harness
        Validity
            Not Before: Nov 26 11:28:38 2023 GMT
            Not After : Nov 25 11:28:38 2024 GMT
        Subject: C=US, O=PKCS11 Provider, CN=OCSP
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:9d:98:f8:45:34:39:d1:8c:9e:c4:9c:31:28:40:
                    70:e4:c0:24:0f:63:60:ca:8e:73:34:5f:89:83:96:
                    be:b9:59:fa:ab:0c:8b:df:36:49:67:fd:20:8d:17:
                    63:13:78:58:e7:4c:c6:16:4d:c8:f9:9d:0c:cd:6f:
                    df:60:01:43:02:42:ae:f4:34:78:50:99:d4:8e:1f:
                    f4:dd:50:9e:6b:2e:f6:65:df:42:2c:57:3b:89:43:
                    39:3e:00:de:c3:f0:a9:e0:58:32:61:0d:66:4e:a6:
                    56:fc:ed:7b:a1:5b:61:8f:b4:ee:99:57:95:91:35:
                    af:8c:20:ea:43:f6:04:44:44:07:9c:14:f8:cf:fb:
                    72:4e:ce:de:1d:e6:d7:c0:92:c0:ed:d1:0f:9a:2e:
                    dc:c8:c7:9c:a4:b2:7a:52:3f:5e:5a:e1:2b:8b:8a:
                    f8:1e:12:a9:0a:5b:c0:6b:aa:3f:bd:0e:2d:f8:5b:
                    7a:2a:ef:ee:e3:b0:8a:aa:a1:0a:7d:ee:26:59:29:
                    02:ae:8b:d9:ae:65:70:18:c8:f7:a8:fb:e1:60:84:
                    ae:de:bf:d0:72:d8:19:50:4e:b4:94:27:67:ad:00:
                    f6:6a:22:e9:bd:76:3f:01:bd:8d:27:bc:e8:49:50:
                    1e:c9:e2:fc:c0:bd:5a:e2:47:9a:43:2d:df:c6:ae:
                    0b:0f
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            X509v3 Key Usage: 
                Digital Signature, Non Repudiation, Key Encipherment
            X509v3 Subject Key Identifier: 
                22:9B:B1:DD:B1:BC:57:24:89:0A:14:79:50:19:61:65:A3:30:37:79
            X509v3 Authority Key Identifier: 
                22:9B:B1:DD:B1:BC:57:24:89:0A:14:79:50:19:61:65:A3:30:37:79
    S
## Kill any remaining children and wait for them
./tdemoca: line 76: 257024 Killed                  $CHECKER openssl ocsp -index "${DEMOCA}/index.txt" -rsigner "${DEMOCA}/ocspSigning.pem" -rkey "${PRIURI}" -CA "${DEMOCA}/cacert.pem" -rmd sha1 -port "${PORT}" -text
PASS democa-softhsm.t (exit status: 0)
Executing ./tdemoca
## Set up demoCA
## Generating CA cert if needed
 openssl req -batch -noenc -x509 -new -key ${PRIURI} -out ${DEMOCA}/cacert.pem
## Generating a new CSR
 openssl 
req -batch -noenc -newkey rsa:2048
    -subj "/CN=testing-csr-signing/O=PKCS11 Provider/C=US"
    -keyout ${DEMOCA}/cert.key -out ${DEMOCA}/cert.csr
..+..+...............+....+.....+.........+.+...+...............+..+...............+++++++++++++++++++++++++++++++++++++++*..+.+..+++++++++++++++++++++++++++++++++++++++*...+....+.....+.+.....+....+..+...............+....+...........+......+....+...+.................+.+..+...+............+......+....+...+..++++++
....+.+++++++++++++++++++++++++++++++++++++++*......+.+............+...+++++++++++++++++++++++++++++++++++++++*......+.+......+...+............+.........+.....+....+.....+.+.....................+...+..+.+..+...+...+.+......+.................+...+....+.........+............+..+...+..........+..+.......+........+...+....+..................+.................+...+...............+.++++++
-----
## Signing the new certificate
 openssl 
ca -batch -in ${DEMOCA}/cert.csr -keyfile ${PRIURI} -out ${DEMOCA}/cert.pem
Using configuration from /builddir/build/BUILD/pkcs11-provider-0.2/tests/tmp.softokn/openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName            :ASN.1 12:'testing-csr-signing'
organizationName      :ASN.1 12:'PKCS11 Provider'
countryName           :PRINTABLE:'US'
Certificate is to be certified until Nov 25 11:28:15 2024 GMT (365 days)
2074098CFFFFFF00:error:40800091:pkcs11:p11prov_GetOperationState:There is no active operation of appropriate type in the specified session:interface.gen.c:279:Error returned by C_GetOperationState
Write out database with 1 new entries
Database updated
## Set up OCSP
 openssl 
req -batch -noenc -new -subj "/CN=OCSP/O=PKCS11 Provider/C=US"
    -key ${PRIURI} -out ${DEMOCA}/ocspSigning.csr
 openssl 
ca -batch -keyfile ${PRIURI} -cert ${DEMOCA}/cacert.pem
   -in ${DEMOCA}/ocspSigning.csr -out ${DEMOCA}/ocspSigning.pem
Using configuration from /builddir/build/BUILD/pkcs11-provider-0.2/tests/tmp.softokn/openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName            :ASN.1 12:'OCSP'
organizationName      :ASN.1 12:'PKCS11 Provider'
countryName           :PRINTABLE:'US'
Certificate is to be certified until Nov 25 11:28:21 2024 GMT (365 days)
20048C92FFFFFF00:error:40800091:pkcs11:p11prov_GetOperationState:There is no active operation of appropriate type in the specified session:interface.gen.c:279:Error returned by C_GetOperationState
Write out database with 1 new entries
Database updated
## Run OCSP
ACCEPT 0.0.0.0:12345 PID=256894
 openssl 
ocsp -CAfile ${DEMOCA}/cacert.pem -issuer ${DEMOCA}/cacert.pem
     -cert ${DEMOCA}/cert.pem -resp_text -noverify
     -url http://127.0.0.1:${PORT}
ocsp: waiting for OCSP client connections...
ocsp: Received request, 1st line: POST / HTTP/1.0
OCSP Request Data:
    Version: 1 (0x0)
    Requestor List:
        Certificate ID:
          Hash Algorithm: sha1
          Issuer Name Hash: 810C6D581B88B8245F66B67E49B738D99BD5F7BB
          Issuer Key Hash: EA4E631405BC9B8F934CE4D5CA807A1C1942C9BD
          Serial Number: 01
    Request Extensions:
        OCSP Nonce: 
            0410F2C5F0B51BE3681374F5DDC61DED00C5
OCSP Response Data:
    OCSP Response Status: successful (0x0)
    Response Type: Basic OCSP Response
    Version: 1 (0x0)
    Responder Id: C = US, O = PKCS11 Provider, CN = OCSP
    Produced At: Nov 26 11:28:24 2023 GMT
    Responses:
    Certificate ID:
      Hash Algorithm: sha1
      Issuer Name Hash: 810C6D581B88B8245F66B67E49B738D99BD5F7BB
      Issuer Key Hash: EA4E631405BC9B8F934CE4D5CA807A1C1942C9BD
      Serial Number: 01
    Cert Status: good
    This Update: Nov 26 11:28:24 2023 GMT
    Response Extensions:
        OCSP Nonce: 
            0410F2C5F0B51BE3681374F5DDC61DED00C5
    Signature Algorithm: sha1WithRSAEncryption
    Signature Value:
        35:0b:8a:8e:84:d2:98:e2:c1:90:0c:c3:7f:28:d1:15:d1:ba:
        50:ce:da:e6:eb:54:a3:4b:08:82:ad:10:13:cd:fc:8d:59:d3:
        86:2c:cf:e8:3c:cc:8f:06:f6:ff:5d:4c:f2:bf:60:89:79:8d:
        76:2b:75:89:82:5e:b3:cc:70:ed:ea:d3:7a:f4:07:23:fc:bf:
        13:a3:32:6c:8b:b9:f6:d2:f1:9e:ea:ce:a6:df:91:ce:7a:00:
        35:5b:ee:91:f5:95:2d:f5:f2:0d:37:5b:11:26:47:d2:7d:05:
        0e:c8:d0:69:5c:ad:5b:4c:e1:bb:ec:47:2d:be:9e:0f:00:3d:
        b4:2c:bf:1a:0b:99:da:2c:76:54:cc:b6:35:08:75:4b:af:e9:
        63:2b:61:c1:68:eb:7c:aa:99:60:44:62:93:a6:b5:ef:6f:b2:
        ed:94:29:12:0f:e4:1b:4b:9d:86:2a:3f:fb:bd:84:0c:1f:d0:
        88:62:74:2a:70:d4:1a:5c:97:1f:21:04:e5:c6:e0:0e:a3:34:
        28:12:c4:e5:d5:d7:3a:81:e0:1d:ca:62:36:1d:9d:1a:e0:1e:
        29:27:ee:31:8b:2e:57:c0:3c:ed:fe:90:47:aa:f5:48:a3:cc:
        ab:bf:6b:a7:a1:a9:70:dc:43:3a:de:60:e4:38:f6:b0:71:5e:
        55:4e:26:5a
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 2 (0x2)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, ST=New York, L=New York, O=PKCS11 Provider, OU=Testing Harness
        Validity
            Not Before: Nov 26 11:28:21 2023 GMT
            Not After : Nov 25 11:28:21 2024 GMT
        Subject: C=US, O=PKCS11 Provider, CN=OCSP
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:ad:18:ab:80:9a:ad:26:aa:51:c5:28:fe:b3:97:
                    b6:c9:a8:98:37:4f:82:ac:b3:08:b4:71:70:8a:66:
                    19:27:30:10:78:f2:5d:91:f9:dc:7c:d2:93:c0:24:
                    d6:46:60:c7:0f:16:35:0c:10:a9:6f:70:dc:eb:0f:
                    4e:30:0a:c6:6d:3f:e0:92:4b:87:49:fd:93:08:9b:
                    f8:0e:a7:be:a4:b3:b5:58:dc:af:d5:f4:eb:4e:37:
                    21:2e:4d:17:b4:33:06:7b:c7:d1:60:f3:2b:bd:c7:
                    75:86:a6:60:5f:f4:42:6d:f5:50:8a:73:8b:5e:66:
                    c0:10:2b:80:60:c3:29:2d:b0:7e:0c:4f:87:52:08:
                    d4:d6:b6:7a:44:7f:37:a5:e6:f9:93:6d:e9:ad:21:
                    cd:f5:a2:b1:03:f3:b0:08:35:aa:56:6a:71:1c:7d:
                    ca:e9:bb:3a:e4:42:0b:33:3a:21:55:6d:31:90:46:
                    a4:56:bc:0f:84:ce:58:64:d0:cb:9a:a8:8b:f3:42:
                    28:e4:bc:39:46:d2:7e:ec:c5:91:d3:dc:cf:c5:2c:
                    05:14:d1:89:25:9c:13:a7:e8:e4:31:f5:0b:bc:b1:
                    4c:23:b1:8f:ef:aa:41:ba:a9:06:e1:42:b2:29:dc:
                    f9:9e:89:de:86:d9:d8:1e:21:72:4f:ec:35:57:ac:
                    ef:57
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            X509v3 Key Usage: 
                Digital Signature, Non Repudiation, Key Encipherment
            X509v3 Subject Key Identifier: 
                EA:4E:63:14:05:BC:9B:8F:93:4C:E4:D5:CA:80:7A:1C:19:42:C9:BD
            X509v3 Authority Key Identifier: 
                EA:4E:63:14:05:BC:9B:8F:93:4C:E4:D5:CA:80:7A:1C:19:42:C9:BD
    S
## Kill any remaining children and wait for them
/builddir/build/BUILD/pkcs11-provider-0.2/tests/helpers.sh: line 66: 256894 Killed                  $CHECKER openssl ocsp -index "${DEMOCA}/index.txt" -rsigner "${DEMOCA}/ocspSigning.pem" -rkey "${PRIURI}" -CA "${DEMOCA}/cacert.pem" -rmd sha1 -port "${PORT}" -text
PASS democa-softokn.t (exit status: 0)
Executing ./tdigest
## Test Digests support
sha512-224: Unsupported by pkcs11 token
sha512-256: Unsupported by pkcs11 token
sha3-224: Unsupported by pkcs11 token
sha3-256: Unsupported by pkcs11 token
sha3-384: Unsupported by pkcs11 token
sha3-512: Unsupported by pkcs11 token
PASS digest-softhsm.t (exit status: 0)
Executing ./tdigest
## Test Digests support
sha512-224: Unsupported by pkcs11 token
sha512-256: Unsupported by pkcs11 token
PASS digest-softokn.t (exit status: 0)
Executing ./tecc
## Export EC Public key to a file
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ecout.pub
Print EC Public key from private
 openssl pkey -in $ECPRIURI -pubout -text
## Sign and Verify with provided Hash and EC
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-ecsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-ecsig.bin
Signature Verified Successfully
 openssl 
pkeyutl -verify -inkey "${TMPPDIR}/ecout.pub" -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-ecsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA-256)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA-384)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha384
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha384-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha384
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha384-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA-512)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha512
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha512-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha512
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha512-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA3-256)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha3-256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha3-256-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha3-256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha3-256-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA3-384)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha3-384
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha3-384-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha3-384
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha3-384-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA3-512)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha3-512
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha3-512-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha3-512
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha3-512-ecdgstsig.bin
Signature Verified Successfully
## Test CSR generation from private ECC keys
 openssl 
req -new -batch -key "${ECPRIURI}" -out ${TMPPDIR}/ecdsa_csr.pem
 openssl 
req -in ${TMPPDIR}/ecdsa_csr.pem -verify -noout
Certificate request self-signature verify OK
PASS ecc-softhsm.t (exit status: 0)
Executing ./tecc
## Export EC Public key to a file
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ecout.pub
Print EC Public key from private
 openssl pkey -in $ECPRIURI -pubout -text
## Sign and Verify with provided Hash and EC
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-ecsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-ecsig.bin
Signature Verified Successfully
 openssl 
pkeyutl -verify -inkey "${TMPPDIR}/ecout.pub" -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-ecsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA-256)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA-384)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha384
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha384-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha384
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha384-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA-512)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha512
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha512-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha512
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha512-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA3-256)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha3-256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha3-256-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha3-256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha3-256-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA3-384)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha3-384
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha3-384-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha3-384
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha3-384-ecdgstsig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with ECC (SHA3-512)
 openssl 
pkeyutl -sign -inkey "${ECBASEURI}"
              -digest sha3-512
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha3-512-ecdgstsig.bin
 openssl 
pkeyutl -verify -inkey "${ECBASEURI}" -pubin
                -digest sha3-512
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha3-512-ecdgstsig.bin
Signature Verified Successfully
## Test CSR generation from private ECC keys
 openssl 
req -new -batch -key "${ECPRIURI}" -out ${TMPPDIR}/ecdsa_csr.pem
 openssl 
req -in ${TMPPDIR}/ecdsa_csr.pem -verify -noout
Certificate request self-signature verify OK
PASS ecc-softokn.t (exit status: 0)
Executing ./tecdh
## ECDH Exchange
 openssl 
pkeyutl -derive -inkey ${ECBASEURI}
                -peerkey ${ECPEERPUBURI}
                -out ${TMPPDIR}/secret.ecdh.bin
PASS ecdh-softokn.t (exit status: 0)
Executing ./tedwards
## Export ED25519 Public key to a file
 openssl pkey -in $EDPUBURI -pubin -pubout -out ${TMPPDIR}/edout.pub
Print ED25519 Public key from private
 openssl pkey -in $EDPRIURI -pubout -text
## DigestSign and DigestVerify with ED25519
 openssl 
pkeyutl -sign -inkey "${EDBASEURI}"
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-eddgstsig.bin
 openssl 
pkeyutl -verify -inkey "${EDBASEURI}" -pubin
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-eddgstsig.bin
Signature Verified Successfully
## Test CSR generation from private ED25519 keys
 openssl 
req -new -batch -key "${EDPRIURI}" -out ${TMPPDIR}/ed25519_csr.pem
 openssl 
req -in ${TMPPDIR}/ed25519_csr.pem -verify -noout
Certificate request self-signature verify OK
PASS edwards-softhsm.t (exit status: 0)
Executing  ./tfork
Child Done
Child Done
ALL A-OK!
PASS fork-softhsm.t (exit status: 0)
Executing  ./tfork
Child Done
Child Done
ALL A-OK!
PASS fork-softokn.t (exit status: 0)
Executing  ./tgenkey
ALL A-OK!PASS genkey-softhsm.t (exit status: 0)
Executing  ./tgenkey
ALL A-OK!PASS genkey-softokn.t (exit status: 0)
Executing ./thkdf
## HKDF Derivation
 openssl 
pkeyutl -derive -kdf HKDF -kdflen 48
                -pkeyopt md:SHA256
                -pkeyopt mode:EXTRACT_AND_EXPAND
                -pkeyopt hexkey:${HKDF_HEX_SECRET}
                -pkeyopt hexsalt:${HKDF_HEX_SALT}
                -pkeyopt hexinfo:${HKDF_HEX_INFO}
                -out ${TMPPDIR}/hkdf1-out-pkcs11.bin
                -propquery provider=pkcs11
 openssl 
pkeyutl -derive -kdf HKDF -kdflen 48
                -pkeyopt md:SHA256
                -pkeyopt mode:EXTRACT_AND_EXPAND
                -pkeyopt hexkey:${HKDF_HEX_SECRET}
                -pkeyopt hexsalt:${HKDF_HEX_SALT}
                -pkeyopt hexinfo:${HKDF_HEX_INFO}
                -out ${TMPPDIR}/hkdf1-out.bin
 openssl 
pkeyutl -derive -kdf HKDF -kdflen 48
                -pkeyopt md:SHA256
                -pkeyopt mode:EXTRACT_AND_EXPAND
                -pkeyopt hexkey:${HKDF_HEX_SECRET}
                -pkeyopt salt:"${HKDF_SALT}"
                -pkeyopt info:"${HKDF_INFO}"
                -out ${TMPPDIR}/hkdf2-out-pkcs11.bin
                -propquery provider=pkcs11
 openssl 
pkeyutl -derive -kdf HKDF -kdflen 48
                -pkeyopt md:SHA256
                -pkeyopt mode:EXTRACT_AND_EXPAND
                -pkeyopt hexkey:${HKDF_HEX_SECRET}
                -pkeyopt salt:"${HKDF_SALT}"
                -pkeyopt info:"${HKDF_INFO}"
                -out ${TMPPDIR}/hkdf2-out.bin
PASS hkdf-softokn.t (exit status: 0)
Executing ./toaepsha2
## Encrypt and decrypt with RSA OAEP
 openssl 
pkeyutl -encrypt -inkey "${BASEURI}"
                 -pubin
                 -pkeyopt pad-mode:oaep
                 -pkeyopt digest:sha256
                 -pkeyopt mgf1-digest:sha256
                 -in ${SECRETFILE}
                 -out ${SECRETFILE}.enc
 openssl 
pkeyutl -decrypt -inkey "${PRIURI}"
                 -pkeyopt pad-mode:oaep
                 -pkeyopt digest:sha256
                 -pkeyopt mgf1-digest:sha256
                 -in ${SECRETFILE}.enc
                 -out ${SECRETFILE}.dec
PASS oaepsha2-softokn.t (exit status: 0)
Executing ./tpubkey
## Export RSA Public key to a file
 openssl pkey -in $BASEURI -pubin -pubout -out ${TMPPDIR}/baseout.pub
Export Public key to a file (pub-uri)
 openssl pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/pubout.pub
Print Public key from private
 openssl pkey -in $PRIURI -pubout -text
## Export Public check error
 openssl pkey -in pkcs11:id=%de%ad -pubin
           -pubout -out ${TMPPDIR}/pubout-invlid.pub
Could not read key of Public Key from pkcs11:id=%de%ad
## Export EC Public key to a file
 openssl pkey -in $ECBASEURI -pubin -pubout -out ${TMPPDIR}/baseecout.pub
Export EC Public key to a file (pub-uri)
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/pubecout.pub
Print EC Public key from private
 openssl pkey -in $ECPRIURI -pubout -text
## Check we can get RSA public keys from certificate objects
Export Public key to a file (priv-uri)
 openssl pkey -in $PRI2URI -pubout -out ${TMPPDIR}/priv-cert.pub
Export Public key to a file (base-uri)
 openssl pkey -in $BASE2URI -pubout -out ${TMPPDIR}/base-cert.pub
Export Public EC key to a file (priv-uri)
 openssl pkey -in $ECPRI2URI -pubout -out ${TMPPDIR}/ec-priv-cert.pub
Export Public key to a file (base-uri)
 openssl pkey -in $ECBASE2URI -pubout -out ${TMPPDIR}/ec-base-cert.pub
PASS pubkey-softhsm.t (exit status: 0)
Executing ./tpubkey
## Export RSA Public key to a file
 openssl pkey -in $BASEURI -pubin -pubout -out ${TMPPDIR}/baseout.pub
Export Public key to a file (pub-uri)
 openssl pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/pubout.pub
Print Public key from private
 openssl pkey -in $PRIURI -pubout -text
## Export Public check error
 openssl pkey -in pkcs11:id=%de%ad -pubin
           -pubout -out ${TMPPDIR}/pubout-invlid.pub
Could not read key of Public Key from pkcs11:id=%de%ad
## Export EC Public key to a file
 openssl pkey -in $ECBASEURI -pubin -pubout -out ${TMPPDIR}/baseecout.pub
Export EC Public key to a file (pub-uri)
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/pubecout.pub
Print EC Public key from private
 openssl pkey -in $ECPRIURI -pubout -text
PASS pubkey-softokn.t (exit status: 0)
Executing ./trand
## Test PKCS11 RNG
 openssl rand 1
20D45B99FFFFFF00:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:341:Global default library context, Algorithm (PKCS11-RAND : 0), Properties (<null>)
20D45B99FFFFFF00:error:12000090:random number generator:rand_new_drbg:unable to fetch drbg:crypto/rand/rand_lib.c:647:
 openssl rand 1
�
PASS rand-softhsm.t (exit status: 0)
Executing ./trand
## Test PKCS11 RNG
 openssl rand 1
20D4D886FFFFFF00:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:341:Global default library context, Algorithm (PKCS11-RAND : 0), Properties (<null>)
20D4D886FFFFFF00:error:12000090:random number generator:rand_new_drbg:unable to fetch drbg:crypto/rand/rand_lib.c:647:
 openssl rand 1
k
PASS rand-softokn.t (exit status: 0)
Executing  ./treadkeys
PASS readkeys-softhsm.t (exit status: 0)
Executing  ./treadkeys
PASS readkeys-softokn.t (exit status: 0)
Executing ./trsapss
## DigestSign and DigestVerify with RSA PSS
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -digest sha256
              -pkeyopt pad-mode:pss
              -pkeyopt mgf1-digest:sha256
              -pkeyopt saltlen:digest
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-dgstsig.bin
 openssl 
pkeyutl -verify -inkey "${BASEURI}" -pubin
                -digest sha256
                -pkeyopt pad-mode:pss
                -pkeyopt mgf1-digest:sha256
                -pkeyopt saltlen:digest
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
Re-verify using OpenSSL default provider
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -digest sha256
                -pkeyopt pad-mode:pss
                -pkeyopt mgf1-digest:sha256
                -pkeyopt saltlen:digest
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
PASS rsapss-softokn.t (exit status: 0)
Executing  ./tsession
ALL A-OK!PASS session-softhsm.t (exit status: 0)
Executing  ./tsession
ALL A-OK!PASS session-softokn.t (exit status: 0)
########################################
## Searching for SoftHSM PKCS#11 library
Using softhsm path /usr/lib64/pkcs11/libsofthsm2.so
########################################
## Set up testing system
Slot 0 has a free/uninitialized token.
The token has been initialized and is reassigned to slot 533815277
Creating new Self Sign CA
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; RSA 
  label:      caCert
  ID:         0000
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; RSA 2048 bits
  label:      caCert
  ID:         0000
  Usage:      encrypt, verify, wrap
  Access:     local
Generating a self signed certificate...
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 01
	Validity:
		Not Before: Sun Nov 26 11:25:30 UTC 2023
		Not After: Mon Nov 25 11:25:30 UTC 2024
	Subject: CN=Issuer
	Subject Public Key Algorithm: RSA
	Algorithm Security Level: Medium (2048 bits)
		Modulus (bits 2048):
			00:f1:f7:1d:90:c8:ce:13:9e:8f:c4:6d:b9:bd:4e:c4
			98:79:02:ee:e0:1a:83:03:5c:3a:da:80:19:70:69:2e
			9e:d9:fa:db:41:81:8f:90:3e:09:55:dd:cb:c9:5c:4c
			cd:89:d2:61:b8:0c:c4:61:db:8f:70:65:58:cf:26:67
			90:bb:dc:89:10:95:6e:7b:c4:30:ef:3f:52:53:52:5a
			ea:8e:d5:6a:14:3b:12:a1:b0:cb:6e:29:21:7c:c8:26
			c5:87:d9:50:24:77:ab:ad:39:f7:e3:46:6d:d0:62:0c
			b6:45:41:d7:62:ca:23:1f:35:c3:33:a4:08:f2:0c:22
			49:08:ac:5a:2a:1f:aa:e7:99:33:b5:ed:bf:f8:52:00
			d0:02:ce:03:18:1c:60:c1:cc:ba:ab:b3:f2:6b:45:0a
			c3:c6:9a:80:84:bb:2c:e9:87:b8:4f:f3:ca:69:bb:b0
			00:24:7b:93:9a:84:89:e3:17:30:de:4d:3d:39:7d:d5
			f0:06:57:76:da:3c:14:74:0a:f9:18:4a:64:d4:d8:fa
			14:9c:f5:ca:5c:f0:43:05:eb:a8:0e:f1:77:e2:c8:c5
			42:bf:01:ae:7d:3b:37:e8:1e:59:7b:a0:6b:5c:c4:7a
			53:44:2a:8f:27:ba:f3:f9:f2:d4:9a:65:c4:ce:7d:0e
			b5
		Exponent (bits 24):
			01:00:01
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): TRUE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
		Subject Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
		sha256:9e5a5ed877b48f9a40a6529c51adec4341ef6077f8f5d43c2c4c37aceb464cab
	Public Key PIN:
		pin-sha256:nlpe2He0j5pAplKcUa3sQ0HvYHf49dQ8LEw3rOtGTKs=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      caCert
  subject:    DN: CN=Issuer
  serial:     01
  ID:         0000
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; RSA 
  label:      testCert
  ID:         0001
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; RSA 2048 bits
  label:      testCert
  ID:         0001
  Usage:      encrypt, verify, wrap
  Access:     local
Generating a signed certificate...
Expiration time: Mon Nov 25 06:25:35 2024
CA expiration time: Mon Nov 25 06:25:30 2024
Warning: The time set exceeds the CA's expiration time
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 03
	Validity:
		Not Before: Sun Nov 26 11:25:35 UTC 2023
		Not After: Mon Nov 25 11:25:35 UTC 2024
	Subject: CN=My Test Cert,O=PKCS11 Provider
	Subject Public Key Algorithm: RSA
	Algorithm Security Level: Medium (2048 bits)
		Modulus (bits 2048):
			00:9d:98:f8:45:34:39:d1:8c:9e:c4:9c:31:28:40:70
			e4:c0:24:0f:63:60:ca:8e:73:34:5f:89:83:96:be:b9
			59:fa:ab:0c:8b:df:36:49:67:fd:20:8d:17:63:13:78
			58:e7:4c:c6:16:4d:c8:f9:9d:0c:cd:6f:df:60:01:43
			02:42:ae:f4:34:78:50:99:d4:8e:1f:f4:dd:50:9e:6b
			2e:f6:65:df:42:2c:57:3b:89:43:39:3e:00:de:c3:f0
			a9:e0:58:32:61:0d:66:4e:a6:56:fc:ed:7b:a1:5b:61
			8f:b4:ee:99:57:95:91:35:af:8c:20:ea:43:f6:04:44
			44:07:9c:14:f8:cf:fb:72:4e:ce:de:1d:e6:d7:c0:92
			c0:ed:d1:0f:9a:2e:dc:c8:c7:9c:a4:b2:7a:52:3f:5e
			5a:e1:2b:8b:8a:f8:1e:12:a9:0a:5b:c0:6b:aa:3f:bd
			0e:2d:f8:5b:7a:2a:ef:ee:e3:b0:8a:aa:a1:0a:7d:ee
			26:59:29:02:ae:8b:d9:ae:65:70:18:c8:f7:a8:fb:e1
			60:84:ae:de:bf:d0:72:d8:19:50:4e:b4:94:27:67:ad
			00:f6:6a:22:e9:bd:76:3f:01:bd:8d:27:bc:e8:49:50
			1e:c9:e2:fc:c0:bd:5a:e2:47:9a:43:2d:df:c6:ae:0b
			0f
		Exponent (bits 24):
			01:00:01
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): FALSE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
			Key encipherment.
		Subject Key Identifier (not critical):
			7bdf6b8296bfeb5ae7f453267361b3ac93761e54
		Authority Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:7bdf6b8296bfeb5ae7f453267361b3ac93761e54
		sha256:865a1b5297f23b14deff39b6326742fcb7caf96fea9b3f56e8ebfd37920e9433
	Public Key PIN:
		pin-sha256:hlobUpfyOxTe/zm2MmdC/LfK+W/qmz9W6Ov9N5IOlDM=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      testCert
  subject:    DN: O=PKCS11 Provider, CN=My Test Cert
  serial:     03
  ID:         0001
RSA PKCS11 URIS
pkcs11:id=%00%01;pin-value=12345678
pkcs11:id=%00%01
pkcs11:type=public;id=%00%01
pkcs11:type=private;id=%00%01
pkcs11:type=cert;object=testCert
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; EC
  label:      ecCert
  ID:         0002
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; EC  EC_POINT 256 bits
  EC_POINT:   044104a125ea6bcdf85b25cd1e268618164bf18ff710d30722826c3fd6d2699778e85e9c69f5ac44fd7d99ed083e3bb788762361e8014290b0e7afb6a8f2c8a21858e4
  EC_PARAMS:  06082a8648ce3d030107
  label:      ecCert
  ID:         0002
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Generating a signed certificate...
Expiration time: Mon Nov 25 06:25:38 2024
CA expiration time: Mon Nov 25 06:25:30 2024
Warning: The time set exceeds the CA's expiration time
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 04
	Validity:
		Not Before: Sun Nov 26 11:25:38 UTC 2023
		Not After: Mon Nov 25 11:25:38 UTC 2024
	Subject: CN=My EC Cert,O=PKCS11 Provider
	Subject Public Key Algorithm: EC/ECDSA
	Algorithm Security Level: High (256 bits)
		Curve:	SECP256R1
		X:
			00:a1:25:ea:6b:cd:f8:5b:25:cd:1e:26:86:18:16:4b
			f1:8f:f7:10:d3:07:22:82:6c:3f:d6:d2:69:97:78:e8
			5e
		Y:
			00:9c:69:f5:ac:44:fd:7d:99:ed:08:3e:3b:b7:88:76
			23:61:e8:01:42:90:b0:e7:af:b6:a8:f2:c8:a2:18:58
			e4
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): FALSE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
		Subject Key Identifier (not critical):
			551f3d237e8e32116ee4939929d543a34e6ea7ef
		Authority Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:551f3d237e8e32116ee4939929d543a34e6ea7ef
		sha256:bcab06818583c5383bcdce53633030796bb7794ae6da070e19346a1e8fc57864
	Public Key PIN:
		pin-sha256:vKsGgYWDxTg7zc5TYzAweWu3eUrm2gcOGTRqHo/FeGQ=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      ecCert
  subject:    DN: O=PKCS11 Provider, CN=My EC Cert
  serial:     04
  ID:         0002
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; EC
  label:      ecPeerCert
  ID:         0003
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; EC  EC_POINT 256 bits
  EC_POINT:   044104c0d0bc6d05e6c5337a78e4a1dc044b90dd7917b01d38e19082bbba65a849d4483536031a39d925028de1ac6614e16d0a4081e085b77fd9b02b3fbb3820a4f6e2
  EC_PARAMS:  06082a8648ce3d030107
  label:      ecPeerCert
  ID:         0003
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Generating a signed certificate...
Expiration time: Mon Nov 25 06:25:41 2024
CA expiration time: Mon Nov 25 06:25:30 2024
Warning: The time set exceeds the CA's expiration time
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 05
	Validity:
		Not Before: Sun Nov 26 11:25:41 UTC 2023
		Not After: Mon Nov 25 11:25:41 UTC 2024
	Subject: CN=My Peer EC Cert,O=PKCS11 Provider
	Subject Public Key Algorithm: EC/ECDSA
	Algorithm Security Level: High (256 bits)
		Curve:	SECP256R1
		X:
			00:c0:d0:bc:6d:05:e6:c5:33:7a:78:e4:a1:dc:04:4b
			90:dd:79:17:b0:1d:38:e1:90:82:bb:ba:65:a8:49:d4
			48
		Y:
			35:36:03:1a:39:d9:25:02:8d:e1:ac:66:14:e1:6d:0a
			40:81:e0:85:b7:7f:d9:b0:2b:3f:bb:38:20:a4:f6:e2
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): FALSE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
		Subject Key Identifier (not critical):
			b1b7bbbff8a316bd6f4eedc3f3be8ffbb565c8e1
		Authority Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:b1b7bbbff8a316bd6f4eedc3f3be8ffbb565c8e1
		sha256:7d3fb4f95a0f3bc4c5725ff0689ceea547f6cf1c159c0e54677db0caaf4725c9
	Public Key PIN:
		pin-sha256:fT+0+VoPO8TFcl/waJzupUf2zxwVnA5UZ32wyq9HJck=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      ecPeerCert
  subject:    DN: O=PKCS11 Provider, CN=My Peer EC Cert
  serial:     05
  ID:         0003
EC PKCS11 URIS
pkcs11:id=%00%02;pin-value=12345678
pkcs11:id=%00%02
pkcs11:type=public;id=%00%02
pkcs11:type=private;id=%00%02
pkcs11:type=cert;object=ecCert
pkcs11:id=%00%03;pin-value=12345678
pkcs11:id=%00%03
pkcs11:type=public;id=%00%03
pkcs11:type=private;id=%00%03
pkcs11:type=cert;object=ecPeerCert
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; EC_EDWARDS
  label:      edCert
  ID:         0004
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; EC_EDWARDS  EC_POINT 255 bits
  EC_POINT:   0420b8c722eff90a0ec8c42de301b095ff2b379594649229ce5dcb1b861261d819d1
  EC_PARAMS:  130c656477617264733235353139 (OID 2.21.100.119.97.114.100.115.50.53.53.49.57)
  label:      edCert
  ID:         0004
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Generating a signed certificate...
Expiration time: Mon Nov 25 06:25:44 2024
CA expiration time: Mon Nov 25 06:25:30 2024
Warning: The time set exceeds the CA's expiration time
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 06
	Validity:
		Not Before: Sun Nov 26 11:25:44 UTC 2023
		Not After: Mon Nov 25 11:25:44 UTC 2024
	Subject: CN=My ED25519 Cert,O=PKCS11 Provider
	Subject Public Key Algorithm: EdDSA (Ed25519)
	Algorithm Security Level: High (256 bits)
		Curve:	Ed25519
		X:
			b8:c7:22:ef:f9:0a:0e:c8:c4:2d:e3:01:b0:95:ff:2b
			37:95:94:64:92:29:ce:5d:cb:1b:86:12:61:d8:19:d1
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): FALSE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
		Subject Key Identifier (not critical):
			3a6c5878ed4312f19373502ffad107163982aaad
		Authority Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:3a6c5878ed4312f19373502ffad107163982aaad
		sha256:e652bafd8e3b58c30b35a6362e1d73e203b299e3fd7da9c95fd5466525a33a74
	Public Key PIN:
		pin-sha256:5lK6/Y47WMMLNaY2Lh1z4gOymeP9fanJX9VGZSWjOnQ=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      edCert
  subject:    DN: O=PKCS11 Provider, CN=My ED25519 Cert
  serial:     06
  ID:         0004
ED25519 PKCS11 URIS
pkcs11:id=%00%04
pkcs11:type=public;id=%00%04
pkcs11:type=private;id=%00%04
pkcs11:type=cert;object=edCert
## generate RSA key pair, self-signed certificate, remove public key
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; RSA 
  label:      testCert2
  ID:         0005
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; RSA 2048 bits
  label:      testCert2
  ID:         0005
  Usage:      encrypt, verify, wrap
  Access:     local
Generating a signed certificate...
Expiration time: Mon Nov 25 06:25:47 2024
CA expiration time: Mon Nov 25 06:25:30 2024
Warning: The time set exceeds the CA's expiration time
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 07
	Validity:
		Not Before: Sun Nov 26 11:25:47 UTC 2023
		Not After: Mon Nov 25 11:25:47 UTC 2024
	Subject: CN=My Test Cert 2,O=PKCS11 Provider
	Subject Public Key Algorithm: RSA
	Algorithm Security Level: Medium (2048 bits)
		Modulus (bits 2048):
			00:db:17:81:3b:db:d1:9f:78:d2:f7:7c:28:a3:e0:76
			47:10:ef:64:c9:93:f7:4f:d6:4a:2f:2f:fb:fe:b9:ea
			18:a1:30:3f:d6:9a:28:9a:ee:f4:08:40:73:cb:c1:2f
			71:64:08:23:93:06:42:85:ee:16:f3:92:04:6d:50:49
			de:4a:25:b2:78:8f:b9:45:6d:96:51:00:d5:c8:9a:96
			45:94:4c:e0:9f:52:89:ec:68:00:d1:5d:78:db:6f:0d
			b4:10:22:be:12:ac:79:64:d6:f8:c8:48:8e:4e:d0:99
			35:60:06:d9:85:84:47:77:84:8c:25:83:06:68:11:f4
			e0:73:31:5e:a5:03:1e:7d:1e:9c:e6:cc:f3:5e:1c:3e
			15:c0:20:a0:4a:27:2e:74:99:14:c5:6f:c2:28:54:b3
			b9:93:3d:28:1a:a5:50:ab:ae:89:25:8d:6c:f3:53:7c
			0a:6e:f3:64:0b:69:23:0b:ae:ee:e3:cf:02:d2:c1:c1
			45:9a:c8:34:ab:66:fb:72:b0:b0:90:a1:6d:46:40:b8
			e5:13:7f:84:4d:b4:d6:53:2a:80:17:d9:86:3a:a2:62
			d6:18:b2:dc:9a:ac:05:10:19:c6:b8:2d:b6:3a:45:89
			5b:93:f4:ed:93:e2:4d:af:06:08:cf:0b:d4:fc:91:ca
			bb
		Exponent (bits 24):
			01:00:01
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): FALSE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
			Key encipherment.
		Subject Key Identifier (not critical):
			e4352680e2faff55cbee7c06052334674de54244
		Authority Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:e4352680e2faff55cbee7c06052334674de54244
		sha256:e844c0049bab708d40e95db02d2ee3372825c607849755ef2ad55064bea5c874
	Public Key PIN:
		pin-sha256:6ETABJurcI1A6V2wLS7jNyglxgeEl1XvKtVQZL6lyHQ=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      testCert2
  subject:    DN: O=PKCS11 Provider, CN=My Test Cert 2
  serial:     07
  ID:         0005
Using slot 0 with a present token (0x1fd15fed)
RSA2 PKCS11 URIS
pkcs11:id=%00%05;pin-value=12345678
pkcs11:id=%00%05
pkcs11:type=private;id=%00%05
pkcs11:type=cert;object=testCert2
## generate EC key pair, self-signed certificate, remove public key
Using slot 0 with a present token (0x1fd15fed)
Key pair generated:
Private Key Object; EC
  label:      ecCert2
  ID:         0006
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; EC  EC_POINT 384 bits
  EC_POINT:   046104471a786dc263ca8cd3519dd750eaf6da7ebcc6f92e15fb2cc7109645661a5de1557a5cf743b6da6485e8fa6d9ab08ff64b41d045286d99e181f8a4b001ecd23857e29cc7068de9fbe05d1fa247bab8080ebd19ab680883cd3f62dd5c08e1586d
  EC_PARAMS:  06052b81040022
  label:      ecCert2
  ID:         0006
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Generating a signed certificate...
Expiration time: Mon Nov 25 06:25:51 2024
CA expiration time: Mon Nov 25 06:25:30 2024
Warning: The time set exceeds the CA's expiration time
X.509 Certificate Information:
	Version: 3
	Serial Number (hex): 08
	Validity:
		Not Before: Sun Nov 26 11:25:51 UTC 2023
		Not After: Mon Nov 25 11:25:51 UTC 2024
	Subject: CN=My EC Cert 2,O=PKCS11 Provider
	Subject Public Key Algorithm: EC/ECDSA
	Algorithm Security Level: Ultra (384 bits)
		Curve:	SECP384R1
		X:
			47:1a:78:6d:c2:63:ca:8c:d3:51:9d:d7:50:ea:f6:da
			7e:bc:c6:f9:2e:15:fb:2c:c7:10:96:45:66:1a:5d:e1
			55:7a:5c:f7:43:b6:da:64:85:e8:fa:6d:9a:b0:8f:f6
		Y:
			4b:41:d0:45:28:6d:99:e1:81:f8:a4:b0:01:ec:d2:38
			57:e2:9c:c7:06:8d:e9:fb:e0:5d:1f:a2:47:ba:b8:08
			0e:bd:19:ab:68:08:83:cd:3f:62:dd:5c:08:e1:58:6d
	Extensions:
		Basic Constraints (critical):
			Certificate Authority (CA): FALSE
		Subject Alternative Name (not critical):
			RFC822Name: testcert@example.org
		Key Usage (critical):
			Digital signature.
		Subject Key Identifier (not critical):
			72587c7c71a921f0a27d8c75521b295f76726e29
		Authority Key Identifier (not critical):
			ea79a7d1a20817808d3012f47ce4c797ae5a1f4d
Other Information:
	Public Key ID:
		sha1:72587c7c71a921f0a27d8c75521b295f76726e29
		sha256:a9c06c2d614a9d28f109da338ddf86310c9aec1e5e101407958c162f57b2828a
	Public Key PIN:
		pin-sha256:qcBsLWFKnSjxCdozjd+GMQya7B5eEBQHlYwWL1eygoo=
Signing certificate...
Using slot 0 with a present token (0x1fd15fed)
Created certificate:
Certificate Object; type = X.509 cert
  label:      ecCert2
  subject:    DN: O=PKCS11 Provider, CN=My EC Cert 2
  serial:     08
  ID:         0006
Using slot 0 with a present token (0x1fd15fed)
EC2 PKCS11 URIS
pkcs11:id=%00%06;pin-value=12345678
pkcs11:id=%00%06
pkcs11:type=private;id=%00%06
pkcs11:type=cert;object=ecCert2
## Show contents of softhsm token
 ----------------------------------------------------------------------------------------------------
Using slot 0 with a present token (0x1fd15fed)
Private Key Object; RSA 
  label:      caCert
  ID:         0000
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Certificate Object; type = X.509 cert
  label:      ecCert2
  subject:    DN: O=PKCS11 Provider, CN=My EC Cert 2
  serial:     08
  ID:         0006
Private Key Object; RSA 
  label:      testCert
  ID:         0001
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Certificate Object; type = X.509 cert
  label:      ecPeerCert
  subject:    DN: O=PKCS11 Provider, CN=My Peer EC Cert
  serial:     05
  ID:         0003
Public Key Object; RSA 2048 bits
  label:      testCert
  ID:         0001
  Usage:      encrypt, verify, wrap
  Access:     local
Public Key Object; EC_EDWARDS  EC_POINT 255 bits
  EC_POINT:   0420b8c722eff90a0ec8c42de301b095ff2b379594649229ce5dcb1b861261d819d1
  EC_PARAMS:  130c656477617264733235353139 (OID 2.21.100.119.97.114.100.115.50.53.53.49.57)
  label:      edCert
  ID:         0004
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Certificate Object; type = X.509 cert
  label:      testCert
  subject:    DN: O=PKCS11 Provider, CN=My Test Cert
  serial:     03
  ID:         0001
Certificate Object; type = X.509 cert
  label:      edCert
  subject:    DN: O=PKCS11 Provider, CN=My ED25519 Cert
  serial:     06
  ID:         0004
Certificate Object; type = X.509 cert
  label:      testCert2
  subject:    DN: O=PKCS11 Provider, CN=My Test Cert 2
  serial:     07
  ID:         0005
Public Key Object; RSA 2048 bits
  label:      caCert
  ID:         0000
  Usage:      encrypt, verify, wrap
  Access:     local
Certificate Object; type = X.509 cert
  label:      caCert
  subject:    DN: CN=Issuer
  serial:     01
  ID:         0000
Private Key Object; RSA 
  label:      testCert2
  ID:         0005
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Private Key Object; EC_EDWARDS
  label:      edCert
  ID:         0004
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Certificate Object; type = X.509 cert
  label:      ecCert
  subject:    DN: O=PKCS11 Provider, CN=My EC Cert
  serial:     04
  ID:         0002
Public Key Object; EC  EC_POINT 256 bits
  EC_POINT:   044104c0d0bc6d05e6c5337a78e4a1dc044b90dd7917b01d38e19082bbba65a849d4483536031a39d925028de1ac6614e16d0a4081e085b77fd9b02b3fbb3820a4f6e2
  EC_PARAMS:  06082a8648ce3d030107
  label:      ecPeerCert
  ID:         0003
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Private Key Object; EC
  label:      ecCert
  ID:         0002
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; EC  EC_POINT 256 bits
  EC_POINT:   044104a125ea6bcdf85b25cd1e268618164bf18ff710d30722826c3fd6d2699778e85e9c69f5ac44fd7d99ed083e3bb788762361e8014290b0e7afb6a8f2c8a21858e4
  EC_PARAMS:  06082a8648ce3d030107
  label:      ecCert
  ID:         0002
  Usage:      encrypt, verify, wrap, derive
  Access:     local
Private Key Object; EC
  label:      ecCert2
  ID:         0006
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
Private Key Object; EC
  label:      ecPeerCert
  ID:         0003
  Usage:      decrypt, sign, unwrap, derive
  Access:     sensitive, always sensitive, never extractable, local
 ----------------------------------------------------------------------------------------------------
## Output configurations
Generate openssl config file
Export test variables to tmp.softhsm/testvars
                                      ##
########################################
########################################
## Set up testing system
Creating new NSS Database
Creating new Self Sign CA
Creating Certificate request for 'My Test Cert'
RSA PKCS11 URIS
pkcs11:id=%6c%4f%6d%63%63%93%af%24%b6%fa%ec%24%dd%8b%1d%dd%eb%d2%0b%ca;pin-value=12345678
pkcs11:id=%6c%4f%6d%63%63%93%af%24%b6%fa%ec%24%dd%8b%1d%dd%eb%d2%0b%ca
pkcs11:type=public;id=%6c%4f%6d%63%63%93%af%24%b6%fa%ec%24%dd%8b%1d%dd%eb%d2%0b%ca
pkcs11:type=private;id=%6c%4f%6d%63%63%93%af%24%b6%fa%ec%24%dd%8b%1d%dd%eb%d2%0b%ca
pkcs11:type=cert;object=testCert
Creating Certificate request for 'My EC Cert'
Creating Certificate request for 'My Peer EC Cert'
EC PKCS11 URIS
pkcs11:id=%34%9d%8f%2e%cb%db%be%7d%06%80%14%80%d3%8d%d3%5c%05%b1%11%07;pin-value=12345678
pkcs11:id=%34%9d%8f%2e%cb%db%be%7d%06%80%14%80%d3%8d%d3%5c%05%b1%11%07
pkcs11:type=public;id=%34%9d%8f%2e%cb%db%be%7d%06%80%14%80%d3%8d%d3%5c%05%b1%11%07
pkcs11:type=private;id=%34%9d%8f%2e%cb%db%be%7d%06%80%14%80%d3%8d%d3%5c%05%b1%11%07
pkcs11:type=cert;object=ecCert
pkcs11:id=%f9%fd%f5%bf%62%67%5b%3e%cd%ef%48%24%d9%e3%3c%65%fb%4b%d2%69
pkcs11:type=public;id=%f9%fd%f5%bf%62%67%5b%3e%cd%ef%48%24%d9%e3%3c%65%fb%4b%d2%69
pkcs11:type=private;id=%f9%fd%f5%bf%62%67%5b%3e%cd%ef%48%24%d9%e3%3c%65%fb%4b%d2%69
pkcs11:type=cert;object=ecPeerCert
## Show contents of softoken
 ----------------------------------------------------------------------------------------------------
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
selfCA                                                       Cu,Cu,Cu
testCert                                                     u,u,u
ecCert                                                       u,u,u
ecPeerCert                                                   u,u,u
certutil: Checking token "NSS Certificate DB" in slot "NSS User Private Key and Certificate Services"
< 0> rsa      ee477185825dda03df56126afcea61682cffaeed   NSS Certificate DB:selfCA
< 1> rsa      6c4f6d636393af24b6faec24dd8b1dddebd20bca   NSS Certificate DB:testCert
< 2> ec       349d8f2ecbdbbe7d06801480d38dd35c05b11107   NSS Certificate DB:ecCert
< 3> ec       f9fdf5bf62675b3ecdef4824d9e33c65fb4bd269   NSS Certificate DB:ecPeerCert
 ----------------------------------------------------------------------------------------------------
## Output configurations
Generate openssl config file
Export tests variables to tmp.softokn/testvars
                                      ##
########################################
===============================================
   pkcs11-provider 0.2: tests/test-suite.log
===============================================
# TOTAL: 31
# PASS:  27
# SKIP:  0
# XFAIL: 0
# FAIL:  4
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: basic-softokn
===================
Executing ./tbasic
## Raw Sign check error
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -pkeyopt pad-mode:none
              -in ${TMPPDIR}/64Brandom.bin
              -out ${TMPPDIR}/raw-sig.bin
Public Key operation error
20E4D9B9FFFFFF00:error:0200007A:rsa routines:p11prov_sig_operate:data too small for key size:signature.c:874:
## Sign and Verify with provided Hash and RSA
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}"
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## Sign and Verify with provided Hash and RSA with DigestInfo struct
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}" -pkeyopt digest:sha256
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}" -pkeyopt digest:sha256
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with RSA
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -digest sha256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-dgstsig.bin
 openssl 
pkeyutl -verify -inkey "${BASEURI}" -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
RSA basic encrypt and decrypt
 openssl 
pkeyutl -encrypt -inkey "${PUBURI}" -pubin
                 -in ${SECRETFILE}
                 -out ${SECRETFILE}.enc
 openssl 
pkeyutl -decrypt -inkey "${PRIURI}"
                 -in ${SECRETFILE}.enc
                 -out ${SECRETFILE}.dec
## Test Disallow Public Export
 openssl pkey -in $PUBURI -pubin -pubout -text
## Test CSR generation from RSA private keys
 openssl 
req -new -batch -key "${PRIURI}" -out ${TMPPDIR}/rsa_csr.pem
 openssl 
req -in ${TMPPDIR}/rsa_csr.pem -verify -noout
Certificate request self-signature verify OK
## Test fetching public keys without PIN in config files
 openssl pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/rsa.pub.nopin.pem
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ec.pub.nopin.pem
## Test fetching public keys with a PIN in URI
 openssl pkey -in $BASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/rsa.pub.uripin.pem
 openssl pkey -in $ECBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ec.pub.uripin.pem
## Test prompting without PIN in config files
Failed to get expected command output
Original command output:
Enter pass phrase for PKCS#11 Token (Slot 1 - NSS Internal Cryptographic Services):
PKCS11 RSA Private Key (2048 bits)
[Can't export and print private key data]
URI pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%6C%4F%6D%63%63%93%AF%24%B6%FA%EC%24%DD%8B%1D%DD%EB%D2%0B%CA;type=private
FAIL basic-softokn.t (exit status: 1)
FAIL: basic-softhsm
===================
Executing ./tbasic
## Raw Sign check error
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -pkeyopt pad-mode:none
              -in ${TMPPDIR}/64Brandom.bin
              -out ${TMPPDIR}/raw-sig.bin
Public Key operation error
2054D8A3FFFFFF00:error:0200007A:rsa routines:p11prov_sig_operate:data too small for key size:signature.c:874:
## Sign and Verify with provided Hash and RSA
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}"
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## Sign and Verify with provided Hash and RSA with DigestInfo struct
 openssl dgst -sha256 -binary -out ${TMPPDIR}/sha256.bin ${SEEDFILE}
 openssl 
pkeyutl -sign -inkey "${PRIURI}" -pkeyopt digest:sha256
              -in ${TMPPDIR}/sha256.bin
              -out ${TMPPDIR}/sha256-sig.bin
 openssl 
pkeyutl -verify -inkey "${PUBURI}" -pkeyopt digest:sha256
                -pubin
                -in ${TMPPDIR}/sha256.bin
                -sigfile ${TMPPDIR}/sha256-sig.bin
Signature Verified Successfully
## DigestSign and DigestVerify with RSA
 openssl 
pkeyutl -sign -inkey "${BASEURI}"
              -digest sha256
              -in ${RAND64FILE}
              -rawin
              -out ${TMPPDIR}/sha256-dgstsig.bin
 openssl 
pkeyutl -verify -inkey "${BASEURI}" -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
 openssl 
pkeyutl -verify -inkey "${PUBURI}"
                -pubin
                -digest sha256
                -in ${RAND64FILE}
                -rawin
                -sigfile ${TMPPDIR}/sha256-dgstsig.bin
Signature Verified Successfully
RSA basic encrypt and decrypt
 openssl 
pkeyutl -encrypt -inkey "${PUBURI}" -pubin
                 -in ${SECRETFILE}
                 -out ${SECRETFILE}.enc
 openssl 
pkeyutl -decrypt -inkey "${PRIURI}"
                 -in ${SECRETFILE}.enc
                 -out ${SECRETFILE}.dec
## Test Disallow Public Export
 openssl pkey -in $PUBURI -pubin -pubout -text
## Test CSR generation from RSA private keys
 openssl 
req -new -batch -key "${PRIURI}" -out ${TMPPDIR}/rsa_csr.pem
 openssl 
req -in ${TMPPDIR}/rsa_csr.pem -verify -noout
Certificate request self-signature verify OK
## Test fetching public keys without PIN in config files
 openssl pkey -in $PUBURI -pubin -pubout -out ${TMPPDIR}/rsa.pub.nopin.pem
 openssl pkey -in $ECPUBURI -pubin -pubout -out ${TMPPDIR}/ec.pub.nopin.pem
## Test fetching public keys with a PIN in URI
 openssl pkey -in $BASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/rsa.pub.uripin.pem
 openssl pkey -in $ECBASEURIWITHPIN -pubin -pubout -out ${TMPPDIR}/ec.pub.uripin.pem
## Test prompting without PIN in config files
Failed to get expected command output
Original command output:
Enter pass phrase for PKCS#11 Token (Slot 533815277 - SoftHSM slot ID 0x1fd15fed):
PKCS11 RSA Private Key (2048 bits)
[Can't export and print private key data]
URI pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%01;object=testCert;type=private
FAIL basic-softhsm.t (exit status: 1)
FAIL: tls-softokn
=================
Executing ./ttls
## Test SSL_CTX creation
SSL Context works!
## Test an actual TLS connection
2004FBBBFFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
2004FBBBFFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
2004FBBBFFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
2004FBBBFFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
connect:errno=111
Check message was successfully delivered over TLS
kill: sending signal to 257920 failed: No such process
Server output:
./ttls: line 26: 257910 Killed                  $CHECKER openssl s_server -accept "${PORT}" -key "${PRIURI}" -cert "${CRTURI}" 0<&3
FAIL tls-softokn.t (exit status: 1)
FAIL: tls-softhsm
=================
Executing ./ttls
## Test SSL_CTX creation
SSL Context works!
## Test an actual TLS connection
20341AB5FFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
20341AB5FFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
20341AB5FFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
20341AB5FFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
connect:errno=111
Check message was successfully delivered over TLS
Using default temp DH parameters
ACCEPT
kill: sending signal to 257958 failed: No such process
/builddir/build/BUILD/pkcs11-provider-0.2/tests/helpers.sh: line 66: 257956 Killed                  $CHECKER openssl s_server -accept "${PORT}" -key "${PRIURI}" -cert "${CRTURI}" 0<&3
Server output:
FAIL tls-softhsm.t (exit status: 1)
Executing ./ttls
## Test SSL_CTX creation
SSL Context works!
## Test an actual TLS connection
20341AB5FFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
20341AB5FFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
20341AB5FFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
20341AB5FFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
connect:errno=111
Check message was successfully delivered over TLS
Using default temp DH parameters
ACCEPT
kill: sending signal to 257958 failed: No such process
/builddir/build/BUILD/pkcs11-provider-0.2/tests/helpers.sh: line 66: 257956 Killed                  $CHECKER openssl s_server -accept "${PORT}" -key "${PRIURI}" -cert "${CRTURI}" 0<&3
Server output:
FAIL tls-softhsm.t (exit status: 1)
Executing ./ttls
## Test SSL_CTX creation
SSL Context works!
## Test an actual TLS connection
2004FBBBFFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
2004FBBBFFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
2004FBBBFFFFFF00:error:8000006F:system library:BIO_connect:Connection refused:crypto/bio/bio_sock2.c:114:calling connect()
2004FBBBFFFFFF00:error:10000067:BIO routines:BIO_connect:connect error:crypto/bio/bio_sock2.c:116:
connect:errno=111
Check message was successfully delivered over TLS
kill: sending signal to 257920 failed: No such process
Server output:
./ttls: line 26: 257910 Killed                  $CHECKER openssl s_server -accept "${PORT}" -key "${PRIURI}" -cert "${CRTURI}" 0<&3
FAIL tls-softokn.t (exit status: 1)
Executing ./turi
## Check that storeutl returns URIs
 openssl storeutl -text pkcs11:
## Check returned URIs work to find objects
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%00;object=caCert;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%C2%8B%E6%50%E1%90%3E%11%CA%F9%2C%20%C6%46%F3%10;object=c28be650;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%01;object=testCert;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%A2%40%47%ED%E1%60%59%97%1A%6E%3D%92%61%C5%CA%77;object=Test%20EC%20gen%20[%25a2%2540%2547];type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%01;object=testCert;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%E9%C0%10%B5%25%F6%C4%15%68%AF%D9%77%C0%ED%DC%40;object=Test%20RSA-PSS%20gen%20[%25e9%25c0%2510];type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%E9%C0%10%B5%25%F6%C4%15%68%AF%D9%77%C0%ED%DC%40;object=Test%20RSA-PSS%20gen%20[%25e9%25c0%2510];type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%00;object=caCert;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%B1%6E%9E%0F%5D%ED%A4%87%3B%8D%04%AC%B8%94%04%F8;object=Test%20RSA%20gen%20[%25b1%256e%259e];type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%05;object=testCert2;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%C2%8B%E6%50%E1%90%3E%11%CA%F9%2C%20%C6%46%F3%10;object=c28be650;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%03;object=ecPeerCert;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%02;object=ecCert;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%A2%40%47%ED%E1%60%59%97%1A%6E%3D%92%61%C5%CA%77;object=Test%20EC%20gen%20[%25a2%2540%2547];type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%02;object=ecCert;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%B1%6E%9E%0F%5D%ED%A4%87%3B%8D%04%AC%B8%94%04%F8;object=Test%20RSA%20gen%20[%25b1%256e%259e];type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%06;object=ecCert2;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=864f695b1fd15fed;token=token_name;id=%00%03;object=ecPeerCert;type=private
 openssl storeutl -text "$uri"
## Check each URI component is tested
$cmp=pkcs11:model=SoftHSM%20v2
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=manufacturer=SoftHSM%20project
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=serial=864f695b1fd15fed
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=token=token_name
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=id=%00%00
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=object=caCert
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=type=private
 openssl storeutl -text "pkcs11:${cmp}"
PASS uri-softhsm.t (exit status: 0)
Executing ./turi
## Check that storeutl returns URIs
 openssl storeutl -text pkcs11:
## Check returned URIs work to find objects
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%EE%47%71%85%82%5D%DA%03%DF%56%12%6A%FC%EA%61%68%2C%FF%AE%ED;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%6C%4F%6D%63%63%93%AF%24%B6%FA%EC%24%DD%8B%1D%DD%EB%D2%0B%CA;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%34%9D%8F%2E%CB%DB%BE%7D%06%80%14%80%D3%8D%D3%5C%05%B1%11%07;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%F9%FD%F5%BF%62%67%5B%3E%CD%EF%48%24%D9%E3%3C%65%FB%4B%D2%69;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%90%50%01%73%06%C5%D3%17%CD%77%37%3C%72%E4%4C%3B;object=90500173;type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%A2%21%C1%D4%D9%50%CD%5A%CC%58%F8%A7%4D%A4%09%EF;object=Test%20RSA%20gen%20[%25a2%2521%25c1];type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%FA%DE%41%E7%3A%8D%8E%40%53%A0%B1%A1%18%FC%59%93;object=Test%20RSA-PSS%20gen%20[%25fa%25de%2541];type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%36%FD%85%06%77%04%DB%F8%C3%F0%C9%6E%F5%AA%12%AD;object=Test%20EC%20gen%20[%2536%25fd%2585];type=public
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%EE%47%71%85%82%5D%DA%03%DF%56%12%6A%FC%EA%61%68%2C%FF%AE%ED;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%6C%4F%6D%63%63%93%AF%24%B6%FA%EC%24%DD%8B%1D%DD%EB%D2%0B%CA;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%34%9D%8F%2E%CB%DB%BE%7D%06%80%14%80%D3%8D%D3%5C%05%B1%11%07;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%F9%FD%F5%BF%62%67%5B%3E%CD%EF%48%24%D9%E3%3C%65%FB%4B%D2%69;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%90%50%01%73%06%C5%D3%17%CD%77%37%3C%72%E4%4C%3B;object=90500173;type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%A2%21%C1%D4%D9%50%CD%5A%CC%58%F8%A7%4D%A4%09%EF;object=Test%20RSA%20gen%20[%25a2%2521%25c1];type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%FA%DE%41%E7%3A%8D%8E%40%53%A0%B1%A1%18%FC%59%93;object=Test%20RSA-PSS%20gen%20[%25fa%25de%2541];type=private
 openssl storeutl -text "$uri"
$uri=pkcs11:model=NSS%203;manufacturer=Mozilla%20Foundation;serial=0000000000000000;token=NSS%20Certificate%20DB;id=%36%FD%85%06%77%04%DB%F8%C3%F0%C9%6E%F5%AA%12%AD;object=Test%20EC%20gen%20[%2536%25fd%2585];type=private
 openssl storeutl -text "$uri"
## Check each URI component is tested
$cmp=pkcs11:model=NSS%203
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=manufacturer=Mozilla%20Foundation
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=serial=0000000000000000
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=token=NSS%20Certificate%20DB
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=id=%EE%47%71%85%82%5D%DA%03%DF%56%12%6A%FC%EA%61%68%2C%FF%AE%ED
 openssl storeutl -text "pkcs11:${cmp}"
$cmp=type=public
 openssl storeutl -text "pkcs11:${cmp}"
PASS uri-softokn.t (exit status: 0)
RPM build errors:
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.CvHBMt (%check)
    Bad exit status from /var/tmp/rpm-tmp.CvHBMt (%check)
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/pkcs11-provider.spec\n', 1)]
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 riscv64 --nodeps /builddir/build/SPECS/pkcs11-provider.spec