From ccef1b59bc6cca89474eaddf7144972926281e29 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 10 May 2017 19:56:44 -0400 Subject: Clean up default location of PKCS #11 library. --- scripts/time-signature.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'scripts') 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): -- cgit v1.2.3