added error from mac to trusted errors as possible workaround; refs #43

master
Marc Wäckerlin 14 years ago
parent 382f7e7791
commit bf58795682
  1. 2
      swisssurfer/COPYING
  2. 2
      swisssurfer/INSTALL
  3. 12
      swisssurfer/src/smartcardauth.hxx
  4. 4
      swisssurfer/src/swisssurfer_de.ts
  5. 4
      swisssurfer/src/swisssurfer_en.ts
  6. 4
      swisssurfer/src/swisssurfer_fr.ts
  7. 4
      swisssurfer/src/swisssurfer_it.ts

@ -1 +1 @@
/opt/local/share/automake-1.11/COPYING
/usr/share/automake-1.11/COPYING

@ -1 +1 @@
/opt/local/share/automake-1.11/INSTALL
/usr/share/automake-1.11/INSTALL

@ -119,10 +119,18 @@ class SmartCardAuth: public QObject {
void extendedContextInitialization(ssl_ctx_st* ctx, QSslSocket* socket) {
qDebug()<<__PRETTY_FUNCTION__;
for (std::list<std::string>::iterator cert(_cacerts.begin()); cert!=_cacerts.end(); ++cert) {
QList<QSslError> expectedSslErrors;
for (std::list<std::string>::iterator cert(_cacerts.begin());
cert!=_cacerts.end(); ++cert) {
SSL_CTX_add_extra_chain_cert(ctx, openssl::X509(*cert).lowLevelCopy());
qDebug()<<"Added:\n"<<QSslCertificate(QByteArray(cert->data(), cert->size()), QSsl::Der).toPem();
expectedSslErrors.push_back(QSslError(QSslError::SelfSignedCertificate,
QSslCertificate::fromData
(QByteArray(cert->data(),
cert->size()),
QSsl::Der).at(0)));
//qDebug()<<"Added:\n"<<QSslCertificate(QByteArray(cert->data(), cert->size()), QSsl::Der).toPem();
}
socket->ignoreSslErrors(expectedSslErrors);
SSL_CTX_set_client_cert_cb(ctx, &SmartCardAuth::clientCert);
}

@ -541,12 +541,12 @@ p, li { white-space: pre-wrap; }
<context>
<name>QMessageBox</name>
<message>
<location filename="smartcardauth.hxx" line="224"/>
<location filename="smartcardauth.hxx" line="232"/>
<source>Wrong PIN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="smartcardauth.hxx" line="225"/>
<location filename="smartcardauth.hxx" line="233"/>
<source>Authentication failed, please try again.</source>
<translation type="unfinished"></translation>
</message>

@ -541,12 +541,12 @@ p, li { white-space: pre-wrap; }
<context>
<name>QMessageBox</name>
<message>
<location filename="smartcardauth.hxx" line="224"/>
<location filename="smartcardauth.hxx" line="232"/>
<source>Wrong PIN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="smartcardauth.hxx" line="225"/>
<location filename="smartcardauth.hxx" line="233"/>
<source>Authentication failed, please try again.</source>
<translation type="unfinished"></translation>
</message>

@ -541,12 +541,12 @@ p, li { white-space: pre-wrap; }
<context>
<name>QMessageBox</name>
<message>
<location filename="smartcardauth.hxx" line="224"/>
<location filename="smartcardauth.hxx" line="232"/>
<source>Wrong PIN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="smartcardauth.hxx" line="225"/>
<location filename="smartcardauth.hxx" line="233"/>
<source>Authentication failed, please try again.</source>
<translation type="unfinished"></translation>
</message>

@ -541,12 +541,12 @@ p, li { white-space: pre-wrap; }
<context>
<name>QMessageBox</name>
<message>
<location filename="smartcardauth.hxx" line="224"/>
<location filename="smartcardauth.hxx" line="232"/>
<source>Wrong PIN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="smartcardauth.hxx" line="225"/>
<location filename="smartcardauth.hxx" line="233"/>
<source>Authentication failed, please try again.</source>
<translation type="unfinished"></translation>
</message>

Loading…
Cancel
Save