mirror of
https://github.com/bouffalolab/bouffalo_sdk.git
synced 2025-05-08 10:33:30 +08:00
[fix][mbedtls]fix https not set SNI issue
This commit is contained in:
parent
a7dc0d7f5c
commit
811e8c1f1c
@ -200,7 +200,9 @@ int32_t bl_TcpSslConnect(const char *dst, uint16_t port)
|
||||
printf("mbedtls_ssl_setup returned -0x%x\r\n", -ret);
|
||||
return BL_TCP_CREATE_CONNECT_ERR;
|
||||
}
|
||||
|
||||
#ifdef MBEDTLS_SSL_SERVER_NAME_INDICATION
|
||||
mbedtls_ssl_set_hostname(&bl_hsbuf->ssl, dst);
|
||||
#endif
|
||||
mbedtls_net_init(&bl_hsbuf->server_fd);
|
||||
|
||||
bl_hsbuf->server_fd.fd = socket(AF_INET, SOCK_STREAM, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user