From c2cea723abf5ecf75a2c8712d957f551a0354bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 29 Mar 2011 12:50:52 +0000 Subject: [PATCH] added -lcrypto to examples; refs #10 --- doc/examples/makefile.am | 2 +- install-64-and-32-bit-linux.sh | 8 ++++++-- src/cryptoki.cxx | 20 +++++++++++++++++++- src/cryptoki.hxx | 5 ++++- src/pcsc.hxx | 2 +- 5 files changed, 31 insertions(+), 6 deletions(-) diff --git a/doc/examples/makefile.am b/doc/examples/makefile.am index a25dc50..7022820 100644 --- a/doc/examples/makefile.am +++ b/doc/examples/makefile.am @@ -25,7 +25,7 @@ LDFLAGS += -lpcsclite endif endif if !MINGW32 -LDFLAGS += -ldl -lpthread -lssl +LDFLAGS += -ldl -lpthread -lssl -lcrypto endif pcsc_demo_SOURCES = pcsc-demo.cxx diff --git a/install-64-and-32-bit-linux.sh b/install-64-and-32-bit-linux.sh index 8cc55df..e77079a 100755 --- a/install-64-and-32-bit-linux.sh +++ b/install-64-and-32-bit-linux.sh @@ -1,7 +1,8 @@ +touch iostream && \ ./bootstrap.sh && \ LDFLAGS="-L/usr/lib32 -L/usr/local/lib32 -m32" \ CXXFLAGS="-m32" \ - CPPFLAGS="-DCRYPTOKI_LOG\(X\)='std::clog<C_GetSlotList(tokenPresent?TRUE:FALSE, 0, &count), CRYPTOKI_FN_LOG("C_GetSlotList")); + std::cout<<"C_GetSlotList returns "<C_GetSlotList(tokenPresent?TRUE:FALSE, slots, &count); + std::cout<<"C_GetSlotList returns "<