freebsd-ports/security/trousers/files
Ben Woods ca956716eb security/trousers: Fix compilation with LibreSSL
This was causing the build of security/gnutls to fail when the
TPM option was enabled and make.conf contained
DEFAULT_VERSIONS+=ssl=libressl. The gnutls configure script failed to
successfully link against the libtspi.so library, and therefore
determined the tss library was not suitable and disabled TPM.
/usr/local/lib/libtspi.so: undefined reference to `RSA_set0_key'
This caused the gnutls build to fail during staging due to an incorrect
PLIST (missing bin/tpmtool).

As of version 0.3.14, TrouSerS utilises the new OpenSSL function
RSA_set0_key, which was only introduced in OpenSSL 1.1.0 and is not in
LibreSSL (yet).

The TrouSerS code utilises the OPENSSL_VERSION_NUMBER preprocessor macro
to determine the version of OpenSSL which is it compiling against,
and defines the RSA_set0_key function if the version of OpenSSL is older
than 1.1.0. This causes an issue with LibreSSL, because it sets the
OPENSSL_VERSION_NUMBER preprocessor macro to impersonate OpenSSL 2.0.0.

The new patch-src_trspi_crypto_openssl_rsa.c causes TrouSerS to define
the RSA_set0_key function on LibreSSL also.

PR:		214660
Submitted by:	David Z <daz@hyperchronos.org>
Reported by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by:	adamw (mentor, implicit)
Approved by:	portmgr (just-fix-it blanket)
2016-11-23 13:16:53 +00:00
..
patch-configure.ac
patch-dist_Makefile.am
patch-dist_tcsd.conf.in
patch-src_include_biosem.h
patch-src_include_linux_tpm.h
patch-src_include_tcs__tsp.h
patch-src_include_tcs__utils.h
patch-src_include_tcsd.h
patch-src_include_tcsd__ops.h
patch-src_include_threads.h
patch-src_include_trousers__types.h
patch-src_include_tss_platform.h
patch-src_tcs_Makefile.am
patch-src_tcs_ps_tcsps.c
patch-src_tcs_rpc_tcstp_rpc.c
patch-src_tcs_tcs__aik.c
patch-src_tcs_tcs__auth__mgr.c
patch-src_tcsd_Makefile.am
patch-src_tcsd_svrside.c
patch-src_tddl_Makefile.am
patch-src_trspi_crypto_openssl_rsa.c
patch-src_trspi_Makefile.am
patch-src_tspi_Makefile.am
patch-src_tspi_ps_tspps.c
patch-src_tspi_rpc_hosttable.c
patch-src_tspi_rpc_tcstp_rpc.c
patch-src_tspi_tsp__tcsi__param.c
pkg-message.in
tcsd.in