aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-11-19 03:22:15 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-11-19 03:22:15 +0000
commit2fbe2585b49a22a94f266846294de5eed818f1fe (patch)
treeae5125865ce8dc8f6c89c3e283e96b5d00f2ee42
parentf58430cc9c41c17570289fa70baec7add84d0d03 (diff)
downloadports-2fbe2585b49a22a94f266846294de5eed818f1fe.tar.gz
ports-2fbe2585b49a22a94f266846294de5eed818f1fe.zip
Notes
-rw-r--r--security/trousers/Makefile10
-rw-r--r--security/trousers/distinfo6
-rw-r--r--security/trousers/files/patch-configure.ac41
-rw-r--r--security/trousers/files/patch-configure.in50
-rw-r--r--security/trousers/files/patch-dist_Makefile.am2
-rw-r--r--security/trousers/files/patch-dist_tcsd.conf.in2
-rw-r--r--security/trousers/files/patch-src_include_biosem.h2
-rw-r--r--security/trousers/files/patch-src_include_linux_tpm.h2
-rw-r--r--security/trousers/files/patch-src_include_tcs__tsp.h2
-rw-r--r--security/trousers/files/patch-src_include_tcs__utils.h2
-rw-r--r--security/trousers/files/patch-src_include_tcsd.h2
-rw-r--r--security/trousers/files/patch-src_include_tcsd__ops.h2
-rw-r--r--security/trousers/files/patch-src_include_threads.h2
-rw-r--r--security/trousers/files/patch-src_include_trousers__types.h18
-rw-r--r--security/trousers/files/patch-src_include_tss_platform.h2
-rw-r--r--security/trousers/files/patch-src_tcs_Makefile.am2
-rw-r--r--security/trousers/files/patch-src_tcs_ps_ps__utils.c45
-rw-r--r--security/trousers/files/patch-src_tcs_ps_tcsps.c8
-rw-r--r--security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c2
-rw-r--r--security/trousers/files/patch-src_tcs_tcs__aik.c2
-rw-r--r--security/trousers/files/patch-src_tcs_tcs__auth__mgr.c2
-rw-r--r--security/trousers/files/patch-src_tcsd_Makefile.am10
-rw-r--r--security/trousers/files/patch-src_tcsd_svrside.c2
-rw-r--r--security/trousers/files/patch-src_tddl_Makefile.am2
-rw-r--r--security/trousers/files/patch-src_trspi_Makefile.am2
-rw-r--r--security/trousers/files/patch-src_tspi_Makefile.am2
-rw-r--r--security/trousers/files/patch-src_tspi_ps_ps__utils.c20
-rw-r--r--security/trousers/files/patch-src_tspi_ps_tspps.c12
-rw-r--r--security/trousers/files/patch-src_tspi_rpc_hosttable.c20
-rw-r--r--security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c2
-rw-r--r--security/trousers/files/patch-src_tspi_tsp__tcsi__param.c23
31 files changed, 102 insertions, 199 deletions
diff --git a/security/trousers/Makefile b/security/trousers/Makefile
index 6ced16114d20..655d38b49539 100644
--- a/security/trousers/Makefile
+++ b/security/trousers/Makefile
@@ -2,24 +2,22 @@
# $FreeBSD$
PORTNAME= trousers
-PORTVERSION= 0.3.13
-PORTREVISION= 1
+PORTVERSION= 0.3.14
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= hrs@FreeBSD.org
COMMENT= Open-source TCG Software Stack
-LICENSE= CPL
-LICENSE_NAME= Common Public License
+LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= tpm-emulator>=0.7.4_1:emulators/tpm-emulator
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= dos2unix alias autoreconf gmake iconv libtool pkgconfig ssl
DOS2UNIX_GLOB= *.h *.c
+NO_WRKSUBDIR= yes
USE_LDCONFIG= YES
USE_RC_SUBR= tcsd
INSTALL_TARGET= install-strip
@@ -32,8 +30,6 @@ CONFIGURE_ARGS= --with-gui=none --enable-static \
RANLIB=:
MAKE_ENV= ICONV_LIB=${ICONV_LIB} \
ICONV_PREFIX=${ICONV_PREFIX}
-CFLAGS+= -I${OPENSSLINC}
-LDFLAGS+= -L${OPENSSLLIB}
SUB_FILES= pkg-message
SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
diff --git a/security/trousers/distinfo b/security/trousers/distinfo
index fea53852d8f8..9797141e9600 100644
--- a/security/trousers/distinfo
+++ b/security/trousers/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1463562404
-SHA256 (trousers-0.3.13.tar.gz) = bb908e4a3c88a17b247a4fc8e0fff3419d8a13170fe7bdfbe0e2c5c082a276d3
-SIZE (trousers-0.3.13.tar.gz) = 1371901
+TIMESTAMP = 1479521351
+SHA256 (trousers-0.3.14.tar.gz) = 95db55beb1556b12be9b4cf3123a3a59c7a70cc890d731fae93e6949305fb63b
+SIZE (trousers-0.3.14.tar.gz) = 3462743
diff --git a/security/trousers/files/patch-configure.ac b/security/trousers/files/patch-configure.ac
new file mode 100644
index 000000000000..661837fc030a
--- /dev/null
+++ b/security/trousers/files/patch-configure.ac
@@ -0,0 +1,41 @@
+--- configure.ac.orig 2016-11-09 20:26:34 UTC
++++ configure.ac
+@@ -58,7 +58,7 @@ AC_ARG_WITH(openssl,
+ AC_MSG_ERROR([$OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!])
+ else
+ AC_MSG_RESULT([yes])
+- CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
++ AC_SUBST([OPENSSL_INCLUDE_DIR])
+ AC_SUBST([OPENSSL_LIB_DIR])
+ fi],
+ [AC_MSG_RESULT([no])
+@@ -78,6 +78,21 @@ AC_ARG_ENABLE(gcov,
+ [CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
+ AC_MSG_RESULT([*** Enabling gcov at user request ***])],)
+
++# Check for tss user
++AC_ARG_WITH(tssuser,
++ [ --with-tssuser[[=USER]] set tss user [[tss]]],
++ [tss_user=$withval],
++ [tss_user=tss]
++)
++# Check for tss group
++AC_ARG_WITH(tssgroup,
++ [ --with-tssgroup[[=GROUP]] set tss group [[tss]]],
++ [tss_group=$withval],
++ [tss_group=tss]
++)
++AC_SUBST(TSS_USER_NAME, $tss_user)
++AC_SUBST(TSS_GROUP_NAME, $tss_group)
++
+ # profiling support
+ AC_ARG_ENABLE(gprof,
+ [AC_HELP_STRING([--enable-gprof], [enable profiling with gprof [default=off]])],
+@@ -369,6 +384,7 @@ if test "x${GCC}" = "xyes"; then
+ fi
+
+ CFLAGS="$CFLAGS -I../include \
++ -DTSS_USER_NAME=\\\"$tss_user\\\" -DTSS_GROUP_NAME=\\\"$tss_group\\\" \
+ -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} \
+ -DTSS_VER_MINOR=${TSS_VER_MINOR} -DTSS_SPEC_MAJOR=${TSS_SPEC_MAJOR} \
+ -DTSS_SPEC_MINOR=${TSS_SPEC_MINOR}"
diff --git a/security/trousers/files/patch-configure.in b/security/trousers/files/patch-configure.in
deleted file mode 100644
index a121c3790eb3..000000000000
--- a/security/trousers/files/patch-configure.in
+++ /dev/null
@@ -1,50 +0,0 @@
---- configure.in.orig 2014-04-24 18:05:43 UTC
-+++ configure.in
-@@ -52,7 +52,7 @@ AC_ARG_WITH(openssl,
- AC_MSG_ERROR([$OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!])
- else
- AC_MSG_RESULT([yes])
-- CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
-+ AC_SUBST([OPENSSL_INCLUDE_DIR])
- AC_SUBST([OPENSSL_LIB_DIR])
- fi],
- [AC_MSG_RESULT([no])
-@@ -72,6 +72,21 @@ AC_ARG_ENABLE(gcov,
- [CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
- AC_MSG_RESULT([*** Enabling gcov at user request ***])],)
-
-+# Check for tss user
-+AC_ARG_WITH(tssuser,
-+ [ --with-tssuser[[=USER]] set tss user [[tss]]],
-+ [tss_user=$withval],
-+ [tss_user=tss]
-+)
-+# Check for tss group
-+AC_ARG_WITH(tssgroup,
-+ [ --with-tssgroup[[=GROUP]] set tss group [[tss]]],
-+ [tss_group=$withval],
-+ [tss_group=tss]
-+)
-+AC_SUBST(TSS_USER_NAME, $tss_user)
-+AC_SUBST(TSS_GROUP_NAME, $tss_group)
-+
- # profiling support
- AC_ARG_ENABLE(gprof,
- [AC_HELP_STRING([--enable-gprof], [enable profiling with gprof [default=off]])],
-@@ -356,6 +371,8 @@ AC_PROG_LIBTOOL
- AC_C_BIGENDIAN([AC_DEFINE(_BIG_ENDIAN, 1, [big-endian host])])
- AC_CHECK_DECL(htole32, [AC_DEFINE(HTOLE_DEFINED, 1, [htole32 function is available])])
- AC_CHECK_HEADER(sys/byteorder.h, [AC_DEFINE(HAVE_BYTEORDER_H, 1, [sys/byteorder.h header])])
-+AC_CHECK_HEADER(endian.h, [AC_DEFINE(HAVE_ENDIAN_H, 1, [endian.h header])])
-+AC_CHECK_HEADER(sys/endian.h, [AC_DEFINE(HAVE_SYS_ENDIAN_H, 1, [sys/endian.h header])])
- AC_CHECK_FUNC(daemon, [ AC_DEFINE(HAVE_DAEMON, 1, [daemon function is available]) ])
-
- if test "x${GCC}" = "xyes"; then
-@@ -363,6 +380,7 @@ if test "x${GCC}" = "xyes"; then
- fi
-
- CFLAGS="$CFLAGS -I../include \
-+ -DTSS_USER_NAME=\\\"$tss_user\\\" -DTSS_GROUP_NAME=\\\"$tss_group\\\" \
- -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} \
- -DTSS_VER_MINOR=${TSS_VER_MINOR} -DTSS_SPEC_MAJOR=${TSS_SPEC_MAJOR} \
- -DTSS_SPEC_MINOR=${TSS_SPEC_MINOR}"
diff --git a/security/trousers/files/patch-dist_Makefile.am b/security/trousers/files/patch-dist_Makefile.am
index ba062c7db9d1..c209b536ea5d 100644
--- a/security/trousers/files/patch-dist_Makefile.am
+++ b/security/trousers/files/patch-dist_Makefile.am
@@ -1,4 +1,4 @@
---- dist/Makefile.am.orig 2014-04-24 18:05:43 UTC
+--- dist/Makefile.am.orig 2014-07-23 19:42:44 UTC
+++ dist/Makefile.am
@@ -1,14 +1,14 @@
EXTRA_DIST = system.data.auth system.data.noauth \
diff --git a/security/trousers/files/patch-dist_tcsd.conf.in b/security/trousers/files/patch-dist_tcsd.conf.in
index a9e13e89ff82..4f3f8380d567 100644
--- a/security/trousers/files/patch-dist_tcsd.conf.in
+++ b/security/trousers/files/patch-dist_tcsd.conf.in
@@ -1,4 +1,4 @@
---- dist/tcsd.conf.in.orig 2014-04-24 18:05:43 UTC
+--- dist/tcsd.conf.in.orig 2014-07-23 19:42:44 UTC
+++ dist/tcsd.conf.in
@@ -35,7 +35,7 @@
# log data. The interface to this log is usually provided by the TPM
diff --git a/security/trousers/files/patch-src_include_biosem.h b/security/trousers/files/patch-src_include_biosem.h
index 0f8086c4cff5..ff8996d2232f 100644
--- a/security/trousers/files/patch-src_include_biosem.h
+++ b/security/trousers/files/patch-src_include_biosem.h
@@ -1,4 +1,4 @@
---- src/include/biosem.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/biosem.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/biosem.h
@@ -26,7 +26,7 @@ typedef struct {
UINT32 eventType;
diff --git a/security/trousers/files/patch-src_include_linux_tpm.h b/security/trousers/files/patch-src_include_linux_tpm.h
index ae6cd78deb23..3a9f1a290d01 100644
--- a/security/trousers/files/patch-src_include_linux_tpm.h
+++ b/security/trousers/files/patch-src_include_linux_tpm.h
@@ -1,4 +1,4 @@
---- src/include/linux/tpm.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/linux/tpm.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/linux/tpm.h
@@ -20,6 +20,8 @@
#include <linux/ioctl.h>
diff --git a/security/trousers/files/patch-src_include_tcs__tsp.h b/security/trousers/files/patch-src_include_tcs__tsp.h
index fd8164a7f58c..55e1588d57d7 100644
--- a/security/trousers/files/patch-src_include_tcs__tsp.h
+++ b/security/trousers/files/patch-src_include_tcs__tsp.h
@@ -1,4 +1,4 @@
---- src/include/tcs_tsp.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/tcs_tsp.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/tcs_tsp.h
@@ -79,7 +79,13 @@ struct key_disk_cache
/* XXX Get rid of this, there's no reason to set an arbitrary limit */
diff --git a/security/trousers/files/patch-src_include_tcs__utils.h b/security/trousers/files/patch-src_include_tcs__utils.h
index 4eee71c78339..ffba83a6dd6a 100644
--- a/security/trousers/files/patch-src_include_tcs__utils.h
+++ b/security/trousers/files/patch-src_include_tcs__utils.h
@@ -1,4 +1,4 @@
---- src/include/tcs_utils.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/tcs_utils.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/tcs_utils.h
@@ -18,6 +18,20 @@
#include "tcs_tsp.h"
diff --git a/security/trousers/files/patch-src_include_tcsd.h b/security/trousers/files/patch-src_include_tcsd.h
index 6d5943f0a5ce..3395e2178126 100644
--- a/security/trousers/files/patch-src_include_tcsd.h
+++ b/security/trousers/files/patch-src_include_tcsd.h
@@ -1,4 +1,4 @@
---- src/include/tcsd.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/tcsd.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/tcsd.h
@@ -53,14 +53,22 @@ struct tcsd_config
#define TCSD_DEFAULT_CONFIG_FILE ETC_PREFIX "/tcsd.conf"
diff --git a/security/trousers/files/patch-src_include_tcsd__ops.h b/security/trousers/files/patch-src_include_tcsd__ops.h
index 72bc79e976dd..9e8f4c6b6696 100644
--- a/security/trousers/files/patch-src_include_tcsd__ops.h
+++ b/security/trousers/files/patch-src_include_tcsd__ops.h
@@ -1,4 +1,4 @@
---- src/include/tcsd_ops.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/tcsd_ops.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/tcsd_ops.h
@@ -123,7 +123,7 @@
diff --git a/security/trousers/files/patch-src_include_threads.h b/security/trousers/files/patch-src_include_threads.h
index feeb1b0e8795..2e368e84a6d8 100644
--- a/security/trousers/files/patch-src_include_threads.h
+++ b/security/trousers/files/patch-src_include_threads.h
@@ -1,4 +1,4 @@
---- src/include/threads.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/threads.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/threads.h
@@ -31,7 +31,7 @@
#define COND_SIGNAL(c) pthread_cond_signal(c)
diff --git a/security/trousers/files/patch-src_include_trousers__types.h b/security/trousers/files/patch-src_include_trousers__types.h
index 147d7097af9f..b7b7a01da6a8 100644
--- a/security/trousers/files/patch-src_include_trousers__types.h
+++ b/security/trousers/files/patch-src_include_trousers__types.h
@@ -1,4 +1,4 @@
---- src/include/trousers_types.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/trousers_types.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/trousers_types.h
@@ -11,6 +11,14 @@
#ifndef _TROUSERS_TYPES_H_
@@ -24,19 +24,3 @@
typedef struct tdTSS_KEY {
union {
-@@ -118,11 +126,10 @@ typedef struct tdTSS_KEY {
- BYTE *encData;
- } TSS_KEY;
-
--#if (defined (__linux) || defined (linux) || defined (SOLARIS) || defined (__GLIBC__))
--#define BSD_CONST
--#elif (defined (__OpenBSD__) || defined (__FreeBSD__))
-+#if defined (__FreeBSD__)
- #define BSD_CONST const
--#endif
--
-+#else
-+#define BSD_CONST /* */
-+#endif
-
- #endif
diff --git a/security/trousers/files/patch-src_include_tss_platform.h b/security/trousers/files/patch-src_include_tss_platform.h
index 67273bc34cc5..171df8d6fa47 100644
--- a/security/trousers/files/patch-src_include_tss_platform.h
+++ b/security/trousers/files/patch-src_include_tss_platform.h
@@ -1,4 +1,4 @@
---- src/include/tss/platform.h.orig 2016-06-20 15:21:26 UTC
+--- src/include/tss/platform.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/tss/platform.h
@@ -15,7 +15,7 @@ There are platform dependent and general
#if !defined(WIN32)
diff --git a/security/trousers/files/patch-src_tcs_Makefile.am b/security/trousers/files/patch-src_tcs_Makefile.am
index 637037d3a9f3..c1a61ba9474f 100644
--- a/security/trousers/files/patch-src_tcs_Makefile.am
+++ b/security/trousers/files/patch-src_tcs_Makefile.am
@@ -1,4 +1,4 @@
---- src/tcs/Makefile.am.orig 2014-04-24 18:05:44 UTC
+--- src/tcs/Makefile.am.orig 2014-07-23 19:42:44 UTC
+++ src/tcs/Makefile.am
@@ -1,8 +1,7 @@
-noinst_LIBRARIES=libtcs.a
diff --git a/security/trousers/files/patch-src_tcs_ps_ps__utils.c b/security/trousers/files/patch-src_tcs_ps_ps__utils.c
deleted file mode 100644
index 679a2d8c60af..000000000000
--- a/security/trousers/files/patch-src_tcs_ps_ps__utils.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- src/tcs/ps/ps_utils.c.orig 2016-06-20 15:21:26 UTC
-+++ src/tcs/ps/ps_utils.c
-@@ -16,10 +16,18 @@
- #if defined(HAVE_BYTEORDER_H)
- #include <sys/byteorder.h>
- #elif defined(HTOLE_DEFINED)
-+#if defined(HAVE_ENDIAN_H)
- #include <endian.h>
- #define LE_16 htole16
- #define LE_32 htole32
- #define LE_64 htole64
-+#endif
-+#if defined(HAVE_SYS_ENDIAN_H)
-+#include <sys/endian.h>
-+#define LE_16 htole16
-+#define LE_32 htole32
-+#define LE_64 htole64
-+#endif
- #else
- #define LE_16(x) (x)
- #define LE_32(x) (x)
-@@ -42,11 +50,7 @@
- struct key_disk_cache *key_disk_cache_head = NULL;
-
-
--#ifdef SOLARIS
- TSS_RESULT
--#else
--inline TSS_RESULT
--#endif
- read_data(int fd, void *data, UINT32 size)
- {
- int rc;
-@@ -64,11 +68,7 @@ read_data(int fd, void *data, UINT32 siz
- }
-
-
--#ifdef SOLARIS
- TSS_RESULT
--#else
--inline TSS_RESULT
--#endif
- write_data(int fd, void *data, UINT32 size)
- {
- int rc;
diff --git a/security/trousers/files/patch-src_tcs_ps_tcsps.c b/security/trousers/files/patch-src_tcs_ps_tcsps.c
index 3b3e96224e97..272906d63519 100644
--- a/security/trousers/files/patch-src_tcs_ps_tcsps.c
+++ b/security/trousers/files/patch-src_tcs_ps_tcsps.c
@@ -1,6 +1,6 @@
---- src/tcs/ps/tcsps.c.orig 2016-06-20 15:21:26 UTC
+--- src/tcs/ps/tcsps.c.orig 2016-11-19 03:09:49 UTC
+++ src/tcs/ps/tcsps.c
-@@ -24,6 +24,11 @@
+@@ -30,6 +30,11 @@
#define LE_16 htole16
#define LE_32 htole32
#define LE_64 htole64
@@ -12,7 +12,7 @@
#else
#define LE_16(x) (x)
#define LE_32(x) (x)
-@@ -33,6 +38,26 @@
+@@ -39,6 +44,26 @@
#include <fcntl.h>
#include <limits.h>
@@ -39,7 +39,7 @@
#include "trousers/tss.h"
#include "trousers_types.h"
#include "tcsps.h"
-@@ -43,6 +68,25 @@
+@@ -49,6 +74,25 @@
#include "tcsd_wrap.h"
#include "tcsd.h"
diff --git a/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c b/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c
index d37d36ba5ef2..12e44b669aab 100644
--- a/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c
+++ b/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c
@@ -1,4 +1,4 @@
---- src/tcs/rpc/tcstp/rpc.c.orig 2016-06-20 15:21:26 UTC
+--- src/tcs/rpc/tcstp/rpc.c.orig 2016-11-19 03:09:49 UTC
+++ src/tcs/rpc/tcstp/rpc.c
@@ -16,6 +16,7 @@
#if (defined (__OpenBSD__) || defined (__FreeBSD__))
diff --git a/security/trousers/files/patch-src_tcs_tcs__aik.c b/security/trousers/files/patch-src_tcs_tcs__aik.c
index c4e4113c72b7..d0705e411497 100644
--- a/security/trousers/files/patch-src_tcs_tcs__aik.c
+++ b/security/trousers/files/patch-src_tcs_tcs__aik.c
@@ -1,4 +1,4 @@
---- src/tcs/tcs_aik.c.orig 2016-06-20 15:21:26 UTC
+--- src/tcs/tcs_aik.c.orig 2016-11-19 03:09:49 UTC
+++ src/tcs/tcs_aik.c
@@ -66,7 +66,7 @@ UnloadBlob_SYMMETRIC_KEY(UINT64 *offset,
UnloadBlob_UINT16(offset, &key->size, blob);
diff --git a/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c b/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c
index ef5f296530e3..4f3d82891cfd 100644
--- a/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c
+++ b/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c
@@ -1,4 +1,4 @@
---- src/tcs/tcs_auth_mgr.c.orig 2016-06-20 15:21:26 UTC
+--- src/tcs/tcs_auth_mgr.c.orig 2016-11-19 03:09:49 UTC
+++ src/tcs/tcs_auth_mgr.c
@@ -108,7 +108,7 @@ void
auth_mgr_swap_in()
diff --git a/security/trousers/files/patch-src_tcsd_Makefile.am b/security/trousers/files/patch-src_tcsd_Makefile.am
index eb41644dabf3..2883b2ee75be 100644
--- a/security/trousers/files/patch-src_tcsd_Makefile.am
+++ b/security/trousers/files/patch-src_tcsd_Makefile.am
@@ -1,6 +1,6 @@
---- src/tcsd/Makefile.am.orig 2014-04-24 18:05:44 UTC
+--- src/tcsd/Makefile.am.orig 2016-09-01 02:44:20 UTC
+++ src/tcsd/Makefile.am
-@@ -1,11 +1,17 @@
+@@ -1,10 +1,15 @@
-sbin_PROGRAMS=tcsd
+sbin_PROGRAMS=tcsd tcsd_emu
@@ -8,14 +8,12 @@
-tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread @CRYPTOLIB@
+tcsd_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE -I@OPENSSL_INCLUDE_DIR@
+tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@
- tcsd_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now
-
+ tcsd_LDFLAGS=@TCSD_LDFLAGS@
tcsd_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c
+tcsd_emu_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE -I@OPENSSL_INCLUDE_DIR@
+tcsd_emu_LDADD=${top_builddir}/src/tcs/libtcs_emu.a -ltddl -L${LOCALBASE}/lib/tddl_emu -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@
-+tcsd_emu_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now -Wl,-rpath=${LOCALBASE}/lib/tddl_emu:${LOCALBASE}/lib
-+
++tcsd_emu_LDFLAGS=@TCSD_LDFLAGS@ -Wl,-rpath=${LOCALBASE}/lib/tddl_emu:${LOCALBASE}/lib
+tcsd_emu_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c
+
if TSS_BUILD_PS
diff --git a/security/trousers/files/patch-src_tcsd_svrside.c b/security/trousers/files/patch-src_tcsd_svrside.c
index e7248c692afa..fddcf33ad00d 100644
--- a/security/trousers/files/patch-src_tcsd_svrside.c
+++ b/security/trousers/files/patch-src_tcsd_svrside.c
@@ -1,4 +1,4 @@
---- src/tcsd/svrside.c.orig 2016-06-20 15:21:26 UTC
+--- src/tcsd/svrside.c.orig 2016-11-19 03:09:49 UTC
+++ src/tcsd/svrside.c
@@ -92,12 +92,19 @@ tcsd_signal_term(int signal)
term = 1;
diff --git a/security/trousers/files/patch-src_tddl_Makefile.am b/security/trousers/files/patch-src_tddl_Makefile.am
index 639175af6f47..915f8cc09ca8 100644
--- a/security/trousers/files/patch-src_tddl_Makefile.am
+++ b/security/trousers/files/patch-src_tddl_Makefile.am
@@ -1,4 +1,4 @@
---- src/tddl/Makefile.am.orig 2014-04-24 18:05:44 UTC
+--- src/tddl/Makefile.am.orig 2014-07-23 19:42:44 UTC
+++ src/tddl/Makefile.am
@@ -1,4 +1,11 @@
+libdir=@libdir@/tddl
diff --git a/security/trousers/files/patch-src_trspi_Makefile.am b/security/trousers/files/patch-src_trspi_Makefile.am
index 439a229f7d3c..3fbe4f65bb00 100644
--- a/security/trousers/files/patch-src_trspi_Makefile.am
+++ b/security/trousers/files/patch-src_trspi_Makefile.am
@@ -1,4 +1,4 @@
---- src/trspi/Makefile.am.orig 2014-04-24 18:05:44 UTC
+--- src/trspi/Makefile.am.orig 2014-07-23 19:42:44 UTC
+++ src/trspi/Makefile.am
@@ -1,7 +1,8 @@
noinst_LTLIBRARIES=libtrousers.la
diff --git a/security/trousers/files/patch-src_tspi_Makefile.am b/security/trousers/files/patch-src_tspi_Makefile.am
index 658a5f6b04c5..81e45c8e7ea4 100644
--- a/security/trousers/files/patch-src_tspi_Makefile.am
+++ b/security/trousers/files/patch-src_tspi_Makefile.am
@@ -1,4 +1,4 @@
---- src/tspi/Makefile.am.orig 2014-04-24 18:05:44 UTC
+--- src/tspi/Makefile.am.orig 2014-07-23 19:42:44 UTC
+++ src/tspi/Makefile.am
@@ -17,9 +17,9 @@ libtspi_la_LIBADD=${top_builddir}/src/tr
# 5. If any interfaces have been added since the last public release, then increment age.
diff --git a/security/trousers/files/patch-src_tspi_ps_ps__utils.c b/security/trousers/files/patch-src_tspi_ps_ps__utils.c
deleted file mode 100644
index 1c83180cf7bc..000000000000
--- a/security/trousers/files/patch-src_tspi_ps_ps__utils.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/tspi/ps/ps_utils.c.orig 2016-06-20 15:21:26 UTC
-+++ src/tspi/ps/ps_utils.c
-@@ -22,7 +22,7 @@
- #include "tspps.h"
- #include "tsplog.h"
-
--inline TSS_RESULT
-+TSS_RESULT
- read_data(int fd, void *data, UINT32 size)
- {
- int rc;
-@@ -39,7 +39,7 @@ read_data(int fd, void *data, UINT32 siz
- return TSS_SUCCESS;
- }
-
--inline TSS_RESULT
-+TSS_RESULT
- write_data(int fd, void *data, UINT32 size)
- {
- int rc;
diff --git a/security/trousers/files/patch-src_tspi_ps_tspps.c b/security/trousers/files/patch-src_tspi_ps_tspps.c
index 48f55a0eae7b..cb310327ee1a 100644
--- a/security/trousers/files/patch-src_tspi_ps_tspps.c
+++ b/security/trousers/files/patch-src_tspi_ps_tspps.c
@@ -1,6 +1,6 @@
---- src/tspi/ps/tspps.c.orig 2016-06-20 15:21:26 UTC
+--- src/tspi/ps/tspps.c.orig 2016-11-19 03:09:49 UTC
+++ src/tspi/ps/tspps.c
-@@ -29,6 +29,11 @@
+@@ -35,6 +35,11 @@
#define LE_16 htole16
#define LE_32 htole32
#define LE_64 htole64
@@ -12,7 +12,7 @@
#else
#define LE_16(x) (x)
#define LE_32(x) (x)
-@@ -43,9 +48,13 @@
+@@ -49,9 +54,13 @@
#include "tspps.h"
#include "tsplog.h"
@@ -26,7 +26,7 @@
static MUTEX_DECLARE_INIT(user_ps_path);
#endif
static struct flock fl;
-@@ -60,9 +69,7 @@ get_user_ps_path(char **file)
+@@ -66,9 +75,7 @@ get_user_ps_path(char **file)
TSS_RESULT result;
char *file_name = NULL, *home_dir = NULL;
struct passwd *pwp;
@@ -36,7 +36,7 @@
struct stat stat_buf;
char buf[PASSWD_BUFSIZE];
uid_t euid;
-@@ -72,10 +79,6 @@ get_user_ps_path(char **file)
+@@ -78,10 +85,6 @@ get_user_ps_path(char **file)
*file = strdup(file_name);
return (*file) ? TSS_SUCCESS : TSPERR(TSS_E_OUTOFMEMORY);
}
@@ -47,7 +47,7 @@
euid = geteuid();
#if defined (SOLARIS)
-@@ -88,32 +91,14 @@ get_user_ps_path(char **file)
+@@ -94,32 +97,14 @@ get_user_ps_path(char **file)
*/
rc = snprintf(buf, sizeof (buf), "%s/%d", TSS_USER_PS_DIR, euid);
#else
diff --git a/security/trousers/files/patch-src_tspi_rpc_hosttable.c b/security/trousers/files/patch-src_tspi_rpc_hosttable.c
index 0acd9ec1a845..23d8c10488d6 100644
--- a/security/trousers/files/patch-src_tspi_rpc_hosttable.c
+++ b/security/trousers/files/patch-src_tspi_rpc_hosttable.c
@@ -1,4 +1,4 @@
---- src/tspi/rpc/hosttable.c.orig 2016-06-20 15:21:26 UTC
+--- src/tspi/rpc/hosttable.c.orig 2016-11-19 03:09:49 UTC
+++ src/tspi/rpc/hosttable.c
@@ -51,6 +51,8 @@ host_table_final()
{
@@ -9,16 +9,16 @@
MUTEX_LOCK(ht->lock);
for (hte = ht->entries; hte; hte = next) {
-@@ -84,6 +86,8 @@ __tspi_add_table_entry(TSS_HCONTEXT tspC
- {
- struct host_table_entry *entry, *tmp;
+@@ -85,6 +87,8 @@ __tspi_add_table_entry(TSS_HCONTEXT tspC
+ struct host_table_entry *entry, *tmp;
+ int hostlen;
-+ if( ht == NULL ) return TSPERR(TSS_E_OUTOFMEMORY);
++ if( ht == NULL ) return TSPERR(TSS_E_OUTOFMEMORY);
+
- entry = calloc(1, sizeof(struct host_table_entry));
- if (entry == NULL) {
- LogError("malloc of %zd bytes failed.", sizeof(struct host_table_entry));
-@@ -134,6 +138,8 @@ remove_table_entry(TSS_HCONTEXT tspConte
+ entry = calloc(1, sizeof(struct host_table_entry));
+ if (entry == NULL) {
+ LogError("malloc of %zd bytes failed.", sizeof(struct host_table_entry));
+@@ -144,6 +148,8 @@ remove_table_entry(TSS_HCONTEXT tspConte
{
struct host_table_entry *hte, *prev = NULL;
@@ -27,7 +27,7 @@
MUTEX_LOCK(ht->lock);
for (hte = ht->entries; hte; prev = hte, hte = hte->next) {
-@@ -158,6 +164,8 @@ get_table_entry(TSS_HCONTEXT tspContext)
+@@ -168,6 +174,8 @@ get_table_entry(TSS_HCONTEXT tspContext)
{
struct host_table_entry *index = NULL;
diff --git a/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c b/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c
index b26709a8b271..052876605c5a 100644
--- a/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c
+++ b/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c
@@ -1,4 +1,4 @@
---- src/tspi/rpc/tcstp/rpc.c.orig 2016-06-20 15:21:26 UTC
+--- src/tspi/rpc/tcstp/rpc.c.orig 2016-11-19 03:09:49 UTC
+++ src/tspi/rpc/tcstp/rpc.c
@@ -304,7 +304,7 @@ recv_from_socket(int sock, void *buffer,
errno = 0;
diff --git a/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c b/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c
index aa975ed99421..031daa5c6f08 100644
--- a/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c
+++ b/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c
@@ -1,15 +1,14 @@
---- src/tspi/tsp_tcsi_param.c.orig 2016-06-20 15:21:26 UTC
+--- src/tspi/tsp_tcsi_param.c.orig 2016-11-19 03:09:49 UTC
+++ src/tspi/tsp_tcsi_param.c
-@@ -11,7 +11,12 @@
- #include <stdlib.h>
- #include <string.h>
+@@ -13,7 +13,10 @@
#include <stdio.h>
-+#if !defined(__FreeBSD__)
- #include <bits/local_lim.h>
-+#else
+
+
+-#ifndef __APPLE__
++#ifdef __FreeBSD__
+#include <sys/param.h>
-+#define HOST_NAME_MAX MAXHOSTNAMELEN
-+#endif
- #include "trousers/tss.h"
- #include "trousers/trousers.h"
- #include "trousers_types.h"
++#define HOST_NAME_MAX MAXHOSTNAMELEN
++#elif !defined(__APPLE__)
+ #include <limits.h>
+ #else
+ #define HOST_NAME_MAX 64