Procházet zdrojové kódy

Fix type casting for MbedTlsContext in SSLClientServerTest

yhirose před 2 týdny
rodič
revize
2bb69e2b21
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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)