On Tue, Jan 31, 2017 at 09:24:34PM +0100, Philipp Kern wrote:
> Hi,
> 
> On 01/31/2017 07:46 PM, Adrian Bunk wrote:
> > On Tue, Jan 31, 2017 at 04:02:53PM +0100, Philipp Kern wrote:
> >> so tpm-utils 1.3.9 fixes OpenSSL 1.1 compatibility
> > does 1.3.9 compile for you with OpenSSL 1.1?
> 
> 1.3.9 still has two issues with -Werror, but none with OpenSSL 1.1 AFAICS.
>...

Which tarball are you using, and do you have the build dependency 
libopencryptoki-dev installed?

I am using the one from
  https://sourceforge.net/projects/trousers/files/tpm-tools/1.3.9/

and the error I get is:

...
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../include -D_LINUX -Wdate-time 
-D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/tmp/tpm-tools-1.3.9=. 
-fstack-protector-strong -Wformat -Werror=format-security -m64 -Wall 
-Wreturn-type -Wsign-compare -c -o data_import.o data_import.c
data_import.c: In function 'readX509Cert':
data_import.c:375:26: error: dereferencing pointer to incomplete type 'EVP_PKEY 
{aka struct evp_pkey_st}'
  if ( EVP_PKEY_type( pKey->type ) != EVP_PKEY_RSA ) {
                          ^~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from data_import.c:34:
data_import.c: In function 'createRsaPubKeyObject':
data_import.c:694:34: error: dereferencing pointer to incomplete type 'RSA {aka 
struct rsa_st}'
  int  nLen = BN_num_bytes( a_pRsa->n );
                                  ^
Makefile:524: recipe for target 'data_import.o' failed
make[4]: *** [data_import.o] Error 1
make[4]: Leaving directory '/tmp/tpm-tools-1.3.9/src/data_mgmt'
Makefile:401: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
...

> Kind regards
> Philipp Kern

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Reply via email to