summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-02-03 09:20:05 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-02-03 09:26:17 +0100
commit0a00b26b20c2999f8509c31dc5f8b6e81260e048 (patch)
tree03141b6c9fbb45062c61b0afd3d29f098f0373b2
parentc479799cb30d9c0951dd225d252b2e9de7646224 (diff)
downloadgnutls-0a00b26b20c2999f8509c31dc5f8b6e81260e048.tar.gz
tests: pkcs11-pubkey-import-ecdsa will only work under softhsmv2
-rw-r--r--tests/suite/pkcs11-pubkey-import-ecdsa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/suite/pkcs11-pubkey-import-ecdsa.c b/tests/suite/pkcs11-pubkey-import-ecdsa.c
index fb4f8ad5c8..38465c7885 100644
--- a/tests/suite/pkcs11-pubkey-import-ecdsa.c
+++ b/tests/suite/pkcs11-pubkey-import-ecdsa.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <assert.h>
#include <unistd.h>
+#include "softhsm.h"
#define CONFIG_NAME "softhsm-pubkey-import-ecdsa"
#define CONFIG CONFIG_NAME".config"
@@ -37,6 +38,10 @@
void doit(void)
{
+#ifdef SOFTHSM_V1
+ exit(77);
+#else
success("Testing ECDSA key\n");
return try(0);
+#endif
}