瀏覽代碼

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)