aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-05-10 19:56:44 -0400
committerRob Austein <sra@hactrn.net>2017-05-10 19:56:44 -0400
commitccef1b59bc6cca89474eaddf7144972926281e29 (patch)
treeacba87b2b069a2d788d256a266db203d4920924e /scripts
parent743ec40231db809d22487ee60f64d00b7b845807 (diff)
Clean up default location of PKCS #11 library.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/time-signature.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/time-signature.py b/scripts/time-signature.py
index 99ec718..732eaa4 100755
--- a/scripts/time-signature.py
+++ b/scripts/time-signature.py
@@ -7,7 +7,6 @@ Time PKCS #11 signatures.
import collections
import argparse
import datetime
-import platform
import sys
from Crypto.Hash.SHA256 import SHA256Hash as SHA256
@@ -22,11 +21,7 @@ except ImportError:
sys.path.append(dirname(dirname(abspath(sys.argv[0]))))
from cryptech.py11 import *
-
-if platform.system() == "Darwin":
- libpkcs11_default = "./libcryptech-pkcs11.dylib"
-else:
- libpkcs11_default = "./libcryptech-pkcs11.so"
+from cryptech.py11 import default_so_name as libpkcs11_default
class RSAKey(object):