[Cryptech-Commits] [user/sra/openssl-engine] branch master updated: Add pkcs11-spy support, remove cryptech_probe invocation.

git at cryptech.is git at cryptech.is
Thu May 4 21:42:31 UTC 2017


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

sra at hactrn.net pushed a commit to branch master
in repository user/sra/openssl-engine.

The following commit(s) were added to refs/heads/master by this push:
     new ae322af  Add pkcs11-spy support, remove cryptech_probe invocation.
ae322af is described below

commit ae322afdec65e7d8c180fa761c0bbb3c682ef5c0
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu May 4 17:41:44 2017 -0400

    Add pkcs11-spy support, remove cryptech_probe invocation.
---
 environment.sh | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/environment.sh b/environment.sh
index a842d81..f3f5c75 100644
--- a/environment.sh
+++ b/environment.sh
@@ -14,9 +14,18 @@ export PKCS11_PIN=fnord
 
 export OPENSSL_CONF=`pwd`/openssl.conf
 
-# If we don't already have the cryptech UART environment variables set, do that now.
-
-if test "X${CRYPTECH_RPC_CLIENT_SERIAL_DEVICE}" = "X"
+# If USE_PKCS11SPY is set, it should be an absolute path to the OpenSC
+# pkcs11-spy.so debugging tool, which we will splice between OpenSSL
+# and the real PKCS #11 library.  This is not something you would want
+# to do in production, but can be useful when testing.  See
+#
+#   https://github.com/OpenSC/OpenSC/wiki/Using-OpenSC
+#
+# By default, pkcs11-spy writes to stderr, but you can override this
+# by setting PKCS11SPY_OUTPUT.
+
+if test "X$USE_PKCS11SPY" != "X" && test -r "$USE_PKCS11SPY"
 then
-    eval `cryptech_probe`
+    export PKCS11SPY="$PKCS11_MODULE"
+    export PKCS11_MODULE="$USE_PKCS11SPY"
 fi

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


More information about the Commits mailing list