aboutsummaryrefslogtreecommitdiffstats
path: root/g10/passphrase.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-10-19Factored utf8 switching code out to i18n.c.Werner Koch1-28/+6
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-06First steps towards supporting W32.Werner Koch1-0/+2
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-05-182007-05-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+2
* passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
2007-05-18agent/Marcus Brinkmann1-3/+6
2007-05-19 Marcus Brinkmann <[email protected]> * protect-tool.c (get_passphrase): Free ORIG_CODESET on error. g10/ 2007-05-19 Marcus Brinkmann <[email protected]> * passphrase.c (passphrase_get): Free ORIG_CODESET on error. sm/ 2007-05-18 Marcus Brinkmann <[email protected]> * qualified.c (gpgsm_qualified_consent, gpgsm_not_qualified_warning): Free ORIG_CODESET on error. * certdump.c (gpgsm_format_keydesc): Likewise. tools/ 2007-05-19 Marcus Brinkmann <[email protected]> * symcryptrun.c (confucius_get_pass): Free ORIG_CODESET on error.
2007-04-282007-04-26 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+2
* passphrase.c (passphrase_to_dek): Write missing passphrase status message in case of cancellation.
2007-01-31Included LIBICONV in all Makefiles.Werner Koch1-2/+13
g10/ * passphrase.c (passphrase_get): Set the cancel flag on all error from the agent. Fixes a bug reported by Tom Duerbusch. sm/ * gpgsm.c (main): Let --gen-key print a more informative error message.
2006-12-06Fixes for CVE-2006-6235Werner Koch1-5/+20
2006-12-03* options.h, gpg.c (main), passphrase.c (passphrase_to_dek): AddDavid Shaw1-11/+15
--passphrase-repeat option to control how many times gpg will re-prompt for a passphrase to ensure the user has typed it correctly. Defaults to 1.
2006-10-13* parse-packet.c (parse_symkeyenc): Show the unpacked as well as theDavid Shaw1-2/+2
packed s2k iteration count. * main.h, options.h, gpg.c (encode_s2k_iterations, main), passphrase.c (hash_passphrase): Add --s2k-count option to specify the number of s2k hash iterations.
2006-10-04Re-enabled --passphrase-fdWerner Koch1-15/+57
2006-10-04Fixed agent access for gpg.Werner Koch1-759/+289
2006-07-31Fix bug 655Werner Koch1-1/+1
2006-05-23g10/ does build again.Werner Koch1-2/+2
2006-04-19Continued with merging.Werner Koch1-16/+17
Still does not build.
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-676/+509
The gpg part does not yet build.
2006-01-17* keydb.h, passphrase.c (next_to_last_passphrase): New. "Touch" aDavid Shaw1-18/+11
passphrase as if it was used (move from next_pw to last_pw). * pubkey-enc.c (get_session_key): Use it here to handle the case where a passphrase happens to be correct for a secret key, but yet that key isn't the anonymous recipient (i.e. the secret key could be decrypted, but not the session key). This also handles the case where a secret key is located on a card and a secret key with no passphrase. Note this does not fix bug 594 (anonymous recipients on smartcard do not work) - it just prevents the anonymous search from stopping when the card is encountered.
2005-09-07Add "help" sub option to --*-options.Werner Koch1-1/+1
2005-08-05* g10.c (main), passphrase.c (set_passphrase_from_string): NewDavid Shaw1-0/+13
--passphrase command line option. Only useful in very special circumstances.
2005-07-27Converted all m_free to xfree etc.Werner Koch1-34/+34
2005-07-26* passphrase.c (agent_get_passphrase): Make sure to release theWerner Koch1-4/+29
saved codeset. (agent_open): Add arg ORIG_CODESET and switch back to it in case of error. Changed all callers. * zh_TW.po, fr.po, cs.po: Updated.
2005-06-01* signal.c [HAVE_DOSISH_SYSTEM]: Fix unused function warnings on mingw32.David Shaw1-9/+2
Noted by Joe Vender. * passphrase.c [_WIN32]: Remove unused variables.
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-05-24* passphrase.c (ask_passphrase): Unescape the description string.Werner Koch1-1/+10
* cardglue.c (unescape_status_string): Removed. Changed all caller to use ... * misc.c (unescape_percent_string): New.
2005-05-20(ccid_transceive): Arghhh. The seqno is anotherWerner Koch1-18/+35
bit in the R-block than in the I block, this was wrong at one place. Fixes bug #419 and hopefully several others.
2005-05-03* passphrase.c (agent_get_passphrase): Add new arg CACHEID.Werner Koch1-23/+48
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-05Changes to make use of code taken from libassuan. This replaces theWerner Koch1-570/+199
old ad-hoc connection code to gpg-agent. We do need this for the forthcoming diversion of card code to an already running gpg-agent with card-support.
2005-02-15* gpg.sgml: Add bkuptocard command for --edit-key.Werner Koch1-8/+13
* 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-10* passphrase.c (readline, agent_send_option, agent_open,David Shaw1-7/+5
agent_get_passphrase, passphrase_clear_cache): Rename readline() to readaline() to keep readline library namespace clear.
2004-12-20* keyedit.c (keyedit_menu): Invisible alias "passwd" as "password".David Shaw1-2/+2
* passphrase.c: Don't check for __CYGWIN__, so it is treated as a unix-like system. * options.h, g10.c (main), textfilter.c (standard): Use new option --rfc2440-text to determine whether to filter "<space>\t\r\n" or just "\r\n" before canonicalizing text line endings. Default to "<space>\t\r\n".
2004-12-17* passphrase.c (agent_get_passphrase): Define NREAD locally asWerner Koch1-1/+3
size_t or int. * keylist.c (list_keyblock_print): Make field width an int. * keyedit.c (show_key_with_all_names): Ditto.
2004-12-14automake updates, removed one debug outputV1-3-93Werner Koch1-1/+0
2004-12-13(read_passphrase_from_fd): Fixed memory leak.Werner Koch1-1/+4
Noted by Andrei Darashenka.
2004-12-09* passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT andWerner Koch1-10/+39
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-11-17(open_info_file): New.Werner Koch1-11/+17
(main): Unconditionally implement --status-file, --logger-file, --attribute-file, --passphrase-file, --command-file. This is not generally useful but easy to support and might make scripting under Windows easier.
2004-11-032004-11-03 Timo Schulz <[email protected]>Timo Schulz1-64/+73
* strgutil.c (w32_strerror): New. * ttyio.c (init_ttyfp, tty_printf, do_get): Use it here. * iobuf.c (fd_cache_open, file_filter): Likewise. (iobuf_seek, translate_file_handle): Likewise.
2004-10-28* skclist.c (build_sk_list): Don't need to warn about PGP-generatedDavid Shaw1-4/+5
Elgamal signing keys since we no longer support any Elgamal signing keys. * sign.c (sign_file, clearsign_file): Use "writing to" instead of "writing to file" to match other strings. * pkclist.c (check_signatures_trust): Fix typo. Noted by Moray Allan. This is Debian bug #278708. * passphrase.c (ask_passphrase, passphrase_to_dek): "password" -> "passphrase". * keyedit.c (show_key_with_all_names): Show designated revoker as part of translatable string.
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-26(agent_send_all_options): Try to deduce the ttynameWerner Koch1-2/+6
from stdin.
2004-10-17(agent_get_passphrase): Cast UIDLEN to int. NotedWerner Koch1-1/+1
by Christian Cornelssen.
2004-10-15* README: Mentioned --enable-selinux-support.Werner Koch1-3/+0
* status.h (STATUS_NEED_PASSPHRASE_PIN): New. * status.c (get_status_string): Added. * passphrase.c (ask_passphrase): Moved status printing to .. * cardglue.c (pin_cb): .. here and issue new status message. * keyedit.c (sign_uids): Don't include the leading LF in the translatable string but print them separately. * apdu.c (apdu_open_remote_reader) [_WIN32]: We don't have ENOSYS.
2004-10-06* helptext.c, pkclist.c (do_we_trust): It is not possible to get here withDavid Shaw1-6/+4
a revoked or expired key, so BUG() that case. Remove question about overriding revoked/expired. Also --keyid-format-ify. (do_we_trust_pre): Use print_pubkey_info() instead of printing the info ourselves. * passphrase.c (passphrase_to_dek): Improve translatability of user ID prompts. * keylist.c (print_pubkey_info): Use the user ID the pk was selected by, if any.
2004-10-05* passphrase.c (agent_get_passphrase): Use keystrs for agent strings, andDavid Shaw1-14/+20
fix sprintf warnings. * keyserver.c (keyserver_spawn): Fix BUG() with certain sets of mixed regular and preferred keyserver refreshes. Noted by Sebastian Wiesinger. * keyedit.c (show_key_with_all_names): Show uid validity in menu.
2004-09-24* main.h: Create S2K_DIGEST_ALGO macro so we do not need to always setDavid Shaw1-1/+1
opt.s2k_digest_algo. This helps fix a problem with PGP 2.x encrypted symmetric messages. Change all callers (encode.c, g10.c, keyedit.c, keygen.c, passphrase.c, sign.c). * armor.c, cardglue.c, getkey.c, import.c, keygen.c: Be consistent in some more quoted strings. Always use 'user ID', not 'user id', "quotes" for user IDs, etc.
2004-08-182004-08-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-3/+5
* passphrase.c (agent_get_passphrase):
2004-08-182004-08-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-3/+5
* passphrase.c (agent_get_passphrase):
2004-06-16* free-packet.c (copy_secret_key): Fixed memory leak when D is notWerner Koch1-1/+20
NULL. * passphrase.c (passphrase_to_dek): Added a few comments to the code.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-6/+6
Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
2004-03-05* getkey.c (merge_selfsigs_subkey): Do not mark subkeys valid if we do notDavid Shaw1-1/+1
support their pk algorithm. This allows for early (during get_*) rejection of a subkey, and selection of another. * passphrase.c (passphrase_to_dek): Give a little more information when we have room to do so.
2004-03-05* revoke.c (export_minimal_pk), export.c (do_export_stream), passphrase.cDavid Shaw1-4/+14
(passphrase_to_dek), keyserver.c (print_keyrec): A few more places to use --keyid-format. * options.h, g10.c (main), export.c (parse_export_options, do_export_stream): Remove --export-all and the "include-non-rfc" export-option as they are no longer meaningful with the removal of v3 Elgamal keys.