소스 검색

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)