Skip to content

Commit 91de865

Browse files
committed
Simplify CA chain setup
1 parent d7e84ac commit 91de865

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/hx/libs/ssl/SSL.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -499,19 +499,8 @@ void _hx_ssl_conf_close( Dynamic hconf ) {
499499

500500
void _hx_ssl_conf_set_ca( Dynamic hconf, Dynamic hcert ) {
501501
sslconf *conf = val_conf(hconf);
502-
#if defined(IPHONE) || defined(APPLETV)
503502
sslcert *cert = val_cert(hcert);
504-
// make sure the ca chain is set even if null
505503
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
515504
}
516505

517506
void _hx_ssl_conf_set_verify( Dynamic hconf, int mode ) {

0 commit comments

Comments
 (0)