Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
Some future release
-
None
Description
It would be nice if a QSslServer would be created, instead of reimplementing QTcpServer. Like:
QSslServer *sslServer = new QSslServer(this);
sslServer->setPrivateKey(&key);
sslServer->setLocalCertificate(&cert);
if(!sslServer->listen(QHostAddress::Any, 1025)){
std::cout << qPrintable(sslServer->errorString) << std::endl;
}else{
connect(sslServer, SIGNAL(newConnection()),
this, SLOT(handleNewConnection()));
}
......
while(sslServer->hasPendingConnections()){
QSslSocket *sslSocket = new QSslSocket(this);
connect(sslSocket,.........
}
Attachments
Issue Links
- duplicates
-
QTBUG-33261 Provide SSL server
- Closed