From 474c2ce05f2f5e0465f695901ae930c172ba8611 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 19 Dec 2013 16:40:30 +0100
Subject: [PATCH] Fixed dependencies for some tests
---
tests/suites/test_suite_ecp.data | 2 ++
tests/suites/test_suite_pk.data | 6 +++---
tests/suites/test_suite_x509parse.data | 3 +++
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/suites/test_suite_ecp.data b/tests/suites/test_suite_ecp.data
index dcf8ed6ec..8cce3e62e 100644
--- a/tests/suites/test_suite_ecp.data
+++ b/tests/suites/test_suite_ecp.data
@@ -160,9 +160,11 @@ ECP small check pubkey #10
ecp_small_check_pub:10:25:1:POLARSSL_ERR_ECP_INVALID_KEY
ECP check pubkey Montgomery #1 (too big)
+depends_on:POLARSSL_ECP_DP_M255_ENABLED
ecp_check_pub_mx:POLARSSL_ECP_DP_M255:"010000000000000000000000000000000000000000000000000000000000000000":POLARSSL_ERR_ECP_INVALID_KEY
ECP check pubkey Montgomery #2 (biggest)
+depends_on:POLARSSL_ECP_DP_M255_ENABLED
ecp_check_pub_mx:POLARSSL_ECP_DP_M255:"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF":0
ECP write binary #0 (zero, bad format)
diff --git a/tests/suites/test_suite_pk.data b/tests/suites/test_suite_pk.data
index e4f3d95c2..e27edbdb9 100644
--- a/tests/suites/test_suite_pk.data
+++ b/tests/suites/test_suite_pk.data
@@ -3,15 +3,15 @@ depends_on:POLARSSL_RSA_C
pk_utils:POLARSSL_PK_RSA:512:64:"RSA"
PK utils: ECKEY
-depends_on:POLARSSL_ECP_C
+depends_on:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
pk_utils:POLARSSL_PK_ECKEY:192:24:"EC"
PK utils: ECKEY_DH
-depends_on:POLARSSL_ECP_C
+depends_on:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
pk_utils:POLARSSL_PK_ECKEY_DH:192:24:"EC_DH"
PK utils: ECDSA
-depends_on:POLARSSL_ECDSA_C
+depends_on:POLARSSL_ECDSA_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
pk_utils:POLARSSL_PK_ECDSA:192:24:"ECDSA"
RSA verify test vector #1 (good)
diff --git a/tests/suites/test_suite_x509parse.data b/tests/suites/test_suite_x509parse.data
index 3acc790ad..f9a536681 100644
--- a/tests/suites/test_suite_x509parse.data
+++ b/tests/suites/test_suite_x509parse.data
@@ -724,10 +724,13 @@ X509 CRL ASN1 (TBSCertList, no entries)
x509parse_crl:"30463031020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030300d06092a864886f70d01010e050003020001":"CRL version \: 1\nissuer name \: CN=ABCD\nthis update \: 2009-01-01 00\:00\:00\nnext update \: 0000-00-00 00\:00\:00\nRevoked certificates\:\nsigned using \: RSA with SHA-224\n":0
X509 CRT parse path #2 (one cert)
+depends_on:POLARSSL_SHA1_C:POLARSSL_RSA_C
x509_crt_parse_path:"data_files/dir1":0:1
X509 CRT parse path #3 (two certs)
+depends_on:POLARSSL_SHA1_C:POLARSSL_RSA_C:POLARSSL_SHA256_C:POLARSSL_ECDSA_C:POLARSSL_ECP_DP_SECP384R1_ENABLED
x509_crt_parse_path:"data_files/dir2":0:2
X509 CRT parse path #4 (two certs, one non-cert)
+depends_on:POLARSSL_SHA1_C:POLARSSL_RSA_C:POLARSSL_SHA256_C:POLARSSL_ECDSA_C:POLARSSL_ECP_DP_SECP384R1_ENABLED
x509_crt_parse_path:"data_files/dir3":1:2