[Cryptech-Commits] [sw/pkcs11] branch master updated: libhal's RPC MUX daemon doesn't work with Apple's lame sockets implementation.

git at cryptech.is git at cryptech.is
Fri Jul 1 01:17:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/pkcs11.

The following commit(s) were added to refs/heads/master by this push:
       new  0f9af66   libhal's RPC MUX daemon doesn't work with Apple's lame sockets implementation.
0f9af66 is described below

commit 0f9af660f4aa89bcf94c1afe0302de6c7b3fa9b6
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu Jun 30 19:42:28 2016 -0400

    libhal's RPC MUX daemon doesn't work with Apple's lame sockets implementation.
    
    Apple, for reasons unknown, chose not to implement SOCK_SEQPACKET.
    This works on Linux and *BSD, and libhal's MUX daemon uses it to avoid
    having to add its own framing protocol on top of SOCK_STREAM.  So, at
    least for now, Mac OS X will not support the multiplex daemon, only
    direct connection to the HSM by a single client.
---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 85a7552..477653e 100644
--- a/Makefile
+++ b/Makefile
@@ -83,9 +83,11 @@ LIBS	:= ${LIBHAL_BLD}/libhal.a ${LIBTFM_BLD}/libtfm.a
 ifeq "${UNAME}" "Darwin"
   SONAME  := libpkcs11.dylib
   SOFLAGS := -dynamiclib
+  LIBHAL_TARGET := serial
 else
   SONAME  := libpkcs11.so
   SOFLAGS := -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack -Wl,-soname,${SONAME}.0
+  LIBHAL_TARGET := daemon
 endif
 
 ifeq "${ENABLE_FOOTNOTE_WARNINGS}" "no"
@@ -132,7 +134,7 @@ ${LIBTFM_BLD}/libtfm.a: .FORCE
 	${MAKE} -C libtfm
 
 ${LIBHAL_BLD}/libhal.a: .FORCE ${LIBTFM_BLD}/libtfm.a
-	${MAKE} -C libhal daemon
+	${MAKE} -C libhal ${LIBHAL_TARGET}
 
 ${SQLITE3_BLD}/libsqlite3.a: .FORCE
 	${MAKE} -C sqlite3

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list