hostapd: Fix compile against mbedtsl 3.6
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 8 Apr 2024 20:06:08 +0000 (22:06 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 28 Apr 2024 19:42:18 +0000 (21:42 +0200)
Fix compile of the mbedtls extension for hostapd.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/services/hostapd/patches/110-mbedtls-TLS-crypto-option-initial-port.patch

index b786d3bccb5af0d5a36dbdccb99bb9b024931aec..b55c0b1f8450a89250863d13159a780f9c622095 100644 (file)
@@ -6460,7 +6460,7 @@ Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
 +{
 +  #if !defined(MBEDTLS_USE_PSA_CRYPTO) /* XXX: (not extracted for PSA crypto) */
 +  #if defined(MBEDTLS_SSL_PROTO_TLS1_3)
-+    if (tls_version == MBEDTLS_SSL_VERSION_TLS1_3)
++    if (mbedtls_ssl_get_version_number(ssl) == MBEDTLS_SSL_VERSION_TLS1_3)
 +        return 0; /* (calculation not extracted) */
 +  #endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
 +