master
Marc Wäckerlin 11 years ago
parent 79a5a9302e
commit 7b594f13c6
  1. 4
      doc/examples/cryptoki-sign-demo.cxx

@ -29,7 +29,7 @@ int main(int argc, char** argv) try {
std::string lib("libcvP11.so");
std::string slot;
std::string cert;
mrw::args::parse(argc, argv,
"Sign a text (optionally several times for performance"
" measurements).",
@ -64,7 +64,7 @@ int main(int argc, char** argv) try {
cryptoki::SlotInfo si(s->slotinfo());
if (slot.size()&&slot!=si.slotDescription) continue;
std::cout<<"Found Slot: "<<si.slotDescription<<std::endl;
cryptoki::TokenInfo ti(a->tokeninfo());
cryptoki::TokenInfo ti(s->tokeninfo());
std::cout<<"Found token: "<<ti.label<<std::endl;
cryptoki::Session session(*s);
cryptoki::ObjectList certs

Loading…
Cancel
Save