added error from mac to trusted errors as possible workaround; refs #43
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user