diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-10-13 04:01:04 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-10-13 04:01:21 +0200 |
commit | 380d0edb6239834993e5ca75b27343e07f847fd4 (patch) | |
tree | 671de2ce713b78f09290cdd5dc83f54db75a620b /tests | |
parent | 93c21c22152b1dbfc3929eabd735c4e6c42b9ef2 (diff) | |
download | gnutls-380d0edb6239834993e5ca75b27343e07f847fd4.tar.gz |
tests: enhanced sec-params check to account for future sec-param
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sec-params.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/sec-params.c b/tests/sec-params.c index a578b0c476..69c39aa344 100644 --- a/tests/sec-params.c +++ b/tests/sec-params.c @@ -61,7 +61,7 @@ gnutls_sec_param_t p; } p = gnutls_pk_bits_to_sec_param(GNUTLS_PK_EC, 384); - if (p != GNUTLS_SEC_PARAM_HIGH) { + if (p != GNUTLS_SEC_PARAM_ULTRA) { fprintf(stderr, "%d: error in sec param, p:%u\n", __LINE__, (unsigned)p); return 1; } @@ -82,6 +82,12 @@ gnutls_sec_param_t p; return 1; } + p = gnutls_pk_bits_to_sec_param(GNUTLS_PK_RSA, 3072); + if (p != GNUTLS_SEC_PARAM_HIGH) { + fprintf(stderr, "%d: error in sec param, p:%u\n", __LINE__, (unsigned)p); + return 1; + } + p = gnutls_pk_bits_to_sec_param(GNUTLS_PK_DH, 1024); #ifdef ENABLE_FIPS140 if (p != GNUTLS_SEC_PARAM_LEGACY) { |