aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,Werner Koch2002-03-282-34/+23
| | | | | | the scdaemon should take care of it. (ask_for_card): Hack to not display the trailing zero.
* * export.c: New.Werner Koch2002-03-216-8/+304
| | | | | | * gpgsm.c: Add command --export. * server.c (cmd_export): New.
* Added missing fileNEWPG-0-3-3Werner Koch2002-03-181-0/+1
|
* More stuff for SCs - don't expect them to work.Werner Koch2002-03-183-0/+671
|
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-1814-421/+208
|
* * decrypt.c (gpgsm_decrypt): Allow multiple recipients.Werner Koch2002-03-134-14/+33
|
* More error codesWerner Koch2002-03-121-0/+2
|
* * verify.c (gpgsm_verify): Detect certs-only message.Werner Koch2002-03-1211-41/+120
|
* * server.c (cmd_listkeys, cmd_listsecretkeys): Divert toNEWPG-0-3-2Werner Koch2002-03-063-25/+119
| | | | | | (do_listkeys): new. Add pattern parsing. * keylist.c (gpgsm_list_keys): Handle selection pattern.
* sm/Werner Koch2002-03-0616-85/+649
| | | | | | | | | | | | | | | | | * gpgsm.c: New command --learn-card * call-agent.c (learn_cb,gpgsm_agent_learn): New. * gpgsm.c (main): Print error messages for non-implemented commands. agent/ * learncard.c: New. * divert-scd.c (ask_for_card): The serial number is binary so convert it to hex here. * findkey.c (agent_write_private_key): New. * genkey.c (store_key): And use it here. scd/ * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done. * divert-scd.c (divert_pkdecrypt): Changed interface and implemented it.
* * assuan-client.c (_assuan_read_from_server): Detect END.Werner Koch2002-03-062-0/+24
| | | | | (assuan_transact): Pass it to the data callback.
* Decryption using a Cryptoflex card does now work.Werner Koch2002-03-0611-30/+305
|
* We got more error codes than actual code ;-)Werner Koch2002-03-051-0/+1
|
* Well and some stuff to access the SC will be helpful. Note, that theWerner Koch2002-03-053-16/+116
| | | | | code requires the latest OpenSC CVS code.
* This file was missing.Werner Koch2002-03-051-0/+98
|
* Signing using a PKCS15 smartcard does work. How to create such a cardWerner Koch2002-03-055-29/+354
| | | | | | is of course a different thing. Note, that you need to create the shadowed-private-key file manually.
* * gpgsm.c, gpgsm.h: Add local_user.Werner Koch2002-03-059-55/+96
| | | | | | | | | | | * sign.c (gpgsm_get_default_cert): New. (get_default_signer): Use the new function if local_user is not set otherwise used that value. * encrypt.c (get_default_recipient): Removed. (gpgsm_encrypt): Use gpgsm_get_default_cert. * verify.c (gpgsm_verify): Better error text for a bad signature found by comparing the hashs.
* Minor fixes; about to release 0.3.1NEWPG-0-3-1Werner Koch2002-03-042-1/+4
|
* * pksign.c (agent_pksign): Detect whether a Smartcard is to beWerner Koch2002-03-048-80/+198
| | | | | | | | | | | | used and divert the operation in this case. * pkdecrypt.c (agent_pkdecrypt): Likewise * findkey.c (agent_key_from_file): Add optional arg shadow_info and have it return information about a shadowed key. * protect.c (agent_get_shadow_info): New. * protect.c (snext,sskip,smatch): Moved to * sexp-parse.h: new file. * divert-scd.c: New.
* Added more code fragments.Werner Koch2002-03-043-29/+220
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-2823-106/+810
| | | | | no real code yet.
* * assuan-client.c (assuan_transact): Add 2 more arguments toWerner Koch2002-02-286-4/+242
| | | | | | | support status lines. Passing NULL yields the old behaviour. * assuan-handler.c (process_request): Flush data lines send without using the data fp.
* * server.c (option_handler): Allow to use -2 for "send all certsWerner Koch2002-02-259-6/+69
| | | | | | | except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
* * keybox-search.c (blob_cmp_mail): Use case-insensitive compareWerner Koch2002-02-252-20/+65
| | | | | | | | | | | | | | because mail addresses are in general case insensitive (well RFC2822 allows for case sensitive mailbox parts, but this is in general considired a Bad Thing). Add additional substr parameter to allow for substring matches within the mail address. Change all callers to pass this along. (blob_cmp_name): Likewise but do the case-insensitive search only in sub string mode. (keybox_search): Implement MAILSUB and SUBSTR mode. * stringhelp.c (ascii_memcasemem): New.
* * certpath.c (check_cert_policy): New.Werner Koch2002-02-196-11/+280
| | | | | | | | (gpgsm_validate_path): And call it from here. * gpgsm.c (main): New options --policy-file, --disable-policy-checks and --enable-policy-checks. * gpgsm.h (opt): Added policy_file, no_policy_checks.
* * findkey.c (unprotect): Show an error message for a bad passphrase.Werner Koch2002-02-182-1/+6
|
* * certpath.c (gpgsm_validate_path): Ask the agent to add theWerner Koch2002-02-184-15/+77
| | | | | | certificate into the trusted list. * call-agent.c (gpgsm_agent_marktrusted): New.
* Some experimental code - don't use it.Werner Koch2002-02-184-16/+315
|
* More error codesWerner Koch2002-02-183-0/+23
|
* A bunch of new features. Allow empty responses on an inquiry.Werner Koch2002-02-186-18/+62
|
* * command.c (cmd_marktrusted): Implemented.Werner Koch2002-02-185-10/+161
| | | | | | | | * trustlist.c (agent_marktrusted): New. (open_list): Add APPEND arg. * query.c (agent_get_confirmation): New.
* * fopencookie.c: Dummy function.Werner Koch2002-02-127-4/+288
| | | | | | | | * vasprintf.c: New. Taken from binutils-2.9.1 and dropped all non ANSI-C stuff. Merged with asprintf version. * no-pth.c: New.
* * assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.Werner Koch2002-02-123-1/+23
| | | | | * assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.
* Set version numbers add a commentNEWPG-0-3-0Werner Koch2002-02-071-0/+1
|
* * certlist.c (gpgsm_add_to_certlist): Check that the specifiedWerner Koch2002-02-0710-21/+79
| | | | | | | | | | | | | | | | name identifies a certificate unambiguously. (gpgsm_find_cert): Ditto. * server.c (cmd_listkeys): Check that the data stream is available. (cmd_listsecretkeys): Ditto. (has_option): New. (cmd_sign): Fix ambiguousity in option recognition. * gpgsm.c (main): Enable --logger-fd. * encrypt.c (gpgsm_encrypt): Increased buffer size for better performance. * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from the agent. * keylist.c (list_cert_colon): Filter out control characters.
* * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.Werner Koch2002-02-063-45/+45
| | | | | | | | * server.c (reset_notify): Close input and output FDs. (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import) (cmd_genkey): Close the FDs and release the recipient list even in the error case.
* * cache.c (housekeeping): Fixed linking in the remove case.Werner Koch2002-02-064-5/+20
|
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-012-0/+5
| | | | | * Makefile.am (MOSTLYCLEANFILES): New variable.
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-012-4/+5
| | | | | * sign.c (gpgsm_sign): Do not release certificate twice.
* * cache.c: Add a few debug outputs.Werner Koch2002-02-016-16/+118
| | | | | | | | | | | | | | * protect.c (agent_private_key_type): New. * agent.h: Add PRIVATE_KEY_ enums. * findkey.c (agent_key_from_file): Use it to decide whether we have to unprotect a key. (unprotect): Cache the passphrase. * findkey.c (agent_key_from_file,agent_key_available): The key files do now require a ".key" suffix to make a script's life easier. * genkey.c (store_key): Ditto.
* Added a few more error codesWerner Koch2002-01-311-0/+3
|
* * genkey.c (store_key): Protect the key.Werner Koch2002-01-3110-64/+1409
| | | | | | | (agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text.
* A few test certificatesWerner Koch2002-01-2910-0/+162
|
* * call-agent.c (gpgsm_agent_havekey): New.Werner Koch2002-01-296-14/+89
| | | | | | | | | | | * keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs" when we know that the secret key is available. (gpgsm_list_keys): New arg MODE, check whether a secret key is available. Changed all callers. * gpgsm.c (main): New command --list-secret-keys. * server.c (cmd_listsecretkeys): New. (cmd_listkeys): Return secret keys with "crs" record.
* * findkey.c (agent_key_available): New.Werner Koch2002-01-294-3/+60
| | | | | | * command.c (cmd_havekey): New. (register_commands): And register new command.
* * certreqgen.c (create_request): Store the email address in the req.Werner Koch2002-01-282-1/+31
| | | | | | | | Note, that I have not yet achieved to generate a cert with the subjectAltName using OpenSSL. It seems that openssl requires the email address to be part of the subject DN (subjectAltName=email:copy) but this is something we don't want to do.
* Updated copyright noticesWerner Koch2002-01-261-3/+3
|
* * scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch2002-01-265-0/+925
| | | | | the gpg-agent.
* * gpgsm.c (main): Disable core dumps.Werner Koch2002-01-257-10/+235
| | | | | | | | | | | | | * sign.c (add_certificate_list): New. (gpgsm_sign): Add the certificates to the CMS object. * certpath.c (gpgsm_walk_cert_chain): New. * gpgsm.h (server_control_s): Add included_certs. * gpgsm.c: Add option --include-certs. (gpgsm_init_default_ctrl): New. (main): Call it. * server.c (gpgsm_server): Ditto. (option_handler): Support --include-certs.
* * assuan-socket-connect.c (LOGERRORX): and removed typo.Werner Koch2002-01-232-1/+5
|