find SuisseID certs; refs #32

master
Marc Wäckerlin 14 years ago
parent dfe4746c99
commit 64188cd657
  1. 2
      swisssurfer/src/smartcardauth.hxx

@ -50,7 +50,7 @@ class CryptokiEngine: public openssl::Engine {
QSsl::Der)); QSsl::Der));
} else { } else {
if (label.value.find("auth")==0 || if (label.value.find("auth")==0 ||
label.value.find("Authentication"<std::string::npos)) { label.value.find("Authentication")<std::string::npos) {
std::string data(cert->attribute(CKA_VALUE).value); std::string data(cert->attribute(CKA_VALUE).value);
QSslCertificate c(QByteArray(data.data(), data.size()), QSslCertificate c(QByteArray(data.data(), data.size()),
QSsl::Der); QSsl::Der);

Loading…
Cancel
Save