[Midnightbsd-cvs] mports [23015] trunk/security/trousers/files: trousers 0.3.14
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Feb 17 17:33:01 EST 2018
Revision: 23015
http://svnweb.midnightbsd.org/mports/?rev=23015
Author: laffer1
Date: 2018-02-17 17:33:00 -0500 (Sat, 17 Feb 2018)
Log Message:
-----------
trousers 0.3.14
Modified Paths:
--------------
trunk/security/trousers/Makefile
trunk/security/trousers/distinfo
trunk/security/trousers/files/patch-dist_Makefile.am
trunk/security/trousers/files/patch-dist_tcsd.conf.in
trunk/security/trousers/files/patch-src_include_biosem.h
trunk/security/trousers/files/patch-src_include_linux_tpm.h
trunk/security/trousers/files/patch-src_include_tcs__tsp.h
trunk/security/trousers/files/patch-src_include_tcs__utils.h
trunk/security/trousers/files/patch-src_include_tcsd.h
trunk/security/trousers/files/patch-src_include_tcsd__ops.h
trunk/security/trousers/files/patch-src_include_threads.h
trunk/security/trousers/files/patch-src_include_trousers__types.h
trunk/security/trousers/files/patch-src_include_tss_platform.h
trunk/security/trousers/files/patch-src_tcs_Makefile.am
trunk/security/trousers/files/patch-src_tcs_ps_tcsps.c
trunk/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c
trunk/security/trousers/files/patch-src_tcs_tcs__aik.c
trunk/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c
trunk/security/trousers/files/patch-src_tcsd_Makefile.am
trunk/security/trousers/files/patch-src_tcsd_svrside.c
trunk/security/trousers/files/patch-src_tddl_Makefile.am
trunk/security/trousers/files/patch-src_trspi_Makefile.am
trunk/security/trousers/files/patch-src_tspi_Makefile.am
trunk/security/trousers/files/patch-src_tspi_ps_tspps.c
trunk/security/trousers/files/patch-src_tspi_rpc_hosttable.c
trunk/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c
trunk/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c
trunk/security/trousers/files/pkg-message.in
Added Paths:
-----------
trunk/security/trousers/files/patch-configure.ac
trunk/security/trousers/files/patch-src_trspi_crypto_openssl_rsa.c
Removed Paths:
-------------
trunk/security/trousers/files/patch-configure.in
trunk/security/trousers/files/patch-src_tcs_ps_ps__utils.c
trunk/security/trousers/files/patch-src_tspi_ps_ps__utils.c
Property Changed:
----------------
trunk/security/trousers/Makefile
Modified: trunk/security/trousers/Makefile
===================================================================
--- trunk/security/trousers/Makefile 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/Makefile 2018-02-17 22:33:00 UTC (rev 23015)
@@ -1,22 +1,20 @@
# $MidnightBSD$
PORTNAME= trousers
-PORTVERSION= 0.3.13
+PORTVERSION= 0.3.14
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= ports at MidnightBSD.org
-COMMENT= The open-source TCG Software Stack
+COMMENT= Open-source TCG Software Stack
-LICENSE= CPL
-LICENSE_NAME= Common Public License
-LICENSE_FILE= ${WRKSRC}/LICENSE
-LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+LICENSE= bsd3
BUILD_DEPENDS= tpm-emulator>=0.7.4_1:${PORTSDIR}/emulators/tpm-emulator
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= dos2unix alias autoreconf gmake iconv libtool pkgconfig
+NO_WRKSUBDIR= yes
DOS2UNIX_GLOB= *.h *.c
USE_OPENSSL= YES
USE_LDCONFIG= YES
Property changes on: trunk/security/trousers/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/security/trousers/distinfo
===================================================================
--- trunk/security/trousers/distinfo 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/distinfo 2018-02-17 22:33:00 UTC (rev 23015)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1463562404
-SHA256 (trousers-0.3.13.tar.gz) = bb908e4a3c88a17b247a4fc8e0fff3419d8a13170fe7bdfbe0e2c5c082a276d3
-SIZE (trousers-0.3.13.tar.gz) = 1371901
+TIMESTAMP = 1518906533
+SHA256 (trousers-0.3.14.tar.gz) = ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47
+SIZE (trousers-0.3.14.tar.gz) = 1378438
Added: trunk/security/trousers/files/patch-configure.ac
===================================================================
--- trunk/security/trousers/files/patch-configure.ac (rev 0)
+++ trunk/security/trousers/files/patch-configure.ac 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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}"
Property changes on: trunk/security/trousers/files/patch-configure.ac
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Deleted: trunk/security/trousers/files/patch-configure.in
===================================================================
--- trunk/security/trousers/files/patch-configure.in 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-configure.in 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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}"
Modified: trunk/security/trousers/files/patch-dist_Makefile.am
===================================================================
--- trunk/security/trousers/files/patch-dist_Makefile.am 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-dist_Makefile.am 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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 \
Modified: trunk/security/trousers/files/patch-dist_tcsd.conf.in
===================================================================
--- trunk/security/trousers/files/patch-dist_tcsd.conf.in 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-dist_tcsd.conf.in 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Modified: trunk/security/trousers/files/patch-src_include_biosem.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_biosem.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_biosem.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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;
Modified: trunk/security/trousers/files/patch-src_include_linux_tpm.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_linux_tpm.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_linux_tpm.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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>
Modified: trunk/security/trousers/files/patch-src_include_tcs__tsp.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_tcs__tsp.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_tcs__tsp.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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 */
Modified: trunk/security/trousers/files/patch-src_include_tcs__utils.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_tcs__utils.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_tcs__utils.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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"
Modified: trunk/security/trousers/files/patch-src_include_tcsd.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_tcsd.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_tcsd.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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"
Modified: trunk/security/trousers/files/patch-src_include_tcsd__ops.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_tcsd__ops.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_tcsd__ops.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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 @@
Modified: trunk/security/trousers/files/patch-src_include_threads.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_threads.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_threads.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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)
Modified: trunk/security/trousers/files/patch-src_include_trousers__types.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_trousers__types.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_trousers__types.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Modified: trunk/security/trousers/files/patch-src_include_tss_platform.h
===================================================================
--- trunk/security/trousers/files/patch-src_include_tss_platform.h 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_include_tss_platform.h 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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)
Modified: trunk/security/trousers/files/patch-src_tcs_Makefile.am
===================================================================
--- trunk/security/trousers/files/patch-src_tcs_Makefile.am 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcs_Makefile.am 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Deleted: trunk/security/trousers/files/patch-src_tcs_ps_ps__utils.c
===================================================================
--- trunk/security/trousers/files/patch-src_tcs_ps_ps__utils.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcs_ps_ps__utils.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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;
Modified: trunk/security/trousers/files/patch-src_tcs_ps_tcsps.c
===================================================================
--- trunk/security/trousers/files/patch-src_tcs_ps_tcsps.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcs_ps_tcsps.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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"
Modified: trunk/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c
===================================================================
--- trunk/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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__))
Modified: trunk/security/trousers/files/patch-src_tcs_tcs__aik.c
===================================================================
--- trunk/security/trousers/files/patch-src_tcs_tcs__aik.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcs_tcs__aik.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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);
Modified: trunk/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c
===================================================================
--- trunk/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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()
Modified: trunk/security/trousers/files/patch-src_tcsd_Makefile.am
===================================================================
--- trunk/security/trousers/files/patch-src_tcsd_Makefile.am 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcsd_Makefile.am 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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 at OPENSSL_INCLUDE_DIR@
+tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread -L at 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 at OPENSSL_INCLUDE_DIR@
+tcsd_emu_LDADD=${top_builddir}/src/tcs/libtcs_emu.a -ltddl -L${LOCALBASE}/lib/tddl_emu -lpthread -L at 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
Modified: trunk/security/trousers/files/patch-src_tcsd_svrside.c
===================================================================
--- trunk/security/trousers/files/patch-src_tcsd_svrside.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tcsd_svrside.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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;
Modified: trunk/security/trousers/files/patch-src_tddl_Makefile.am
===================================================================
--- trunk/security/trousers/files/patch-src_tddl_Makefile.am 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tddl_Makefile.am 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Modified: trunk/security/trousers/files/patch-src_trspi_Makefile.am
===================================================================
--- trunk/security/trousers/files/patch-src_trspi_Makefile.am 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_trspi_Makefile.am 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Added: trunk/security/trousers/files/patch-src_trspi_crypto_openssl_rsa.c
===================================================================
--- trunk/security/trousers/files/patch-src_trspi_crypto_openssl_rsa.c (rev 0)
+++ trunk/security/trousers/files/patch-src_trspi_crypto_openssl_rsa.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -0,0 +1,11 @@
+--- src/trspi/crypto/openssl/rsa.c.orig 2016-11-23 12:26:19 UTC
++++ src/trspi/crypto/openssl/rsa.c
+@@ -38,7 +38,7 @@
+ #define DEBUG_print_openssl_errors()
+ #endif
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100001L
++#if OPENSSL_VERSION_NUMBER < 0x10100001L || defined(LIBRESSL_VERSION_NUMBER)
+ static int
+ RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
+ {
Property changes on: trunk/security/trousers/files/patch-src_trspi_crypto_openssl_rsa.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/security/trousers/files/patch-src_tspi_Makefile.am
===================================================================
--- trunk/security/trousers/files/patch-src_tspi_Makefile.am 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tspi_Makefile.am 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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.
Deleted: trunk/security/trousers/files/patch-src_tspi_ps_ps__utils.c
===================================================================
--- trunk/security/trousers/files/patch-src_tspi_ps_ps__utils.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tspi_ps_ps__utils.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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;
Modified: trunk/security/trousers/files/patch-src_tspi_ps_tspps.c
===================================================================
--- trunk/security/trousers/files/patch-src_tspi_ps_tspps.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tspi_ps_tspps.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Modified: trunk/security/trousers/files/patch-src_tspi_rpc_hosttable.c
===================================================================
--- trunk/security/trousers/files/patch-src_tspi_rpc_hosttable.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tspi_rpc_hosttable.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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;
Modified: trunk/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c
===================================================================
--- trunk/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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;
Modified: trunk/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c
===================================================================
--- trunk/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c 2018-02-17 22:33:00 UTC (rev 23015)
@@ -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
Modified: trunk/security/trousers/files/pkg-message.in
===================================================================
--- trunk/security/trousers/files/pkg-message.in 2018-02-17 22:28:01 UTC (rev 23014)
+++ trunk/security/trousers/files/pkg-message.in 2018-02-17 22:33:00 UTC (rev 23015)
@@ -13,4 +13,4 @@
To use TPM, add your_account to '%%GROUPS%%' group like following:
-# pw groupadd %%GROUPS%% -m your_account
+# pw groupmod %%GROUPS%% -m your_account
More information about the Midnightbsd-cvs
mailing list