diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-05-25 20:04:59 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-05-25 20:04:59 +0200 |
commit | fa18b3573dcedddb1857a3e9ec72d0002ef3de20 (patch) | |
tree | f35faca060ad8f5af8a3b8f666182b385b6344dd /tests | |
parent | 0deeccea4f87796474d75c6ce0f617aa864c438c (diff) | |
download | gnutls-fa18b3573dcedddb1857a3e9ec72d0002ef3de20.tar.gz |
Added elliptic curves chain certificate.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/chainverify.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/chainverify.c b/tests/chainverify.c index 8cd5244cbb..65c4bcf25b 100644 --- a/tests/chainverify.c +++ b/tests/chainverify.c @@ -675,6 +675,43 @@ static const char *cacertrsamd5[] = { NULL }; +/* Test Certicom cert with ECC-SHA256 signature. */ +static const char *ecc_cert[] = { + /* chain[0] (ECC cert) */ +"-----BEGIN CERTIFICATE-----\n" +"MIICbzCCAhSgAwIBAgIIZLkW6EZO5PQwCgYIKoZIzj0EAwIwgZsxFDASBgNVBAsT\n" +"C1NBTVBMRSBPTkxZMRcwFQYDVQQKEw5DZXJ0aWNvbSBDb3JwLjEQMA4GA1UEBxMH\n" +"VG9yb250bzEQMA4GA1UEBBMHT250YXJpbzE5MDcGA1UEAxMwdGxzLnNlY2cub3Jn\n" +"IEVDQyBzZWNwMjU2cjEgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MQswCQYDVQQGEwJD\n" +"QTAeFw0wOTA1MDcwMDAwMDBaFw0xNTA1MDEwMDAwMDBaMIGYMRQwEgYDVQQLEwtT\n" +"QU1QTEUgT05MWTEXMBUGA1UEChMOQ2VydGljb20gQ29ycC4xEDAOBgNVBAcTB1Rv\n" +"cm9udG8xEDAOBgNVBAgTB09udGFyaW8xNjA0BgNVBAMTLXRscy5zZWNnLm9yZyBF\n" +"Q0Mgc2VjcDI1NnIxI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6skdhn0sQp\n" +"uJwVwG99T0VZY8v7q6NMIWrpYQFmOxQyVVNlxWWyr2cLYJTyqx/zuDejIzAhMA4G\n" +"A1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MAkGByqGSM49BAEDRwAwRAIg\n" +"W2KAhfAKWFoh47A7muk8K10cGqOKRtb9lCgdOltj19oCIG+ZJQv5m+RnL4X2Ti0y\n" +"ZJzOOuzBQVGiUFwZdn1dLv4X\n" +"-----END CERTIFICATE-----\n", + NULL +}; + static struct { const char *name; @@ -744,6 +781,8 @@ static struct GNUTLS_CERT_SIGNER_NOT_FOUND | GNUTLS_CERT_INVALID }, { "cacertrsamd5 short-cut ok", cacertrsamd5, &cacertrsamd5[1], 0, 0 }, + { "ecc cert ok", ecc_cert, &ecc_cert[1], + 0, 0 }, { NULL, NULL, NULL, 0, 0} }; /* *INDENT-ON* */ |