54c1c735f3
files to build on Windows. I got rutoken to compile, and took out the #ifdef's I had in last week. The rutoken programmer declared some variables in the middle of a block rather then having all the declare statements at the beginning of a block as is normally done in C. The Microsoft compile treats this as an error. (Actual many errors.) The makedef.pl is no longer needed, as the exports files can be used. Note that in the original Makefile.mak files only opensc.def and pkcs15init.def were created. winconfig.h has a number of changes. As discussed last week this could be created by autoconf. I also noted that the Active State Perl that was required for the makedef.pl has a psed command that could be used like sed to update winconfig.h. I did not attempt to do this. win32/Make.rules.mak - Use ENABLE_OPENSSL and ENABLE_ZLIB src/tools/Makefile.mak - add the rutoken.tool.exe src/tools/eidenv.c - use PACKAGE_VERSION src/pkcs11/Makefile.mak - reorder the objest to match the list in the Makefile.am. Makes it easier to read. src/include/winconfig.h - The windows version of the config.h Changes based on discussions on the list last week. src/common/Makefile.mak - renamed modules. src/pkcs15init/Makefile.mak - reordered, and added back the rutoken modules replaced the use of makdef.pl to sue the exports file. src/scconf/Makefile.mak - reordered objects. src/libopensc/card-rutoken.c - error. Moved the declares to the beginning of blocks. src/libopensc/Makefile.mak - reorder names, and add rutoken. Use the libopensc.exports file. src/libopensc/pkcs15-prkey-rutoken.c - more moving of declare statements. By Douglas E. Engert http://www.opensc-project.org/pipermail/opensc-devel/2008-April/011011.html git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3464 c6295689-39f2-0310-b995-f0e70906c6a9 |
||
---|---|---|
.. | ||
asepcos.profile | ||
cardos.profile | ||
cyberflex.profile | ||
flex.profile | ||
gpk.profile | ||
incrypto34.profile | ||
jcop.profile | ||
keycache.c | ||
keycache.h | ||
Makefile.am | ||
Makefile.mak | ||
miocos.profile | ||
muscle.profile | ||
oberthur.profile | ||
pkcs15-asepcos.c | ||
pkcs15-cardos.c | ||
pkcs15-cflex.c | ||
pkcs15-gpk.c | ||
pkcs15-incrypto34.c | ||
pkcs15-init.h | ||
pkcs15-jcop.c | ||
pkcs15-lib.c | ||
pkcs15-miocos.c | ||
pkcs15-muscle.c | ||
pkcs15-oberthur.c | ||
pkcs15-rutoken.c | ||
pkcs15-setcos.c | ||
pkcs15-starcos.c | ||
pkcs15.profile | ||
pkcs15init.exports | ||
profile.c | ||
profile.h | ||
README | ||
rutoken.profile | ||
setcos.profile | ||
starcos.profile |
Very brief instructions To init card: Erase card and create pkcs15 dir ./pkcs15-init -EC Store a PIN on the card, using ID 01 ./pkcs15-init -P --auth-id 01 --pin aaaa --puk bbbb --label "My PIN" Generate a 512 bit RSA key and store on card, protected by the above PIN ./pkcs15-init -G rsa/512 --auth-id 01 Or, store a pkcs12 key/certificate pair ./pkcs15-init --auth-id 01 -f pkcs12 -S mycert.p12 Note that the pkcs12 file must use just one password - if you use different passwords for integrity and confidentiality, OpenSC will fail to import the keys.