master
Marc Wäckerlin 14 years ago
parent 46192065b6
commit d88d12cc57
  1. 2
      swisssurfer/src/main.cxx

@ -289,7 +289,7 @@ int main(int argv, char** argc) try {
} else if ((*it=="-c" || *it=="--cert") && ++it!=args.end()) { } else if ((*it=="-c" || *it=="--cert") && ++it!=args.end()) {
QFile file(*it); QFile file(*it);
file.open(QIODevice::ReadOnly); file.open(QIODevice::ReadOnly);
QSslCertificate::QSslCertificate c(&file); QSslCertificate c(&file);
if (c.isNull()) { if (c.isNull()) {
std::cerr<<QObject::trUtf8("Cannot read PEM certificate from file: %1") std::cerr<<QObject::trUtf8("Cannot read PEM certificate from file: %1")
.arg(*it).toStdString()<<std::endl; .arg(*it).toStdString()<<std::endl;

Loading…
Cancel
Save