summaryrefslogtreecommitdiffstats
path: root/test/evp_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-03-18 15:56:06 +0000
committerMatt Caswell <matt@openssl.org>2016-03-18 17:07:11 +0000
commit96bea0002b44f1f490a798d6122d6b15d1fe6b09 (patch)
tree8483f3d6eca4c15f020ec3fc3384c418d29f529f /test/evp_test.c
parent40a8e9c2effc655413e8283fb31e7cffeeb6154a (diff)
Fix no-des
Numerous fixes for no-des. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/evp_test.c')
-rw-r--r--test/evp_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index 759ec3be4a..ed03c86ce7 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -1083,6 +1083,14 @@ static int mac_test_run(struct evp_test *t)
unsigned char *mac = NULL;
size_t mac_len;
+#ifdef OPENSSL_NO_DES
+ if (strstr(mdata->alg, "DES") != NULL) {
+ /* Skip DES */
+ err = NULL;
+ goto err;
+ }
+#endif
+
err = "MAC_PKEY_CTX_ERROR";
genctx = EVP_PKEY_CTX_new_id(mdata->type, NULL);
if (!genctx)