aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch2003-10-0211-10/+96
|
* * command.c (cmd_getattr): New command GETATTR.Werner Koch2003-09-305-230/+321
| | | | | | | | | | | | | | | | * 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.
* * keylist.c (print_card_serialno): New.Werner Koch2003-09-305-32/+153
| | | | | | | | | | | | | | | | | | (list_keyblock_print): Use it here. * card-util.c (toggle_forcesig): New. (card_edit): New command "forcesig". * card-util.c (print_name, print_isoname): Use 0 and not LF fro the max_n arg of tty_print_utf8_string2. * call-agent.c (agent_scd_getattr): New. (learn_status_cb): Release values before assignment so that it can be used by getattr to update the structure. * card-util.c (change_pin): Simplified. We now have only a PIN and an Admin PIN.
* Minor fixesWerner Koch2003-09-304-38/+10
|
* *** empty log message ***Werner Koch2003-09-301-0/+5
|
* 2003-09-26 Timo Schulz <[email protected]>Timo Schulz2003-09-262-1/+6
| | | | | | * card_status (card_status): Do not use fputs since the fp parameter can be NULL. This fixes a segv.
* (print_isoname,card_status): Handle opt.with_colons.Werner Koch2003-09-242-49/+154
| | | | | (print_sha1_fpr_colon): New.
* Merged most of David Shaw's changes in 1.3 since 2003-06-03.Werner Koch2003-09-2345-509/+1489
|
* 2003-09-22 Timo Schulz <[email protected]>Timo Schulz2003-09-222-0/+8
| | | | | | * card-util.c (card_status): Free pk in case of an error and return if the card is no OpenPGP card.
* (parse_ccid_descriptor): New.Werner Koch2003-09-193-2/+248
| | | | | | (read_device_info): New. (ccid_open_reader): Check that the device has all required features.
* * g10.c: New command --card-edit.Werner Koch2003-09-186-251/+420
| | | | | | | | | | | | * card-util.c (card_status): Use tty_fprintf for all output. (print_sha1_fpr, print_isoname): Ditto. (get_one_name,change_name, change_url, change_login,change_lang) (change_sex): New; taken from keygen.c. * keygen.c (smartcard_get_one_name, smartcard_change_name) (smartcard_change_url, smartcard_change_login_data) (smartcard_change_lang, smartcard_change_sex): Removed. (check_smartcard): Removed most menu items.
* (tty_fprintf): New.Werner Koch2003-09-183-7/+64
| | | | | | (tty_print_string, tty_print_utf8_string2) (tty_print_utf8_string): Made P argument const byte*.
* Post release version number updateWerner Koch2003-09-063-2/+7
|
* * configure.ac: Required newer versions of some libraries.V1-9-1Werner Koch2003-09-0610-38/+58
| | | | | | | | | | | | | * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed. * keygen.c (ask_passphrase): No need to allocated S2K in secure memory. * scdaemon.c (main): --pcsc-driver again defaults to pcsclite. David Corcoran was so kind to remove the GPL incompatible advertisng clause from pcsclite. * apdu.c (apdu_open_reader): Actually make pcsc-driver option work.
* * ccid-driver.c: More work, data can now actually be retrieved.Werner Koch2003-09-053-164/+320
| | | | | | * ccid-driver.c, ccid-driver.h: Alternativley allow use under BSD conditions.
* * keygen.c (do_add_key_flags, parse_parameter_usage)Werner Koch2003-09-056-17/+49
| | | | | | | | (do_generate_keypair): Add support the proposed AUTH key flag. * getkey.c (fixup_uidnode, merge_selfsigs_main) (merge_selfsigs_subkey, premerge_public_with_secret): Ditto. * keylist.c (print_capabilities): Ditto.
* * configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch2003-09-0213-7/+827
| | | | | | | | * scdaemon.c, scdaemon.h: New option --pcsc-ccid. * ccid-driver.c, ccid-driver.h: New but far from being useful. * Makefile.am: Add above. * apdu.c: Add support for that ccid driver.
* 2003-08-26 Timo Schulz <[email protected]>Timo Schulz2003-08-262-0/+7
| | | | | | * apdu.c (new_reader_slot): Only set 'is_osc' when OpenSC is used.
* 2003-08-25 Timo Schulz <[email protected]>Timo Schulz2003-08-252-33/+25
| | | | | | * pkglue.c (mpi_from_sexp): New. Used to factor out some common code.
* (cmd_setattr): Use a copy of LINE.Werner Koch2003-08-252-11/+32
| | | | | | | (cmd_genkey): Use a copy of KEYNO. (cmd_passwd): Use a copy of CHVNOSTR. (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): s/strdup/xtrystrdup/.
* 2003-08-20 Timo Schulz <[email protected]>Timo Schulz2003-08-202-3/+8
| | | | | | * pksign.c (do_encode_md): Allocate enough space. Cast md byte to unsigned char to prevent sign extension.
* 2003-08-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann2003-08-202-2/+7
| | | | | | * maperror.c (map_ksba_err): Map -1. Use gpg_err_make to set the error source.
* 2003-08-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann2003-08-202-2/+9
| | | | | | | * encrypt.c (encode_session_key): Allocate enough space. Cast key byte to unsigned char to prevent sign extension. (encrypt_dek): Check return value before error.
* * scdaemon.c, scdaemon.h: New option --pcsc-driver.Werner Koch2003-08-194-1/+22
| | | | | | * apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
* 2003-08-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann2003-08-192-1/+6
| | | | | | * configure.ac (AM_PATH_GPG_ERROR): Add missing comma in invocation.
* * mdc.c (use_mdc): Simplified.Timo Schulz2003-08-182-22/+20
|
* 2003-08-18 Timo Schulz <[email protected]>Timo Schulz2003-08-183-51/+66
| | | | | | | | * encode.c (encode_sesskey): Checked the code and removed the warning since all compatibility checks with PGP succeeded. * mainproc.c (symkey_decrypt_sesskey): Better check for the algorithm and check the return values of some functions.
* * scdaemon.c, scdaemon.h: New option --disable-opensc.Werner Koch2003-08-182-4/+7
| | | | | | | | | | | | | * 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.
* * Makefile.am: Add OPENSC_LIBS to all programs.Werner Koch2003-08-189-50/+401
| | | | | | | | | | | * scdaemon.c, scdaemon.h: New option --disable-opensc. * 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.
* Add 'dynload.h' to Makefile.am.Timo Schulz2003-08-141-1/+2
|
* 2003-08-14 Timo Schulz <[email protected]>Timo Schulz2003-08-142-78/+23
| | | | | * encrypt.c (encode_session_key): Use new Libgcrypt interface.
* Forgot to remove the unsued variable.Timo Schulz2003-08-141-2/+0
|
* 2003-08-14 Timo Schulz <[email protected]>Timo Schulz2003-08-142-47/+27
| | | | | | * pksign.c: do_encode_md: Due to the fact pkcs#1 padding is now in Libgcrypt, use the new interface.
* * Always use 'dynload.h' instead of 'dlfcn.h'.Timo Schulz2003-08-145-32/+36
|
* *** empty log message ***Timo Schulz2003-08-142-8/+6
|
* 2003-08-14 Timo Schulz <[email protected]>Timo Schulz2003-08-142-0/+75
| | | | | * dlfcn.h. New. W32 wrapper around the dynload mechanism.
* (pk_sign): Fix last change.Werner Koch2003-08-072-8/+49
| | | | | | | (pk_verify): Check for valid DATA array so that we don't segv in Libgcrypt. (pk_verify): Ditto.
* Bumbed version numberWerner Koch2003-08-052-1/+5
|
* About to release the first 1.9 version.Werner Koch2003-08-054-6/+11
|
* Cleanups, fixes and PC/SC supportWerner Koch2003-08-0524-519/+600
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-0576-0/+34899
| | | | 'GNUPG-1-9-BRANCH'.
* minor changes to make make distcheck happyWerner Koch2003-07-313-2/+9
|
* * gpgsm.c (main): Add secmem features and set the random seed file.Werner Koch2003-07-298-260/+518
| | | | | | | | | | | | (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-2812-43/+45
|
* * g10.c: New command --card-status.Werner Koch2003-07-2410-13/+253
| | | | | | | | | * card-util.c (card_status): New. * call-agent.c (learn_status_cb): Parse more information. * keylist.c (print_pubkey_info): Add FP arg for optinal printing to a stream. Changed all callers.
* * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.Werner Koch2003-07-2310-20/+272
| | | | | | (do_generate_keypair): Abd generate the authkey. (check_smartcard): Changed menu accordingly.
* * export.c (parse_export_options): New option sexp-format.Werner Koch2003-07-166-30/+199
| | | | | | | | | (export_seckeys,export_secsubkeys): Check sexp-format option. (do_export): Ignore armor for sexp format. (do_export_stream): Handle sexp-format. (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New. (build_sexp): New.
* Minor changes to make make dist work correctly.Werner Koch2003-07-042-4/+14
|
* * cipher.h (DBG_CIPHER,g10c_debug_mode): Removed.Werner Koch2003-07-032-4/+4
|
* * options.h (DBG_CIPHER): Reintroduced it.Werner Koch2003-07-0313-202/+422
| | | | | | | | | | | | | | | | | | * seskey.c (encode_session_key): Debug output of the session key. * pubkey-enc.c (get_it): Handle card case. * call-agent.c (agent_scd_pkdecrypt): New. * pkglue.c (pk_encrypt): Add RSA support. * g10.c (main): Default to --use-agent. * keygen.c (show_smartcard): Print info about the public key. (check_smartcard): Check for existing key here. (gen_card_key): And not anymore here. (fpr_is_zero): New. (generate_keypair): Generate both keys for a card. (smartcard_change_url): Nw.