@@ -18,17 +18,6 @@ inline std::ifstream::pos_type filesize(const std::string &filename)
1818 return in.tellg ();
1919}
2020
21- // bool verify_certificate(bool preverified, asio::ssl::verify_context &ctx)
22- // {
23- //
24- // char subject_name[256];
25- // X509 *cert = X509_STORE_CTX_get_current_cert(ctx.native_handle());
26- // X509_NAME_oneline(X509_get_subject_name(cert), subject_name, 256);
27- // SL_WS_LITE_LOG(Logging_Levels::INFO_log_level, "Verifying " << subject_name);
28- //
29- // return preverified;
30- // }
31-
3221void wssautobahntest ()
3322{
3423
@@ -257,9 +246,6 @@ void generalTLStest()
257246 },
258247 SL::WS_LITE::method::tlsv11)
259248 ->CreateClient ()
260- // ->onVerifyPeer([&](bool b, X509_STORE_CTX *cert) {
261- // return b; // trust all certs, not good but for now yeah
262- // })
263249 ->onConnection ([&](const std::shared_ptr<SL::WS_LITE::IWSocket> &socket, const std::unordered_map<std::string, std::string> &header) {
264250 lastheard = std::chrono::high_resolution_clock::now ();
265251 SL_WS_LITE_LOG (SL::WS_LITE::Logging_Levels::INFO_log_level, " Client::onConnection" );
@@ -415,13 +401,13 @@ void multithreadthroughputtest()
415401int main (int argc, char *argv[])
416402{
417403 wssautobahntest ();
418- /* std::this_thread::sleep_for(1s);
419- generaltest();
420- std::this_thread::sleep_for(1s);
421- generalTLStest();
422- std::this_thread::sleep_for(1s);
423- multithreadtest();
424- std::this_thread::sleep_for(1s);
425- multithreadthroughputtest();*/
404+ std::this_thread::sleep_for (1s);
405+ generaltest ();
406+ std::this_thread::sleep_for (1s);
407+ generalTLStest ();
408+ std::this_thread::sleep_for (1s);
409+ multithreadtest ();
410+ std::this_thread::sleep_for (1s);
411+ multithreadthroughputtest ();
426412 return 0 ;
427413}
0 commit comments