aboutsummaryrefslogtreecommitdiffstats
path: root/scd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* minor changes to make make distcheck happyWerner Koch2003-07-312-3/+8
|
* *** empty log message ***Werner Koch2003-07-291-1/+1
|
* * gpgsm.c (main): Add secmem features and set the random seed file.Werner Koch2003-07-293-35/+40
| | | | | | | | | | | | (gpgsm_exit): Update the random seed file and enable debug output. * g10.c (main): Add secmem features and set the random seed file. (g10_exit): Update the random seed file. * parse-packet.c (parse_signature,read_protected_v3_mpi) (parse_key): Fixed use of mpi_set_opaque. * keygen.c (gen_card_key): Ditto.
* Adjusted for use with current libgcrypt (1.1.42).Werner Koch2003-07-283-9/+12
|
* * app-openpgp.c (do_learn_status): Print more status information.Werner Koch2003-07-243-7/+59
| | | | | | | (app_select_openpgp): Store the card version. (store_fpr): Add argument card_version and fix DOs for old cards. (app_openpgp_storekey): Likewise.
* * command.c (cmd_pkauth): New.Werner Koch2003-07-2310-82/+668
| | | | | | | | | (cmd_setdata): Check whether data was given at all to avoid passing 0 to malloc. * app.c (app_auth): New. * app-openpgp.c (do_auth): New.
* * Makefile.am: Add sc-copykeys program.Werner Koch2003-07-165-10/+1028
| | | | | | | | | * sc-copykeys.c: New. * app-openpgp.c (app_openpgp_storekey): New. (app_openpgp_cardinfo): New. (count_bits): New. (store_fpr): And use it here to get the actual length in bit.
* * app-openpgp.c (do_setattr): Add setting of the URL.Werner Koch2003-07-0311-36/+206
| | | | | | (app_select_openpgp): Dump card data only in very verbose mode. (do_decipher): New.
* * app-openpgp.c (store_fpr): Fixed fingerprint calculation.Werner Koch2003-07-013-12/+116
| | | | | | | | * keygen.c (gen_card_key): Obviously we should use the creation date received from SCDAEMON, so that the fingerprints will match. * sign.c (do_sign): Pass the serialno to the sign code. * keyid.c (serialno_and_fpr_from_sk): New.
* Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch2003-06-2710-66/+970
|
* Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch2003-06-182-10/+10
| | | | | | | | | | | 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.
* A small step for GnuPG but a huge leap for error codes.Werner Koch2003-06-052-2/+8
| | | | | | (Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
* Update error handling to match gpg-error in CVS.Marcus Brinkmann2003-06-044-35/+34
|
* * scdaemon.h: Include gpg-error.h and errno.hWerner Koch2003-06-037-10/+1266
| | | | | | * card.c (map_sc_err): Use unknown for the error source. * Makefile.am: Link with libgpg-error
* Make use of libgpg-errorWerner Koch2003-06-0311-107/+455
|
* * scdaemon.c: New options --print-atr and --reader-portWerner Koch2003-04-298-11/+378
| | | | | | | * apdu.c, apdu.h: New * card.c, card-p15.c, card-dinsig.c: Allow build without OpenSC.
* * Makefile.am (LDFLAGS): Removed.Werner Koch2003-04-293-19/+21
| | | | | * command.c (register_commands): Adjusted for new Assuan semantics.
* use setlocale().Werner Koch2002-08-211-3/+3
|
* * scdaemon.c (main): New option --daemon so that the program isWerner Koch2002-08-212-4/+18
| | | | | not accidently started in the background.
* * scdaemon.c: Include i18n.h.Werner Koch2002-08-167-4/+148
| | | | | | | | | | | | | | * 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.
* * card-common.h (struct p15_private_s): Forward declaration. AddWerner Koch2002-08-165-17/+83
| | | | | | | | | 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.
* Minor changes for gettextNEWPG-0-3-10Werner Koch2002-08-102-1/+4
|
* * card.c (card_get_serial_and_stamp): Use the tokeinfo serialWerner Koch2002-08-095-52/+158
| | | | | number as a fallback. Add a special prefix for serial numbers.
* * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.Werner Koch2002-06-272-7/+5
| | | | | | | | | | | | | * call-agent.c (start_agent): Create and pass the list of FD to keep in the child to assuan. * call-dirmngr.c (start_dirmngr): Ditto. * scdaemon.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * assuan-pipe-connect.c (assuan_pipe_connect): No special handling for the log_fd and stderr. Connect stderr to /dev/null if it should not be retained.
* * card-dinsig.c: Documented some stuff from the DIN norm.Werner Koch2002-06-152-2/+57
|
* * call-agent.c (start_agent): Make copies of old locales and checkWerner Koch2002-04-251-4/+4
| | | | | | | for setlocale. * configure.ac: Check for setlocale.
* * command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.Werner Koch2002-04-152-2/+19
|
* * scdaemon.c: New option --debug-sc N.Werner Koch2002-04-125-85/+78
| | | | | | | | | * 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.
* * card.c (card_open): Return immediately when no reader is available.Werner Koch2002-04-102-0/+5
|
* * card.c (card_open, card_close): Adjusted for changes in OpenSC.Werner Koch2002-03-284-64/+61
|
* Added missing fileNEWPG-0-3-3Werner Koch2002-03-181-0/+1
|
* More stuff for SCs - don't expect them to work.Werner Koch2002-03-183-0/+671
|
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-185-406/+192
|
* sm/Werner Koch2002-03-061-0/+61
| | | | | | | | | | | | | | | | | * gpgsm.c: New command --learn-card * call-agent.c (learn_cb,gpgsm_agent_learn): New. * gpgsm.c (main): Print error messages for non-implemented commands. agent/ * learncard.c: New. * divert-scd.c (ask_for_card): The serial number is binary so convert it to hex here. * findkey.c (agent_write_private_key): New. * genkey.c (store_key): And use it here. scd/ * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done. * divert-scd.c (divert_pkdecrypt): Changed interface and implemented it.
* Decryption using a Cryptoflex card does now work.Werner Koch2002-03-063-1/+140
|
* Well and some stuff to access the SC will be helpful. Note, that theWerner Koch2002-03-053-16/+116
| | | | | code requires the latest OpenSC CVS code.
* Added more code fragments.Werner Koch2002-03-043-29/+220
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-285-30/+347
| | | | | no real code yet.
* Some experimental code - don't use it.Werner Koch2002-02-184-16/+315
|
* * scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch2002-01-265-0/+925
the gpg-agent.