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:
parent
2cedd59384
commit
629b523044
BIN
ssl/test/qualityssl.com.der
Normal file
BIN
ssl/test/qualityssl.com.der
Normal file
Binary file not shown.
@ -648,6 +648,24 @@ static int cert_tests(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssl_ctx_free(ssl_ctx);
|
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 */
|
res = 0; /* all ok */
|
||||||
printf("All Certificate tests passed\n");
|
printf("All Certificate tests passed\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user