mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-15 10:15:32 +00:00
feat: migrates protocol examples to PSA APIs
This commit is contained in:
committed by
Mahavir Jain
parent
6e5715aac4
commit
cc0d469048
@@ -177,8 +177,8 @@ static httpd_handle_t start_webserver(void)
|
||||
|
||||
#if CONFIG_EXAMPLE_ENABLE_HTTPS_SERVER_CUSTOM_CIPHERSUITES
|
||||
static const int ciphersuites_to_use[] = {
|
||||
MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,
|
||||
MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,
|
||||
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
|
||||
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
|
||||
MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,
|
||||
MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,
|
||||
0,
|
||||
|
||||
@@ -362,7 +362,7 @@ def test_examples_protocol_https_server_tls1_2_only(dut: Dut) -> None:
|
||||
conn.close()
|
||||
|
||||
# Now try with the matching ciphersuite
|
||||
ssl_context.set_ciphers('DHE-RSA-AES128-SHA256')
|
||||
ssl_context.set_ciphers('ECDHE-RSA-AES128-SHA256')
|
||||
|
||||
conn = http.client.HTTPSConnection(got_ip, got_port, context=ssl_context)
|
||||
logging.info('Performing SSL handshake with the server')
|
||||
|
||||
Reference in New Issue
Block a user