On 1/28/2011 8:51 AM, francois.lebl...@cev-sa.com wrote:

>>> Ok another great change, can you provide code too please?

I have submitted for review a large patch to the cardmod code
as ticket #231 To view:
https://www.opensc-project.org/opensc/attachment/ticket/321/cardmod.svn.20110128.patch

This changes cardmod.c, ctx.c, opensc.h and reader-pcsc.c
Martin has said he is working on a change that would replace
the changes in ctx.c, opensc.h and parts of reader-pcsc.c

Major changes:

  Registry is not used to pass in handles.

  Low level debugging to a file.

  Added a loghex routine to log binary data.
  (replaces all the use of the "texte" strings that may have
   have been too small For example in CardSignData, the buffer
   was only 1024.)

  Added CardRSADecrypt. It may need to set some flags,
  but worked with RSA_RAW at least.

  Used calloc rather then malloc in one place to fix a bug.

  Fixed a bug with PinFreshness.

  Replaces SCARD_E_NO_MEMORY with ERROR_INSUFFICENT_BUFFER
  in places where the caller my be just requesting the buffer
  size.

  Use card serial number for "Guid" and in keyContainer names.


Still to be done:

   Handle case where card is withdrawn, and another card inserted.

-- 

  Douglas E. Engert  <deeng...@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to