We can read objects :-)
This commit is contained in:
		| @@ -68,6 +68,10 @@ int main(int argc, char const*const*const argv) try { | ||||
|                  <<"maxKeySize: \""<<mechinfo.maxKeySize<<'"'<<std::endl | ||||
|                  <<"flags: \""<<mechinfo.flags<<'"'<<std::endl; | ||||
|       } | ||||
|       cryptoki::Session session(*it); | ||||
|       std::cout<<"-------------------- Objects -----------------"<<std::endl; | ||||
|       cryptoki::ObjectList objs(session.find()); | ||||
|       std::cout<<"Objects Found: "<<objs.size()<<std::endl; | ||||
|     } catch (std::exception& x) { | ||||
|       std::cerr<<"**** FEHLER in "<<*argv<<": "<<x.what()<<std::endl; | ||||
|     } | ||||
|   | ||||
| @@ -12,7 +12,7 @@ pcsc_demo_SOURCES = pcsc-demo.cxx | ||||
| pcsc_demo_LDADD = -lpcsclite | ||||
|  | ||||
| cryptoki_demo_SOURCES = cryptoki-demo.cxx | ||||
| cryptoki_demo_LDADD = -ldl -lcryptoki++ | ||||
| cryptoki_demo_LDADD = -ldl -lpthread -lcryptoki++ | ||||
| cryptoki_demo_LDFLAGS = -L${top_builddir}/src | ||||
|  | ||||
| MAINTAINERCLEANFILES = makefile.in | ||||
|   | ||||
		Reference in New Issue
	
	Block a user