summaryrefslogtreecommitdiffstats
path: root/scd/command.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * command.c (scd_update_reader_status_file): Send a signal back toWerner Koch2004-04-211-2/+44
| | | | | | | | | the client. (option_handler): Parse the new event-signal option. * scdaemon.c (handle_signal): Do not use SIGUSR{1,2} anymore for changing the verbosity.
* * command.c (scd_update_reader_status_file): Write status files.Werner Koch2004-04-201-2/+33
| | | | | | | | | | | | | | * app-help.c (app_help_read_length_of_cert): Fixed calculation of R_CERTOFF. * pcsc-wrapper.c: New. * Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth. (apdu_send_le): Reinitialize RESULTLEN. Handle SW_EOF_REACHED like SW_SUCCESS.
* * pcsc-wrapper.c: New.Werner Koch2004-04-201-16/+53
| | | | | | | | * Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth.
* *** empty log message ***Werner Koch2004-03-161-3/+3
|
* * protect-tool.c: New options --have-cert and --prompt.Werner Koch2004-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | (export_p12_file): Read a certificate from STDIN and pass it to p12_build. Detect a keygrip and construct the filename in that case. Unprotcet a key if needed. Print error messages for key formats we can't handle. (release_passphrase): New. (get_passphrase): New arg PROMPTNO. Return the allocated string. Changed all callers. * minip12.c: Revamped the build part. (p12_build): New args CERT and CERTLEN. * simple-pwquery.c (agent_open): Don't mangle INFOSTR. * export.c (export_p12, popen_protect_tool) (gpgsm_p12_export): New. * gpgsm.c (main): New command --export-secret-key-p12.
* (reset_notify): Release the application context andWerner Koch2004-01-291-2/+3
| | | | | close the reader.
* Some minor bug fixes, new test utilities and started support for otherWerner Koch2004-01-271-44/+83
| | | | | smartcard applications.
* Replaced deprecated type names.Werner Koch2003-12-171-2/+2
| | | | | | * card-p15.c (p15_enum_keypairs): Replaced KRC by RC. * card-dinsig.c (dinsig_enum_keypairs): Ditto.
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-121-7/+5
|
* * command.c (cmd_genkey, cmd_passwd): Fixed faulty use ofWerner Koch2003-10-251-4/+4
| | | | | | | !spacep(). * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
* * command.c (cmd_checkpin): New.Werner Koch2003-10-211-0/+36
| | | | | | | | | (register_commands): Add command CHECKPIN. * app.c (app_check_pin): New. * app-openpgp.c (check_against_given_fingerprint): New. Factored out that code elsewhere. (do_check_pin): New.
* * command.c (cmd_getattr): New command GETATTR.Werner Koch2003-09-301-0/+36
| | | | | | | | | | | | | | | | * app.c (app_setattr): New. (do_getattr): New. (do_learn_status): Reimplemented in terms of do_getattr. * app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are always synced. (verify_chv2, verify_chv3): New. Factored out common code. (do_setattr, do_sign, do_auth, do_decipher): Change the names of the prompts to match that we have only 2 different PINs. (app_select_openpgp): Check whether the card enforced CHV1. (convert_sig_counter_value): New. Factor out code from get_sig_counter.
* (cmd_setattr): Use a copy of LINE.Werner Koch2003-08-251-11/+25
| | | | | | | (cmd_genkey): Use a copy of KEYNO. (cmd_passwd): Use a copy of CHVNOSTR. (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): s/strdup/xtrystrdup/.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+1034
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-651/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * scdaemon.c: Include i18n.h.Werner Koch2002-08-161-1/+39
| | | | | | | | | | | | | | * 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.
* * 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-151-2/+15
|
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-181-16/+10
|
* 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-061-0/+35
|
* Well and some stuff to access the SC will be helpful. Note, that theWerner Koch2002-03-051-1/+55
| | | | | code requires the latest OpenSC CVS code.
* Added more code fragments.Werner Koch2002-03-041-14/+121
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-281-25/+131
| | | | | no real code yet.
* Some experimental code - don't use it.Werner Koch2002-02-181-14/+83
|
* * scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch2002-01-261-0/+174
the gpg-agent.