aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-15Fix pinpad input support for passphrase modification. (backport)NIIBE Yutaka1-112/+66
* apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0. (pcsc_keypad_modify): Likewise. (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA. bConfirmPIN value is determined by the parameter p0. * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when reset_mode is on, or resetcode is on. use_keypad only makes sense for iso7816_change_reference_data_kp. * iso7816.h (iso7816_put_data_kp): Remove. (iso7816_reset_retry_counter_kp): Remove. (iso7816_reset_retry_counter_with_rc_kp): Remove. (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE. * iso7816.c (iso7816_put_data_kp): Remove. (iso7816_reset_retry_counter_kp): Remove. (iso7816_reset_retry_counter_with_rc_kp): Remove. (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
2012-06-15scd: Fix pinpad input support (backport from master)NIIBE Yutaka1-37/+98
* app-openpgp.c (do_change_pin): Fix pincb messages when use_keypad == 1.
2012-06-15scd: PC/SC pinpad support (pinpad input for modify pass phrase). (backport)NIIBE Yutaka1-19/+41
* iso7816.h (iso7816_change_reference_data_kp): Remove arguments of OLDCHV, OLDCHVLEN, NEWCHV, and NEWCHVLEN. * iso7816.c (iso7816_change_reference_data_kp): Call apdu_keypad_modify. (iso7816_change_reference_data): Don't call iso7816_change_reference_data_kp. * apdu.h (apdu_keypad_modify): New. * apdu.c (pcsc_keypad_modify, apdu_keypad_modify): New. (struct reader_table_s): New memeber function keypad_modify. (new_reader_slot, open_ct_reader, open_ccid_reader) (open_rapdu_reader): Initialize keypad_modify. * app-openpgp.c (do_change_pin): Handle keypad and call iso7816_change_reference_data_kp if it is the case.
2012-06-15scd: PC/SC pinpad support. (Backported from master.)NIIBE Yutaka1-2/+2
* iso7816.h (iso7816_verify_kp): Remove arguments of CHV and CHVLEN. * iso7816.c (iso7816_verify_kp): Call apdu_keypad_verify. Only handle thecase with PININFO. (iso7816_verify): Call apdu_send_simple. * app-openpgp.c (verify_a_chv, verify_chv3): Follow the change of iso7816_verify_kp. * app-nks.c (verify_pin): Likewise. * app-dinsig.c (verify_pin): Likewise. * apdu.c: Include "iso7816.h". (struct reader_table_s): New memeber function keypad_verify. Add fields verify_ioctl and modify_ioctl in pcsc. (CM_IOCTL_GET_FEATURE_REQUEST, FEATURE_VERIFY_PIN_DIRECT) (FEATURE_MODIFY_PIN_DIRECT): New. (pcsc_control): New. (control_pcsc_direct, control_pcsc_wrapped, control_pcsc) (check_pcsc_keypad, pcsc_keypad_verify): New. (ccid_keypad_verify, apdu_keypad_verify): New. (new_reader_slot): Initialize with check_pcsc_keypad, pcsc_keypad_verify, verify_ioctl and modify_ioctl. (open_ct_reader): Initialize keypad_verify with NULL. (open_ccid_reader): Initialize keypad_verify. (open_rapdu_reader): Initialize keypad_verify with NULL. (apdu_open_reader): Initialize pcsc_control. * pcsc-wrapper.c (load_pcsc_driver): Initialize pcsc_control. (handle_control): New. (main): Handle the case 6 of handle_control.
2011-07-07Allow generation of card keys up to 4096 bit.Werner Koch1-9/+20
This patch implementes a chunk mode to pass the key parameters from scdaemon to gpg. This allows to pass arbitrary long key paremeters; it is used for keys larger than 3072 bit.
2009-09-03Fix for extended length Le in decipherWerner Koch1-8/+12
2009-08-05Ask for the keysize when generating a new card key.Werner Koch1-0/+48
2009-07-10Better reset the PIN verification stati after changing the key attributes.Werner Koch1-0/+3
2009-07-10Fix for card keys > 2048 bit.Werner Koch1-3/+31
2009-07-09Support writing of existing keys with non-matching key sizes.Werner Koch1-5/+74
2009-06-29Reworked the estream memory buffer allocation.Werner Koch1-35/+37
Committed already posted patches for the v2 card.
2009-06-17Add readcert command.Werner Koch1-52/+74
fix reading large certificates.
2009-06-09app-openpgp changesWerner Koch1-4/+8
2009-06-08Typo fix. Updated German translation.Werner Koch1-5/+5
2009-05-20Make PIN changing code work for v2 cards.Werner Koch1-130/+246
2009-05-15Made card key generate with backup key work for 2048 bit.Werner Koch1-0/+3
Improved card key generation prompts.
2009-05-08More support for Netkey cards.Werner Koch1-34/+70
Small changes to teh CCID driver. Support 2048 bit OpenPGP cards.
2009-04-01Prepare for OpenPGP cards with extended length support.Werner Koch1-4/+8
2009-03-30Implement decryption for TCOS 3 cards.Werner Koch1-2/+4
2009-03-18Add server option with-ephemeral-keys.Werner Koch1-1/+3
Extend SCD LEARN command.
2009-03-10Add new attribute KEY-ATTR.Werner Koch1-8/+35
2009-03-05New PIN Callback attributes in gpg-agent.Werner Koch1-64/+61
Common prompts for keypad and simple card reader. More support for Netkey cards; PIN management works now.
2008-12-05Add option --card-timeout.Werner Koch1-3/+6
Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
2008-11-03Use bin2hex if possible.Werner Koch1-13/+10
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+5
2008-09-25Finished support for v2 cards with the exception of secure messaging.Werner Koch1-88/+425
2008-09-23Improvements for 2k keys.Werner Koch1-37/+137
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-13/+169
2008-08-312008-08-30 Moritz <[email protected]>Moritz Schulte1-4/+4
* scdaemon.c (main): Use estream_asprintf instead of asprintf. * command.c (update_reader_status_file): Likewise. (cmd_serialno): Use estream_asprintf instead of asprintf and xfree instead of free to release memory allocated through (estream_)asprintf. (cmd_learn): Likewise. (pin_cb): Likewise. * app-openpgp.c (get_public_key): Likewise.
2008-08-18Fix new test for v2 cards.Werner Koch1-2/+2
2008-07-30prompt change.Werner Koch1-2/+2
2008-07-17Do not run the setuid test if running under as root proper.Werner Koch1-2/+60
Documentation fixes. Some enhancements for the new OpenPGP Card.
2008-06-24Add support for the TCOS NullPIN feature.Werner Koch1-1/+3
2008-04-21Use default PIN flagWerner Koch1-1/+20
2008-03-26Preparing a release.Werner Koch1-21/+69
2007-12-12Support DSA2.Werner Koch1-1/+1
Support Camellia for testing. More audit stuff.
2007-12-10Fix for bug 851.Werner Koch1-3/+44
Fixed auto generation of the stub key for the card. Allow to encrypt toElgamal encryption keys of type 20.
2007-07-05Fixed card key generation of gpg2.Werner Koch1-4/+5
Reveal less information about timings while generating a key.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-06First steps towards supporting W32.Werner Koch1-2/+2
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2006-12-21The keypad is now also used for OpenPGP signing keys.Werner Koch1-98/+141
2006-11-20Made some PIN pads work.Werner Koch1-12/+37
Some cleanups for 64 bit CPUs.
2006-10-11Allow pkcs#10 creation directkly from a smart cardWerner Koch1-1/+21
2006-10-05bug fixesWerner Koch1-1/+1
2006-09-232006-09-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+8
* app-openpgp.c (do_sign): Advance INDATA by the SHA1 resp. RMD160 prefix length.
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-10/+10
2006-08-292006-08-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-34/+42
* app-openpgp.c (do_decipher, do_sign): Allow "OPENPGP.2" resp. "OPENPGP.1" for KEYIDSTR.
2006-06-30A couple of fixes. gpg2's key generation does now work.Werner Koch1-1/+1
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-04-11Added command APDUWerner Koch1-2/+2