mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-25 17:21:08 +00:00
- Fixed use of correct ca certificate (test_ca_cert) instead of xyssl_ca_cert
This commit is contained in:
parent
c03d9258f6
commit
0e6975b7ed
|
@ -33,15 +33,10 @@
|
||||||
#include "polarssl/certs.h"
|
#include "polarssl/certs.h"
|
||||||
#include "polarssl/x509.h"
|
#include "polarssl/x509.h"
|
||||||
|
|
||||||
#define SERVER_PORT 443
|
#define SERVER_PORT 4433
|
||||||
/*
|
|
||||||
#define SERVER_NAME "localhost"
|
#define SERVER_NAME "localhost"
|
||||||
#define GET_REQUEST "GET / HTTP/1.0\r\n\r\n"
|
#define GET_REQUEST "GET / HTTP/1.0\r\n\r\n"
|
||||||
*/
|
|
||||||
#define SERVER_NAME "polarssl.org"
|
|
||||||
#define GET_REQUEST \
|
|
||||||
"GET /hello/ HTTP/1.1\r\n" \
|
|
||||||
"Host: polarssl.org\r\n\r\n"
|
|
||||||
|
|
||||||
#define DEBUG_LEVEL 0
|
#define DEBUG_LEVEL 0
|
||||||
|
|
||||||
|
@ -83,8 +78,8 @@ int main( void )
|
||||||
* Alternatively, you may load the CA certificates from a .pem or
|
* Alternatively, you may load the CA certificates from a .pem or
|
||||||
* .crt file by calling x509parse_crtfile( &cacert, "myca.crt" ).
|
* .crt file by calling x509parse_crtfile( &cacert, "myca.crt" ).
|
||||||
*/
|
*/
|
||||||
ret = x509parse_crt( &cacert, (unsigned char *) xyssl_ca_crt,
|
ret = x509parse_crt( &cacert, (unsigned char *) test_ca_crt,
|
||||||
strlen( xyssl_ca_crt ) );
|
strlen( test_ca_crt ) );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
{
|
{
|
||||||
printf( " failed\n ! x509parse_crt returned %d\n\n", ret );
|
printf( " failed\n ! x509parse_crt returned %d\n\n", ret );
|
||||||
|
|
Loading…
Reference in a new issue