/*! @file @id $Id$ */ // 1 2 3 4 5 6 7 8 // 45678901234567890123456789012345678901234567890123456789012345678901234567890 #include #include #include #include int main(int argc, char** argv) try { std::string lib("libcvP11.so"); mrw::args::parse(argc, argv, "Sign a text (optionally several times for performance" " measurements).", mrw::args::defaults() <name()<version()<minimalPinLength() <<" - "<<(*card)->maximalPinLength()<pkcs15PinRetries()<sigGPinRetries()<transportPinRetries()<pukRetries()<sessionInfo()); std::cout<<" Session:"<certificates()); std::cout<<" Certificates: "<>choice; try { if (choice=="n") { // handled above in the while-loop } else if (choice=="c") { TextualCycle check(*card); if (check.run()) std::cout<<"----> SuisseID is fine"< SuisseID is bad"<>oldpin; std::cout<<"Enter New PIN: "; std::cin>>newpin; if (oldpin.size() && newpin.size()) (*card)->changePins(newpin, oldpin); } else if (choice=="i") { TextualCycle check(*card); check.installCerts(true); } else if (choice=="z") { for (suisseid::Certificates::iterator cert(certs.begin()); cert!=certs.end(); ++cert) { QSslCertificate c(QByteArray(cert->data(), cert->size()), QSsl::Der); std::cout<<"Certificate info: CN=" <