We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CA
1 parent d7e84ac commit 91de865Copy full SHA for 91de865
1 file changed
src/hx/libs/ssl/SSL.cpp
@@ -499,19 +499,8 @@ void _hx_ssl_conf_close( Dynamic hconf ) {
499
500
void _hx_ssl_conf_set_ca( Dynamic hconf, Dynamic hcert ) {
501
sslconf *conf = val_conf(hconf);
502
-#if defined(IPHONE) || defined(APPLETV)
503
sslcert *cert = val_cert(hcert);
504
- // make sure the ca chain is set even if null
505
mbedtls_ssl_conf_ca_chain(conf->c, cert ? cert->c : NULL, NULL);
506
-
507
-#else
508
- if( hconf.mPtr ){
509
- sslcert *cert = val_cert(hcert);
510
- mbedtls_ssl_conf_ca_chain( conf->c, cert->c, NULL );
511
- }else{
512
- mbedtls_ssl_conf_ca_chain( conf->c, NULL, NULL );
513
- }
514
-#endif
515
}
516
517
void _hx_ssl_conf_set_verify( Dynamic hconf, int mode ) {
0 commit comments