From 327b889eea27c2420e40c3bca284a600f5fd73b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 26 Apr 2011 07:32:58 +0000 Subject: [PATCH] find SuisseID certs; refs #32 --- swisssurfer/src/smartcardauth.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/swisssurfer/src/smartcardauth.hxx b/swisssurfer/src/smartcardauth.hxx index 8845ca1..efab87b 100644 --- a/swisssurfer/src/smartcardauth.hxx +++ b/swisssurfer/src/smartcardauth.hxx @@ -44,13 +44,16 @@ class CryptokiEngine: public openssl::Engine { id)); OPENSSL_LOG("**** with keys: "<attribute(CKA_VALUE).value); cacerts.push_back(QSslCertificate (QByteArray(data.data(), data.size()), QSsl::Der)); } else { + OPENSSL_LOG("**** user cert, check for authentictaion"); if (label.value.find("auth")==0 || - label.value.find("Authentication")attribute(CKA_VALUE).value); QSslCertificate c(QByteArray(data.data(), data.size()), QSsl::Der); @@ -80,6 +83,8 @@ class CryptokiEngine: public openssl::Engine { QMessageBox::tr("Authentication failed," " please try again.")); } + } else { + OPENSSL_LOG("**** it's not our authentication cert; ignore"); } //! @todo show certificate dialog // std::string data(cert->attribute(CKA_VALUE).value);