]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
testpkcs11: detect softhsm2
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 5 Jan 2015 14:01:22 +0000 (15:01 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 5 Jan 2015 14:01:22 +0000 (15:01 +0100)
tests/suite/testpkcs11

index 3fe08041eba6dbf053dee8cc98e1752ace050b12..c0a7b4634e3580367e88994993600bacf7ffe888 100755 (executable)
@@ -389,7 +389,7 @@ type=$1
 
 if test -z "$type";then
        echo "usage: $0: [pkcs15|softhsm|sc-hsm]"
-       if test -x "/usr/bin/softhsm";then
+       if test -x "/usr/bin/softhsm" || test -x "/usr/bin/softhsm2-util";then
                echo "assuming 'softhsm'"
                echo ""
                type=softhsm