MCPcopy Create free account
hub / github.com/cutelyst/simple-mail / setPeerVerificationType

Method setPeerVerificationType

src/server.cpp:469–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void ServerPrivate::setPeerVerificationType(const Server::PeerVerificationType &type)
470{
471 peerVerificationType = type;
472#ifndef QT_NO_SSL
473 if (socket != nullptr) {
474 if (connectionType == Server::SslConnection || connectionType == Server::TlsConnection) {
475 switch (type) {
476 case Server::VerifyNone:
477 static_cast<QSslSocket *>(socket)->setPeerVerifyMode(QSslSocket::VerifyNone);
478 break;
479 // case Server::VerifyPeer:
480 default:
481 static_cast<QSslSocket *>(socket)->setPeerVerifyMode(QSslSocket::VerifyPeer);
482 break;
483 }
484 }
485 }
486#endif
487}
488
489void ServerPrivate::login()
490{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected