Преглед изворни кода

Fix type casting for MbedTlsContext in SSLClientServerTest

yhirose пре 2 недеља
родитељ
комит
2bb69e2b21
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      test/test.cc

+ 2 - 1
test/test.cc

@@ -9246,7 +9246,8 @@ TEST(SSLClientServerTest, CustomizeServerSSLCtxMbedTLS) {
     callback_invoked = true;
 
     // Cast to MbedTlsContext* to access the ssl config
-    auto *mbedtls_ctx = static_cast<MbedTlsContext *>(ctx);
+    auto *mbedtls_ctx =
+        static_cast<httplib::detail::tls::MbedTlsContext *>(ctx);
     mbedtls_ssl_config *conf = &mbedtls_ctx->conf;
 
     // Use static variables to hold certificate data (simplified for test)