File path is fixed. This loading problem seems to be a separate bug, which I have a theory about.
* Anatoly Pugachev (mator...@gmail.com) wrote: > File path seems to be fixed in new / last version? > > mator@deb4g:~$ dpkg -s libengine-pkcs11-openssl | grep Ver > Version: 0.2.1-2 > > mator@deb4g:~$ dpkg -L libengine-pkcs11-openssl | grep libpkcs11.so > /usr/lib/sparc64-linux-gnu/openssl-1.0.2/engines/libpkcs11.so > > > But still can't use pkcs11 module: > > mator@deb4g:~$ openssl speed rsa2048 -engine pkcs11 > Unable to load module (null) > can't use that engine > 18444492278191086816:error:80001401:PKCS11 > library:PKCS11_CTX_load:Unable to load PKCS#11 module:p11_load.c:84: > 18444492278191086816:error:260B806D:engine > routines:ENGINE_TABLE_REGISTER:init failed:eng_table.c:175: > Unable to load module (null) > Doing 2048 bit private rsa's for 10s: 12687 2048 bit private RSA's in 10.00s > Doing 2048 bit public rsa's for 10s: 387140 2048 bit public RSA's in 10.00s > OpenSSL 1.0.2g 1 Mar 2016 > built on: reproducible build, date unspecified > options:bn(64,32) rc4(ptr,char) des(ptr,risc1,16,int) aes(partial) > blowfish(ptr) > compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC > -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 > -DB_ENDIAN -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro > -Wa,--noexecstack -Wall -DULTRASPARC -DBN_DIV2W -DOPENSSL_BN_ASM_MONT > -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM > -DAES_ASM -DGHASH_ASM > sign verify sign/s verify/s > rsa 2048 bits 0.000788s 0.000026s 1268.7 38714.0 > > mator@deb4g:~$ openssl engine pkcs11 -t > (pkcs11) pkcs11 engine > Unable to load module (null) > [ unavailable ] > > mator@deb4g:~$ strace -e trace=file openssl engine pkcs11 -t > execve("/usr/bin/openssl", ["openssl", "engine", "pkcs11", "-t"], [/* > 16 vars */]) = 0 > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > directory) > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > directory) > open("/usr/lib/sparc64-linux-gnu/libssl.so.1.0.2", O_RDONLY|O_CLOEXEC) = 3 > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > directory) > open("/usr/lib/sparc64-linux-gnu/libcrypto.so.1.0.2", O_RDONLY|O_CLOEXEC) = 3 > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > directory) > open("/lib/sparc64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > directory) > open("/lib/sparc64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3 > open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/lib/sparc64-linux-gnu/openssl-1.0.2/engines/libpkcs11.so", > O_RDONLY|O_CLOEXEC) = 3 > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > directory) > open("/usr/lib/sparc64-linux-gnu/libp11.so.2", O_RDONLY|O_CLOEXEC) = 3 > (pkcs11) pkcs11 engine > Unable to load module (null) > [ unavailable ] > +++ exited with 0 +++ > mator@deb4g:~$ > > > > on the other machine (fedora x86_64 , vmware guest): > > [mator@node01 ~]$ openssl engine pkcs11 -t > (pkcs11) pkcs11 engine > [ available ] > > [mator@node01 ~]$ strace -e trace=file openssl engine pkcs11 -t > execve("/usr/bin/openssl", ["openssl", "engine", "pkcs11", "-t"], [/* > 25 vars */]) = 0 > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libssl.so.10", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libcrypto.so.10", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3 > statfs("/sys/fs/selinux", {f_type="SELINUX_MAGIC", f_bsize=4096, > f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, > 0}, f_namelen=255, f_frsize=4096, f_flags=4128}) = 0 > statfs("/sys/fs/selinux", {f_type="SELINUX_MAGIC", f_bsize=4096, > f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, > 0}, f_namelen=255, f_frsize=4096, f_flags=4128}) = 0 > access("/etc/selinux/config", F_OK) = 0 > access("/etc/system-fips", F_OK) = -1 ENOENT (No such file or > directory) > open("/etc/pki/tls/openssl.cnf", O_RDONLY) = 3 > open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/lib64/openssl/engines/libpkcs11.so", O_RDONLY|O_CLOEXEC) = 3 > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libp11.so.2", O_RDONLY|O_CLOEXEC) = 3 > (pkcs11) pkcs11 engine > open("/usr/lib64/p11-kit-proxy.so", O_RDONLY|O_CLOEXEC) = 3 > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/etc/pkcs11/pkcs11.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/mator/.config/pkcs11/pkcs11.conf", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > stat("/home/mator/.config/pkcs11/modules", 0x7ffc8a781f40) = -1 ENOENT > (No such file or directory) > stat("/etc/pkcs11/modules", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 > open("/etc/pkcs11/modules", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 > stat("/etc/pkcs11/modules/..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 > stat("/etc/pkcs11/modules/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 > stat("/usr/share/p11-kit/modules", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > open("/usr/share/p11-kit/modules", > O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 > stat("/usr/share/p11-kit/modules/..", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > stat("/usr/share/p11-kit/modules/p11-kit-trust.module", > {st_mode=S_IFREG|0644, st_size=693, ...}) = 0 > open("/usr/share/p11-kit/modules/p11-kit-trust.module", O_RDONLY|O_CLOEXEC) = > 4 > stat("/usr/share/p11-kit/modules/.", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > open("/usr/lib64/pkcs11/p11-kit-trust.so", O_RDONLY|O_CLOEXEC) = 3 > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libfreebl3.so", O_RDONLY|O_CLOEXEC) = 3 > statfs("/selinux", 0x7ffc8a782050) = -1 ENOENT (No such file or > directory) > open("/proc/mounts", O_RDONLY) = 3 > open("/tmp/fficgaRwB", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 > unlink("/tmp/fficgaRwB") = 0 > [ available ] > +++ exited with 0 +++ > [mator@node01 ~]$ > > _______________________________________________ > pkg-opensc-maint mailing list > pkg-opensc-ma...@lists.alioth.debian.org > https://lists.alioth.debian.org/mailman/listinfo/pkg-opensc-maint -- Eric Dorland <e...@kuroneko.ca> 43CF 1228 F726 FD5B 474C E962 C256 FBD5 0022 1E93
signature.asc
Description: PGP signature