From 54e97af7e6c37f1169e108f09f73d2467c5cd82f Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Thu, 9 May 2024 11:05:03 -0700 Subject: [PATCH] fix path conversion to c-str in SSLSessionTest Summary: On Windows, `boost::filesystem::path::c_str()` has type `wchar_t const*` and not `char const*`; passing the result to `SSLContext` members does not compile. Reviewed By: vitaut Differential Revision: D57167715 --- folly/io/async/test/SSLSessionTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/folly/io/async/test/SSLSessionTest.cpp b/folly/io/async/test/SSLSessionTest.cpp index a73ce8ab5a2..432db83deb6 100644 --- a/folly/io/async/test/SSLSessionTest.cpp +++ b/folly/io/async/test/SSLSessionTest.cpp @@ -61,11 +61,11 @@ class SSLSessionTest : public testing::Test { std::shared_ptr clientCtx, std::shared_ptr serverCtx) { clientCtx->ciphers("ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); - clientCtx->loadTrustedCertificates(find_resource(kTestCA).c_str()); + clientCtx->loadTrustedCertificates(find_resource(kTestCA).string().c_str()); serverCtx->ciphers("ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); - serverCtx->loadCertificate(find_resource(kTestCert).c_str()); - serverCtx->loadPrivateKey(find_resource(kTestKey).c_str()); + serverCtx->loadCertificate(find_resource(kTestCert).string().c_str()); + serverCtx->loadPrivateKey(find_resource(kTestKey).string().c_str()); } folly::EventBase eventBase_;