diff --git a/src/smartcardauth.hxx b/src/smartcardauth.hxx index 88775fe..02074cb 100644 --- a/src/smartcardauth.hxx +++ b/src/smartcardauth.hxx @@ -121,14 +121,35 @@ class CryptokiEngine: public QObject, public openssl::Engine { virtual std::string rsaSign(const std::string& in, unsigned int type) { TRC; LOG<<"log; type="<sign(in, CKM_RSA_PKCS); + return _privateKey->sign(data+in, CKM_RSA_PKCS); } catch (const std::exception& x) { + LOG<<"signature failed"; certRequired(); // get new certificate - return _privateKey->sign(in, CKM_RSA_PKCS); // try again + return _privateKey->sign(data+in, CKM_RSA_PKCS); // try again } } diff --git a/src/swissbrowser_de.ts b/src/swissbrowser_de.ts index 629276a..f26eef8 100644 --- a/src/swissbrowser_de.ts +++ b/src/swissbrowser_de.ts @@ -724,12 +724,12 @@ openssl-%7 (%9) %10 QMessageBox - + Authentication failed, please try again. - + Wrong PIN diff --git a/src/swissbrowser_en.ts b/src/swissbrowser_en.ts index 5070a6a..769dd16 100644 --- a/src/swissbrowser_en.ts +++ b/src/swissbrowser_en.ts @@ -724,12 +724,12 @@ openssl-%7 (%9) %10 QMessageBox - + Authentication failed, please try again. - + Wrong PIN diff --git a/src/swissbrowser_fr.ts b/src/swissbrowser_fr.ts index c0df2a2..3200b37 100644 --- a/src/swissbrowser_fr.ts +++ b/src/swissbrowser_fr.ts @@ -724,12 +724,12 @@ openssl-%7 (%9) %10 QMessageBox - + Authentication failed, please try again. - + Wrong PIN diff --git a/src/swissbrowser_it.ts b/src/swissbrowser_it.ts index 50cad0a..b4103ef 100644 --- a/src/swissbrowser_it.ts +++ b/src/swissbrowser_it.ts @@ -724,12 +724,12 @@ openssl-%7 (%9) %10 QMessageBox - + Authentication failed, please try again. - + Wrong PIN