| 107 | #endif |
| 108 | |
| 109 | std::shared_ptr<TSSLSocketFactory> createServerSocketFactory() { |
| 110 | std::shared_ptr<TSSLSocketFactory> pServerSocketFactory; |
| 111 | |
| 112 | pServerSocketFactory.reset(new TSSLSocketFactory()); |
| 113 | pServerSocketFactory->ciphers("ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); |
| 114 | pServerSocketFactory->loadCertificate(certFile("server.crt").string().c_str()); |
| 115 | pServerSocketFactory->loadPrivateKey(certFile("server.key").string().c_str()); |
| 116 | pServerSocketFactory->server(true); |
| 117 | return pServerSocketFactory; |
| 118 | } |
| 119 | |
| 120 | std::shared_ptr<TSSLSocketFactory> createClientSocketFactory() { |
| 121 | std::shared_ptr<TSSLSocketFactory> pClientSocketFactory; |
no test coverage detected