| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
* Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
|
|
|
|
|
|
|
|
|
|
| |
* certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
* verify.c (strtimestamp_r, gpgsm_verify): Ditto.
* sign.c (gpgsm_sign): Ditto.
* keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
* certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
Ditto.
|
|
|
|
|
|
|
|
|
|
|
| |
* sign.c (gpgsm_sign):
* keylist.c (print_time, list_cert_std, list_cert_colon):
* certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
* certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
|
|
|
|
|
| |
(get_ccid_error_string): New. Not very useful messages, though.
|
| |
|
|
|
|
|
|
|
| |
(gnupg_copy_time): New.
* gettime.c (gnupg_get_isotime): New.
|
| |
|
|
|
|
|
| |
time interface.
|
| |
|
|
|
|
|
|
|
| |
!spacep().
* apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
|
|
|
|
|
| |
of !spacep().
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
|
| |
check the PIN in advance.
(card_status): Add new args to return the serial number. Changed
all callers.
* call-agent.c (agent_scd_checkpin): New.
|
|
|
|
|
|
| |
Hurd; Robert Millan reported that the uname test is now
sufficient.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
structure, so that it can indeed be updated.
* card-util.c (fpr_is_zero): New.
(generate_card_keys): New.
(card_edit): New command "generate".
* keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
to check_smartcard.
(check_smartcard,show_smartcard): Removed.
(show_sha1_fpr,fpr_is_zero): Removed.
* app-openpgp.c (do_getattr): Support SERIALNO and AID.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
|
|
|
|
|
| |
* card_status (card_status): Do not use fputs since the fp
parameter can be NULL. This fixes a segv.
|
|
|
|
|
| |
(print_sha1_fpr_colon): New.
|
| |
|
|
|
|
|
|
| |
* card-util.c (card_status): Free pk in case of an error
and return if the card is no OpenPGP card.
|
|
|
|
|
|
| |
(read_device_info): New.
(ccid_open_reader): Check that the device has all required features.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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_print_string, tty_print_utf8_string2)
(tty_print_utf8_string): Made P argument const byte*.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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, ccid-driver.h: Alternativley allow use under BSD
conditions.
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* apdu.c (new_reader_slot): Only set 'is_osc' when OpenSC
is used.
|
|
|
|
|
|
| |
* pkglue.c (mpi_from_sexp): New. Used to factor out
some common code.
|
|
|
|
|
|
|
| |
(cmd_genkey): Use a copy of KEYNO.
(cmd_passwd): Use a copy of CHVNOSTR.
(cmd_pksign, cmd_pkauth, cmd_pkdecrypt): s/strdup/xtrystrdup/.
|
|
|
|
|
|
| |
* pksign.c (do_encode_md): Allocate enough space. Cast md
byte to unsigned char to prevent sign extension.
|
|
|
|
|
|
| |
* maperror.c (map_ksba_err): Map -1. Use gpg_err_make to set
the error source.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* apdu.c (apdu_open_reader): Use that option here instead of a
hardcoded one.
|
|
|
|
|
|
| |
* configure.ac (AM_PATH_GPG_ERROR): Add missing comma in
invocation.
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
| |
* encrypt.c (encode_session_key): Use new Libgcrypt interface.
|
| |
|
|
|
|
|
|
| |
* pksign.c: do_encode_md: Due to the fact pkcs#1 padding
is now in Libgcrypt, use the new interface.
|