| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
| |
* dlfcn.h. New. W32 wrapper around the dynload mechanism.
|
|
|
|
|
|
|
| |
(pk_verify): Check for valid DATA array so that we don't segv in
Libgcrypt.
(pk_verify): Ditto.
|
| |
|
| |
|
| |
|
|
|
|
| |
'GNUPG-1-9-BRANCH'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
(do_generate_keypair): Abd generate the authkey.
(check_smartcard): Changed menu accordingly.
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
(Sorry, it does not build currently - I need to check it in to avoid
duplicate work.)
|
|
|
|
| |
'GNUPG-1-9-BRANCH'.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* apdu.c, apdu.h: New
* card.c, card-p15.c, card-dinsig.c: Allow build without OpenSC.
|
|
|
|
|
|
|
|
|
|
| |
is not available.
* configure.ac (ALL_LINUGAS): Removed.
* Makefile.am (ACLOCAL_AMFLAGS): New.
* configure.ac (AM_GNU_GETTEXT_VERSION): New. Set to 0.11.5.
|
| |
|
|
|
|
|
|
| |
* Makefile.am (ACLOCAL_AMFLAGS): New.
* configure.ac (AM_GNU_GETTEXT_VERSION): New. Set to 0.11.5.
|
| |
|