1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

added the qualityssl.com.der certificate in the test harness

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@160 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich 2009-09-24 12:27:08 +00:00
parent 2cedd59384
commit 629b523044
2 changed files with 18 additions and 0 deletions

BIN
ssl/test/qualityssl.com.der Normal file

Binary file not shown.

View File

@ -648,6 +648,24 @@ static int cert_tests(void)
}
ssl_ctx_free(ssl_ctx);
if (get_file("../ssl/test/qualityssl.com.der", &buf) < 0 ||
x509_new(buf, &len, &x509_ctx))
{
printf("Cert #9\n");
res = -1;
goto bad_cert;
}
if (strcmp(x509_ctx->subject_alt_dnsnames[1], "qualityssl.com"))
{
printf("Cert #9 (2)\n");
res = -1;
goto bad_cert;
}
x509_free(x509_ctx);
free(buf);
res = 0; /* all ok */
printf("All Certificate tests passed\n");