aboutsummaryrefslogtreecommitdiffstats
path: root/scd/card.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-1/+1
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-14/+13
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-564/+0
2004-03-16* app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.cWerner Koch1-2/+0
* app-nks.c (get_length_of_cert): Removed. * app-help.c: New. (app_help_read_length_of_cert): New. Code taken from above. New optional arg R_CERTOFF. * card-dinsig.c: Removed. * card.c (card_get_serial_and_stamp): Do not bind to the old and never finsiged card-dinsig.c. * iso7816.c (iso7816_read_binary): Allow for an NMAX > 254.
2004-03-16*** empty log message ***Werner Koch1-4/+4
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-1/+5
smartcard applications.
2003-12-17Replaced deprecated type names.Werner Koch1-2/+2
* card-p15.c (p15_enum_keypairs): Replaced KRC by RC. * card-dinsig.c (dinsig_enum_keypairs): Ditto.
2003-11-12Mainly changes to adjust for the changed KSBA API.Werner Koch1-1/+2
2003-08-18* scdaemon.c, scdaemon.h: New option --disable-opensc.Werner Koch1-1/+4
* card.c (card_open): Implement it. * apdu.c (open_osc_reader, osc_send_apdu): New. (apdu_open_reader) [HAVE_OPENSC]: Use the opensc driver if not disabled. (error_string) [HAVE_OPENSC]: Use sc_strerror. (send_apdu) [HAVE_OPENSC]: Call osc_apdu_send. * card-p15.c (p15_enum_keypairs, p15_prepare_key): Adjusted for libgpg-error.
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+564
'GNUPG-1-9-BRANCH'.
2003-07-28Adjusted for use with current libgcrypt (1.1.42).Werner Koch1-1/+4
2003-07-03* app-openpgp.c (do_setattr): Add setting of the URL.Werner Koch1-2/+2
(app_select_openpgp): Dump card data only in very verbose mode. (do_decipher): New.
2003-06-27Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch1-1/+2
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-6/+6
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
2003-06-04Update error handling to match gpg-error in CVS.Marcus Brinkmann1-16/+15
2003-06-03Make use of libgpg-errorWerner Koch1-47/+51
2003-04-29* scdaemon.c: New options --print-atr and --reader-portWerner Koch1-0/+17
* apdu.c, apdu.h: New * card.c, card-p15.c, card-dinsig.c: Allow build without OpenSC.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-540/+0
'GNUPG-1-9-BRANCH'.
2002-08-16* scdaemon.c: Include i18n.h.Werner Koch1-0/+33
* card-common.h (struct p15_private_s): Forward declaration. Add it to card_ctx_s. * card.c (card_close): Make sure private data is released. (card_enum_certs): New. * card-p15.c (p15_release_private_data): New. (init_private_data): New to work around an OpenSC weirdness. (p15_enum_keypairs): Do an OpenSC get_objects only once. (p15_enum_certs): New. (card_p15_bind): Bind new function. * command.c (cmd_learn): Return information about the certificates.
2002-08-16* card-common.h (struct p15_private_s): Forward declaration. AddWerner Koch1-0/+2
it to card_ctx_s. * card.c (card_close): Make sure private data is released. * card-p15.c (p15_release_private_data): New. (init_private_data): New to work around an OpenSC weirdness. (p15_enum_keypairs): Do an OpenSC get_objects only once.
2002-08-09* card.c (card_get_serial_and_stamp): Use the tokeinfo serialWerner Koch1-48/+131
number as a fallback. Add a special prefix for serial numbers.
2002-04-12* scdaemon.c: New option --debug-sc N.Werner Koch1-5/+6
* card.c (card_open): set it here. * card-p15.c (p15_prepare_key): Factored out common code from ... (p15_sign, p15_decipher): here and made the decryption work the regular way.
2002-04-10* card.c (card_open): Return immediately when no reader is available.Werner Koch1-0/+1
2002-03-28* card.c (card_open, card_close): Adjusted for changes in OpenSC.Werner Koch1-60/+52
2002-03-18Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch1-382/+167
2002-03-06Decryption using a Cryptoflex card does now work.Werner Koch1-0/+100
2002-03-05Well and some stuff to access the SC will be helpful. Note, that theWerner Koch1-15/+55
code requires the latest OpenSC CVS code.
2002-03-04Added more code fragments.Werner Koch1-15/+95
2002-02-28Changes needed to support smartcards. Well, only _support_. There isWerner Koch1-3/+205
no real code yet.
2002-02-18Some experimental code - don't use it.Werner Koch1-0/+221