even more
This commit is contained in:
		| @@ -16,7 +16,7 @@ int main(int argc, char const*const*const argv) try { | ||||
|   cryptoki::SlotList slots(init.slotList()); | ||||
|   for (cryptoki::SlotList::iterator it(slots.begin()); it!=slots.end(); ++it) | ||||
|     try { | ||||
|       cryptoki::SlotInfo slotInfo(it->slotInfo()); | ||||
|       cryptoki::SlotInfo slotInfo(it->slotinfo()); | ||||
|       std::cout<<"##################### S-CARD #####################"<<std::endl | ||||
|                <<"slotDescription: \""<<slotInfo.slotDescription<<'"'<<std::endl | ||||
|                <<"manufacturerID: \""<<slotInfo.manufacturerID<<'"'<<std::endl | ||||
| @@ -25,8 +25,8 @@ int main(int argc, char const*const*const argv) try { | ||||
|                <<'.'<<(int)slotInfo.hardwareVersion.minor<<'"'<<std::endl | ||||
|                <<"firmwareVersion: \""<<(int)slotInfo.firmwareVersion.major | ||||
|                <<'.'<<(int)slotInfo.firmwareVersion.minor<<'"'<<std::endl; | ||||
|       cryptoki::TokenInfo info(it->tokenInfo()); | ||||
|       std::cout<<"--------------------------------------------------"<<std::endl | ||||
|       cryptoki::TokenInfo info(it->tokeninfo()); | ||||
|       std::cout<<"--------------------- Token ----------------------"<<std::endl | ||||
|                <<"label: \""<<info.label<<'"'<<std::endl | ||||
|                <<"manufacturerID: \""<<info.manufacturerID<<'"'<<std::endl | ||||
|                <<"model: \""<<info.model<<'"'<<std::endl | ||||
| @@ -48,6 +48,17 @@ int main(int argc, char const*const*const argv) try { | ||||
|                <<"firmwareVersion: \""<<(int)info.firmwareVersion.major | ||||
|                <<'.'<<(int)info.firmwareVersion.minor<<'"'<<std::endl | ||||
|                <<"utcTime: \""<<info.utcTime<<'"'<<std::endl; | ||||
|       cryptoki::MechanismList mechs(it->mechanismlist()); | ||||
|       for (cryptoki::MechanismList::iterator it2(mechs.begin()); | ||||
|            it2!=mechs.end(); ++it2) { | ||||
|         cryptoki::MechanismInfo mechinfo(it->mechanisminfo(*it2)); | ||||
|         std::cout<<"-------------------- Mechanism -----------------"<<std::endl | ||||
|                  <<"id: \""<<mechinfo.id<<'"'<<std::endl | ||||
|                  <<"name: \""<<mechinfo.name<<'"'<<std::endl | ||||
|                  <<"minKeySize: \""<<mechinfo.minKeySize<<'"'<<std::endl | ||||
|                  <<"maxKeySize: \""<<mechinfo.maxKeySize<<'"'<<std::endl | ||||
|                  <<"flags: \""<<mechinfo.flags<<'"'<<std::endl; | ||||
|       } | ||||
|     } catch (std::exception& x) { | ||||
|       std::cerr<<"**** FEHLER in "<<*argv<<": "<<x.what()<<std::endl; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user