aboutsummaryrefslogtreecommitdiffstats
path: root/sm/export.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gpgsm: New commands --export-secret-key-{p8,raw}Werner Koch2014-06-031-21/+50
| | | | | | | | | * sm/gpgsm.c: Add new commands. * sm/minip12.c (build_key_sequence): Add arg mode. (p12_raw_build): New. * sm/export.c (export_p12): Add arg rawmode. Call p12_raw_build. (gpgsm_p12_export): Ditto. (print_short_info): Print the keygrip.
* Change all quotes in strings and comments to the new GNU standard.Werner Koch2012-06-051-4/+4
| | | | | | | | | | | | | | | | | | | The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
* Fix regression in gpg's mail address parsing.Werner Koch2011-04-251-2/+2
| | | | | | Since 2009-12-08 gpg was not able to find email addresses indicated by a leading '<'. This happened when I merged the user id classification code of gpgsm and gpg.
* Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch2011-02-041-37/+36
| | | | | | | | We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
* Remove superfluous parameter.Werner Koch2010-11-261-3/+2
| | | | | Make self-check interval larger
* Implement export of pkcs#12 objects using a direct agent connection.Werner Koch2010-06-211-241/+226
|
* Merged Dirmngr with GnuPG.Werner Koch2010-06-091-1/+2
| | | | | A few code changes to support dirmngr.
* More changes for CE. gpgsm does now build and run a keylisting.Werner Koch2010-03-241-13/+11
|
* Removed almost al dup calls.Werner Koch2010-03-081-16/+7
|
* Replace use stdio by estream functions.Werner Koch2010-03-081-16/+15
|
* Unification of the search descriptor usage.Werner Koch2009-12-081-2/+2
|
* Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch2009-04-011-3/+9
| | | | | Removed duplicated code (percent unescaping).
* New gpg-agent command to list key information.Werner Koch2009-03-061-12/+10
| | | | | | Gpgsm does now print the S/N of cards. Consider ephemeral keys during listing an export.
* Try to start the agent before invoking the protect-tool.Werner Koch2008-10-231-2/+9
|
* Fix --output option used when with --export-secret-kety-p12.Werner Koch2008-05-201-1/+1
|
* [W32] Avoid extra console window when importing or exporting.Werner Koch2008-01-271-1/+1
| | | | | Fixes bug 875.
* New command --check-programs for gpgconf.Werner Koch2007-08-291-1/+1
|
* Add new features to kbxutil.Werner Koch2007-08-231-4/+18
| | | | | Fixed bug 829 (can't encrypt if duplicated certs are in the keybox)
* Updated estream.Werner Koch2007-08-221-2/+3
| | | | | More changes for Windows.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-1/+1
| | | | | See the ChangeLogs for details.
* Print passphrase encoding info only in PEM mode.Werner Koch2007-05-291-1/+1
|
* Allow setting of the passphrase encoding of pkcs#12 files.Werner Koch2007-03-201-0/+11
| | | | New option --p12-charset.
* Allow export to work on systems without funopen/fopencookie.Werner Koch2007-03-191-22/+64
|
* Fix for bug 537Werner Koch2006-10-021-2/+2
|
* Take advantage of newer gpg-error features.Werner Koch2006-09-141-4/+4
|
* The big Assuan error code removal.Werner Koch2006-09-061-3/+3
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Bug fixes and ssh support for the BELPIC.Werner Koch2005-09-091-0/+1
|
* * exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.Werner Koch2004-12-061-111/+20
| | | | | | | | | | | * gpgsm.c (run_protect_tool) [_WIN32]: Disabled. * import.c (popen_protect_tool): Simplified by making use of gnupg_spawn_process. (parse_p12): Likewise, using gnupg_wait_process. * export.c (popen_protect_tool): Ditto. (export_p12): Ditto.
* * minip12.c (parse_bag_encrypted_data): Print error if a badWerner Koch2004-09-291-4/+29
| | | | | | | | | | | | passphrase has been given. * gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the expected pinentry filename. * import.c (parse_p12): Write an error status line for bad passphrases. Add new arg CTRL and changed caller. * export.c (export_p12): Likewise.
* * configure.ac: Require libksba 0.9.7.Werner Koch2004-06-061-1/+1
| | | | | | | | | | | | | | | | * certreqgen.c (get_parameter_uint, create_request): Create an extension for key usage when requested. * gpgsm.c (main): Install emergency_cleanup also as an atexit handler. * verify.c (gpgsm_verify): Removed the separate error code handling for KSBA. We use shared error codes anyway. * export.c (export_p12): Removed debugging code. * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
* * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)Werner Koch2004-04-261-1/+1
| | | | | | | | | | | | | | (gpgsm_agent_genkey, gpgsm_agent_istrusted) (gpgsm_agent_marktrusted, gpgsm_agent_havekey) (gpgsm_agent_passwd): Add new arg CTRL and changed all callers. (start_agent): New arg CTRL. Send progress item when starting a new agent. * sign.c (gpgsm_get_default_cert, get_default_signer): New arg CTRL to be passed down to the agent function. * decrypt.c (prepare_decryption): Ditto. * certreqgen.c (proc_parameters, read_parameters): Ditto. * certcheck.c (gpgsm_create_cms_signature): Ditto.
* * misc.c (setup_pinentry_env): New.Werner Koch2004-04-131-0/+2
| | | | | | * import.c (popen_protect_tool): Call it. * export.c (popen_protect_tool): Call it.
* (gpgsm_export): Make sure that we don't export moreWerner Koch2004-03-031-3/+11
| | | | | than one certificate.
* (create_duptable, destroy_duptable)Werner Koch2004-03-021-35/+143
| | | | | | (insert_duptable): New. (gpgsm_export): Avoid duplicates.
* * protect-tool.c: New options --have-cert and --prompt.Werner Koch2004-02-191-1/+370
| | | | | | | | | | | | | | | | | | | | (export_p12_file): Read a certificate from STDIN and pass it to p12_build. Detect a keygrip and construct the filename in that case. Unprotcet a key if needed. Print error messages for key formats we can't handle. (release_passphrase): New. (get_passphrase): New arg PROMPTNO. Return the allocated string. Changed all callers. * minip12.c: Revamped the build part. (p12_build): New args CERT and CERTLEN. * simple-pwquery.c (agent_open): Don't mangle INFOSTR. * export.c (export_p12, popen_protect_tool) (gpgsm_p12_export): New. * gpgsm.c (main): New command --export-secret-key-p12.
* Replaced deprecated type names.Werner Koch2003-12-171-5/+5
| | | | | | | | * certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul. (gpgsm_dump_serial): Ditto. * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-121-1/+1
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+249
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-248/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * certdump.c (print_dn_part): Always print a leading slash,Werner Koch2002-06-251-26/+16
| | | | | | | | | | | removed NEED_DELIM arg and changed caller. * export.c (gpgsm_export): Print LFs to FP and not stdout. (print_short_info): Ditto. Make use of gpgsm_print_name. * server.c (cmd_export): Use output-fd instead of data lines; this was actually the specified way.
* * call-agent.c (learn_cb): Use log_info instead of log_error onWerner Koch2002-06-191-0/+17
| | | | | | | | | | | | successful import. * keydb.c (keydb_set_ephemeral): New. (keydb_store_cert): New are ephemeral, changed all callers. * keylist.c (list_external_cb): Store cert as ephemeral. * export.c (gpgsm_export): Kludge to export epehmeral certificates. * gpgsm.c (main): New command --list-external-keys.
* * export.c: New.Werner Koch2002-03-211-0/+241
* gpgsm.c: Add command --export. * server.c (cmd_export): New.