| 116 | } |
| 117 | |
| 118 | shared_ptr<TSSLSocketFactory> createServerSocketFactory() { |
| 119 | shared_ptr<TSSLSocketFactory> pServerSocketFactory; |
| 120 | |
| 121 | pServerSocketFactory.reset(new TSSLSocketFactory()); |
| 122 | pServerSocketFactory->ciphers("ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); |
| 123 | pServerSocketFactory->loadCertificate(certFile("server.crt").string().c_str()); |
| 124 | pServerSocketFactory->loadPrivateKey(certFile("server.key").string().c_str()); |
| 125 | pServerSocketFactory->server(true); |
| 126 | return pServerSocketFactory; |
| 127 | } |
| 128 | |
| 129 | shared_ptr<TSSLSocketFactory> createClientSocketFactory() { |
| 130 | shared_ptr<TSSLSocketFactory> pClientSocketFactory; |
no test coverage detected