Github user nsuke commented on a diff in the pull request:
https://github.com/apache/thrift/pull/628#discussion_r45579512
--- Diff: lib/cpp/test/SecurityTest.cpp ---
@@ -108,8 +108,13 @@ struct SecurityFixture : public TestPortFixture
pServerSocketFactory.reset(new
TSSLSocketFactory(static_cast<apache::thrift::transport::SSLProtocol>(protocol)));
pServerSocketFactory->ciphers("ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH");
+ #ifdef BOOST_WINDOWS_API
+
pServerSocketFactory->loadCertificate(certFile("server.crt").string().c_str());
+
pServerSocketFactory->loadPrivateKey(certFile("server.key").string().c_str());
+ #else
pServerSocketFactory->loadCertificate(certFile("server.crt").native().c_str());
pServerSocketFactory->loadPrivateKey(certFile("server.key").native().c_str());
+ #endif
pServerSocketFactory->server(true);
--- End diff --
I don't get it. You are using "string" not "wstring" method.
"string" will be fine for Unix too, so I'd like to keep your version only,
removing original "native".
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---