s = QObject::tr("The server did not present a certificate.");
s = QObject::tr("No certificate presented.");
QString resultToString(int result){	QString s;	switch(result) {		case QCA::SSL::NoCert:			s = QObject::tr("The server did not present a certificate.");			break;		case QCA::SSL::Valid:			break;		case QCA::SSL::HostMismatch:			s = QObject::tr("The hostname does not match the one the certificate was issued to.");			break;		case QCA::SSL::Rejected:			s = QObject::tr("Root CA is marked to reject the specified purpose.");			break;		case QCA::SSL::Untrusted:			s = QObject::tr("Certificate not trusted for the required purpose.");			break;		case QCA::SSL::SignatureFailed:			s = QObject::tr("Invalid signature.");			break;		case QCA::SSL::InvalidCA:			s = QObject::tr("Invalid CA certificate.");			break;		case QCA::SSL::InvalidPurpose:			s = QObject::tr("Invalid certificate purpose.");			break;		case QCA::SSL::SelfSigned:			s = QObject::tr("Certificate is self-signed.");			break;		case QCA::SSL::Revoked:			s = QObject::tr("Certificate has been revoked.");			break;		case QCA::SSL::PathLengthExceeded:			s = QObject::tr("Maximum certificate chain length exceeded.");			break;		case QCA::SSL::Expired:			s = QObject::tr("Certificate has expired.");			break;		case QCA::SSL::Unknown:		default:			s = QObject::tr("General certificate validation error.");			break;	}	return s;}