File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ void TLSSOCKET_HANDSHAKE_INVALID()
3030{
3131 const int https_port = 443 ;
3232 SKIP_IF_TCP_UNSUPPORTED ();
33+
34+ #if (MBED_CONF_NSAPI_DEFAULT_STACK == NANOSTACK || (MBED_CONF_NSAPI_DEFAULT_STACK == LWIP && defined(MBED_CONF_LWIP_PPP_IPV6_ENABLED)))
35+ SocketAddress address;
36+ nsapi_error_t result = NetworkInterface::get_default_instance ()->gethostbyname (" expired.badssl.com" , &address);
37+ if (result != NSAPI_ERROR_OK) {
38+ TEST_SKIP_MESSAGE (" badssl.com not supported IP6 AAA records" );
39+ }
40+ #endif
3341 TLSSocket sock;
3442 TEST_ASSERT_EQUAL (NSAPI_ERROR_OK, sock.open (NetworkInterface::get_default_instance ()));
3543 TEST_ASSERT_EQUAL (NSAPI_ERROR_OK, sock.set_root_ca_cert (tls_global::cert));
You can’t perform that action at this time.
0 commit comments