aboutsummaryrefslogtreecommitdiffstats
path: root/g10/card-util.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-06-17Add readcert command.Werner Koch1-7/+74
fix reading large certificates.
2009-06-09app-openpgp changesWerner Koch1-26/+49
2009-06-03Fixed an fopen problem on Windows Vista.Werner Koch1-0/+1
2009-06-02Fix for bug#1066.Werner Koch1-0/+1
A couple of minor changes.
2009-05-15Made card key generate with backup key work for 2048 bit.Werner Koch1-1/+15
Improved card key generation prompts.
2009-01-27Add a Geldkarte gadget application.Werner Koch1-0/+6
Minor other changes.
2009-01-13Add a sample key.Werner Koch1-2/+23
Detect and show the card type.
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-2/+2
2008-09-25Finished support for v2 cards with the exception of secure messaging.Werner Koch1-2/+45
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-54/+118
2008-01-26Add --logger-fd alias.Werner Koch1-0/+2
Ass card vendor 004.
2007-07-17Typo fixes.Werner Koch1-3/+6
Made --default-key work for gpgsm Add --default-key and --encrypt-to to gpgconf.
2007-07-05Fixed card key generation of gpg2.Werner Koch1-13/+3
Reveal less information about timings while generating a key.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-10-02Fix for bug 537Werner Koch1-1/+1
2006-09-21Various updatesWerner Koch1-0/+1
2006-06-30A couple of fixes. gpg2's key generation does now work.Werner Koch1-1/+1
2006-05-23g10/ does build again.Werner Koch1-11/+7
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-77/+323
The gpg part does not yet build.
2006-03-21Allow for rmd160 signatures when using gpg-agent.Werner Koch1-0/+1
2006-01-01* mainproc.c (check_sig_and_print), keyserver.cDavid Shaw1-1/+1
(keyserver_import_pka), card-util.c (fetch_url): Always require a scheme:// for keyserver URLs except when used as part of the --keyserver command for backwards compatibility.
2005-10-18Fixed minor card related bugs and enhanced status messagesWerner Koch1-16/+17
2005-09-07Add "help" sub option to --*-options.Werner Koch1-0/+1
2005-07-27Converted all m_free to xfree etc.Werner Koch1-1/+1
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-05-03* passphrase.c (agent_get_passphrase): Add new arg CACHEID.Werner Koch1-0/+4
Changed all callers. (ask_passphrase): Add new arg CACHEID and use it in agent mode. Changed all callers. (passphrase_clear_cache): New arg CACHEID. Changed all callers. * cardglue.c (format_cacheid): New. (pin_cb): Compute a cache ID. (agent_scd_pksign, agent_scd_pkdecrypt): Use it. (agent_clear_pin_cache): New. * card-util.c (change_pin): Clear the PIN cache. (check_pin_for_key_operation): Ditto.
2005-04-07* ccid-driver.c (ccid_slot_status): Fixed debug messages.Werner Koch1-2/+35
* card-util.c (card_edit): Add command "verify". Enhanced admin command to allow optional arguments "on", "off" and "verify". (card_status): Print private DOs in colon mode. * app-openpgp.c (do_check_pin): Add hack to allow verification of CHV3.
2005-03-21* keyedit.c (command_generator, keyedit_completion): ChangedWerner Koch1-9/+16
indentation. * card-util.c (command_generator, card_edit_completion): Ditto.
2005-03-20* card-util.c (command_generator, card_edit_completion)David Shaw1-14/+69
[GNUPG_MAJOR_VERSION==1 && HAVE_LIBREADLINE]: New functions to enable command completion in the --card-edit menu. (card_edit): Call them here.
2005-03-14* card-util.c (card_status): Use isotimestamp and not theWerner Koch1-3/+3
localized asctimestamp to match the timezone used in the key information. * miscutil.c (isotimestamp): New.
2005-03-14* cardglue.c (pin_cb): Disable debug output.Werner Koch1-1/+1
* mk-w32-dist: Check for patch files. * w32installer.nsi: Translated a few more strings. Print a warning if permssions are not suitable for the installation. Add Uninstaller entries.
2005-03-07* primegen.c (is_prime): Free A2. Noted by [email protected].Werner Koch1-6/+17
Fixes #423. * DETAILS: Document new status codes. * cardglue.c (agent_scd_pkdecrypt, agent_scd_pksign) (agent_scd_genkey, agent_scd_setattr, agent_scd_change_pin) (agent_scd_checkpin, agent_openpgp_storekey): Make sure to send a SC_OP_FAILURE after card operations which might change data. * card-util.c (change_pin): Send a SC_OP_SUCCESS after a PIN has been changed. (change_name): Removed a debug output. * status.h, status.c: New codes BAD_PASSPHRASE_PIN, SC_OP_FAILURE and SC_OP_SUCCESS. * de.po: Updated. Translation is still in the works, though.
2005-02-16* card-util.c (fetch_url): Fetch the key from the defaultWerner Koch1-4/+9
keyserver if no URL is available. * w32installer.nsi: Added page to select the language. * mk-w32-dist: Create the opt.ini using the available languages.
2005-02-15* gpg.sgml: Add bkuptocard command for --edit-key.Werner Koch1-3/+4
* passphrase.c (agent_get_passphrase): Don't call free_public_key if PK is NULL. (passphrase_clear_cache): Ditto. Removed debug output. (passphrase_to_dek): Ditto.
2005-01-20* gpgv.c (tty_fprintf): New stub.Werner Koch1-4/+31
* card-util.c (card_status): Create asecret key stub on the fly and print more information about a card key. * import.c (pub_to_sec_keyblock, auto_create_card_key_stub): New. * getkey.c (get_seckeyblock_byfprint): New. * keylist.c (print_card_key_info): New.
2004-12-14Prepared for last 1.4 release candidateWerner Koch1-22/+19
2004-12-10* app-openpgp.c (send_fprtime_if_not_null): New.Werner Koch1-1/+12
(do_getattr): Add KEY_TIME. (do_learn_status): Print KEY_TIME. * cardglue.c (learn_status_cb): Parse KEY-TIME. * card-util.c (card_status): Print creation time if available.
2004-12-09* passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT andWerner Koch1-1/+88
CUSTOM_DESCRIPTION. Changed all callers. * app-openpgp.c (do_getattr, do_learn_status, do_setattr): Support the new private DOs. (do_change_pin): Add a "N" prefix to the strings so that the callback can act accordingly for a new PIN. Unfortunately this breaks existing translations but I see no wother way to overvome this. * cardglue.c (learn_status_cb): Ditto. (agent_release_card_info): Ditto. (struct pin_cb_info_s): Removed and changed all users. (pin_cb): Reworked. * card-util.c (card_status): Print them (card_edit): New command PRIVATEDO. (change_private_do): New.
2004-10-28* card-util.c, delkey.c, keygen.c, plaintext.c, keyedit.c, passphrase.c,David Shaw1-2/+2
revoke.c: Collapse the two different "can't do that in batch mode" strings into one.
2004-10-28* keylist.c (status_one_subpacket): New. Send the subpacket data to theDavid Shaw1-0/+4
--status interface. * card-util.c (card_edit): Show when admin is enabled or not. * status.h, status.c: New STATUS_SIG_SUBPACKET type. * build-packet.c (build_sig_subpkt): Multiple keyserver URLs are allowed.
2004-10-26(agent_send_all_options): Try to deduce the ttynameWerner Koch1-3/+23
from stdin.
2004-10-22Compile fixes.Werner Koch1-5/+25
2004-10-22Updated from 1.3Werner Koch1-130/+489
2004-10-21* configure.ac: Remove the check for asprintfWerner Koch1-3/+3
* app-common.h (app_openpgp_storekey: Add prototype. * app-openpgp.c (do_sign): Replace asprintf by direct allocation. This avoids problems with missing vasprintf implementations. * card-util.c (generate_card_keys): Add a #warning for gnupg 1.9 and use the same string there. * util.h [!HAVE_VASPRINTF]: Removed prototype. * vasprintf.c: Removed. It was used only at one place and I don't want to get into build problems in 1.4.
2004-10-13Added SELInux hacks and did some cleanups.Werner Koch1-2/+9
2004-10-11* pkclist.c (do_edit_ownertrust): Use the same translated string forDavid Shaw1-1/+1
showing the user ID as mainproc.c:print_pkenc_list. * mainproc.c (print_pkenc_list): Allow translating the quotes around the user ID. * card-util.c, g10.c, photoid.c, trustdb.c: The last of the \"%s\" -> `%s' quoting for things that aren't user IDs. * keyserver.c (keyserver_spawn): If there is no keyserver host, print the whole URI since it is self-contained.
2004-10-10* card-util.c, keyedit.c, openfile.c, pkclist.c, delkey.c, keygen.c,David Shaw1-3/+15
photoid.c, revoke.c: Some yes-or-no prompts end in "(y/n)". Some don't. Consistently use y/n everywhere.
2004-09-27* card-util.c (card_edit): Take admin only status from the table.Werner Koch1-33/+27
* app-openpgp.c: Made all strings translatable. (verify_chv3) [GNUPG_MAJOR_VERSION]: Make opt.allow_admin available for use in gnupg 2. (verify_chv3): Reimplemented countdown showing to use only functions from this module. Flush the CVH status cache on a successful read. (get_one_do): Hack to bypass the cache for cards versions > 1.0. (store_fpr): Store the creation date for card version > 1.0.
2004-09-25* main.h, g10.c (main), card-util.c (change_pin): If "admin" has not beenDavid Shaw1-74/+106
issued, skip right to the CHV1/CHV2 PIN change. No need to show the unblock or admin PIN change option. (card_edit): Add "admin" command to add admin commands to the menu. Do not allow admin commands until "admin" is given. * app-openpgp.c (verify_chv3): Show a countdown of how many wrong admin PINs can be entered before the card is locked. * options.h, g10.c (main), app-openpgp.c (verify_chv3): Remove --allow-admin.
2004-09-23Note: I have not fully tested the new key creation due to a pc/scWerner Koch1-127/+8
error. However the backupfile has been created successfully. * rsa.c (rsa_generate): Return the dummy list of factors only if the caller asked for it. * card_util.c (generate_card_keys): ask whether backup should be created. (card_store_subkey): Factored some code out to .. * keygen.c (save_unprotected_key_to_card): .. new function. (gen_card_key_with_backup): New. (generate_raw_key): New. (generate_keypair): New arg BACKUP_ENCRYPTION_DIR. Changed all callers. (do_generate_keypair): Divert to gen_card_key_with_backup when desired.