opensc/src/pkcs15init
alonbl 54c1c735f3 Attached are the latest mode to OpenSC svn 3462 to use the Makefile.mak
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
2008-04-07 19:42:43 +00:00
..
asepcos.profile do not use memory quota 2008-02-25 20:36:59 +00:00
cardos.profile big rename etoken -> cardos, part II. 2006-01-23 21:48:08 +00:00
cyberflex.profile Added info for EF data files 2004-10-13 07:19:38 +00:00
flex.profile There doesn't seem to be a need to leave the certs (and CDF) unprotected. In case there do are problems, please revert this change 2006-04-06 18:41:12 +00:00
gpk.profile try to avoid conflicts with file ids of different file types 2004-11-12 16:59:09 +00:00
incrypto34.profile add support for the Italian Incrypto34 smartcard; 2005-10-24 21:58:35 +00:00
jcop.profile - Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman 2003-12-29 12:28:37 +00:00
keycache.c When forgetting PIN set to 'null' the corresponding named_pin's entry 2006-11-02 09:19:17 +00:00
keycache.h - Cleanup, typo fix 2005-02-02 10:21:10 +00:00
Makefile.am Some more build cleanups 2008-04-04 20:38:20 +00:00
Makefile.mak Attached are the latest mode to OpenSC svn 3462 to use the Makefile.mak 2008-04-07 19:42:43 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
muscle.profile Added support for MuscleCard applet. Thanks to Thomas Harning, David Corcoran of Identity Alliance 2006-06-07 08:33:37 +00:00
oberthur.profile change inappropriate oberthur profile 2007-03-05 17:30:35 +00:00
pkcs15-asepcos.c check tpin before trying to delete application 2008-02-25 19:47:11 +00:00
pkcs15-cardos.c support for Siemens CardOS V4.2C 2007-12-19 09:58:29 +00:00
pkcs15-cflex.c inline is something the compiler can decide on his own. 2007-07-09 14:17:43 +00:00
pkcs15-gpk.c Complete rewrite of OpenSC build system. 2008-03-06 16:06:59 +00:00
pkcs15-incrypto34.c inline is something the compiler can decide on his own. 2007-07-09 14:17:43 +00:00
pkcs15-init.h add support of ruToken 2007-12-17 13:39:20 +00:00
pkcs15-jcop.c Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it 2005-08-22 09:20:13 +00:00
pkcs15-lib.c Complete rewrite of OpenSC build system. 2008-03-06 16:06:59 +00:00
pkcs15-miocos.c convert to utf-8. 2006-12-19 21:34:00 +00:00
pkcs15-muscle.c Added support for MuscleCard applet. Thanks to Thomas Harning, David Corcoran of Identity Alliance 2006-06-07 08:33:37 +00:00
pkcs15-oberthur.c Complete rewrite of OpenSC build system. 2008-03-06 16:06:59 +00:00
pkcs15-rutoken.c ruToken cleanups 2008-03-26 06:24:37 +00:00
pkcs15-setcos.c fix more warnings found by gcc/sparse. 2007-06-21 11:07:00 +00:00
pkcs15-starcos.c add functions 2005-10-30 19:08:06 +00:00
pkcs15.profile Forgotten to add in r2773 2006-01-03 14:42:30 +00:00
pkcs15init.exports Complete rewrite of OpenSC build system. 2008-03-06 16:06:59 +00:00
profile.c Complete rewrite of OpenSC build system. 2008-03-06 16:06:59 +00:00
profile.h The lastUpdate field is in the EF(TokenInfo), not in the ODF (thx Nils) 2005-08-29 20:48:00 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
rutoken.profile new patch for ruToken support 2008-01-03 08:59:14 +00:00
setcos.profile Improved ACs 2005-08-24 16:11:46 +00:00
starcos.profile fix starcos spk 2.3 "onepin" profile support 2004-09-28 20:06:04 +00:00


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.