... for(;;) { TcpSocket socket; LOG("===================================================== Waiting..."); if(socket.Accept(server)) { LOG("Connection accepted"); socket.SSLCertificate(LoadFile(GetDataFile("C:\\Users\\Xemuth\\Documents\\ssl\\cert.pem")), LoadFile(GetDataFile("C:\\Users\\Xemuth\\Documents\\ssl\\privkey.pem")), false); if(!socket.StartSSL()) { LOG("Failed to start SSL: " << socket.GetErrorDesc()); continue; } while(socket.SSLHandshake()); if(socket.IsError()) { LOG("SSL handshake failed: " << socket.GetErrorDesc()); continue; } LOG("SSL established"); ...
Report message to a moderator