aboutsummaryrefslogtreecommitdiffstats
path: root/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into npthnpthMarcus Brinkmann2012-01-035-3/+161
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog-2011 Makefile.am agent/ChangeLog-2011 agent/gpg-agent.c dirmngr/ChangeLog-2011 dirmngr/dirmngr.c doc/HACKING g13/g13.c po/de.po scd/ChangeLog-2011 scd/apdu.c scd/command.c scd/scdaemon.c scripts/gitlog-to-changelog tools/ChangeLog-2011
| * Revert last change, add comment about link() return values.Marcus Brinkmann2012-01-031-21/+11
| | | | | | | | | | * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Do not check return value of link().
| * Fix compiler warnings.Marcus Brinkmann2012-01-031-9/+21
| | | | | | | | | | | | | | * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Check return value of link(). * g13/g13.c: Make sure err is initialized. * scd/scdaemon.c (main) [!USE_GCRY_THREAD_CBS]: Do not define ERR.
| * estream: New function es_fclose_snatch.Werner Koch2011-12-152-1/+109
| | | | | | | | | | | | | | | | | | | | * common/estream.c (cookie_ioctl_function_t): New type. (es_fclose_snatch): New function. (COOKIE_IOCTL_SNATCH_BUFFER): New constant. (struct estream_internal): Add field FUNC_IOCTL. (es_initialize): Clear FUNC_IOCTL. (es_func_mem_ioctl): New function. (es_fopenmem, es_fopenmem_init): Init FUNC_IOCTL.
| * scd: New option --debug-assuan-log-cats.Werner Koch2011-12-132-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | * scd/scdaemon.c (oDebugAssuanLogCats): New. (opts): Add option --debug-assuan-log-cats. (main): Implement option. * common/asshelp.c (set_libassuan_log_cats): New. -- The old way of setting the logging categories with an environment variable is awkward if sdaemon is spawned from a running gpg-agent.
| * Generate the ChangeLog from commit logs.Werner Koch2011-12-013-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | * scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * doc/HACKING: Describe the ChangeLog policy * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
| * Rewrite dns-cert.c to not use the gpg-only iobuf stuff.Werner Koch2011-11-304-89/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | * common/dns-cert.c: Remove iobuf.h. (get_dns_cert): Rename to _get_dns_cert. Remove MAX_SIZE arg. Change iobuf arg to a estream-t. Rewrite function to make use of estream instead of iobuf. Require all parameters. Return an gpg_error_t error instead of the type. Add arg ERRSOURCE. * common/dns-cert.h (get_dns_cert): New macro to pass the error source to _gpg_dns_cert. * common/t-dns-cert.c (main): Adjust for changes in get_dns_cert. * g10/keyserver.c (keyserver_import_cert): Ditto. * doc/gpg.texi (GPG Configuration Options): Remove max-cert-size.
| * * common/estream.c (es_fopenmem_init): New.Werner Koch2011-11-302-3/+39
| | | | | | | | * common/estream.h (es_fopenmem_init): New.
| * Add parameter checks and extend documentation of estream.Werner Koch2011-11-302-10/+35
| | | | | | | | | | * estream.c (func_mem_create): Don't set FUNC_REALLOC if GROW is not set. Require FUNC_REALLOC if DATA is NULL and FUNC_FREE is given.
| * dns-cert.c: Use constants for better readability.Werner Koch2011-11-302-8/+25
| |
| * Actually increase buffer size of t-dns-cert.c.Werner Koch2011-11-301-1/+1
| |
| * Re-indented dns-cert.cWerner Koch2011-11-301-121/+122
| |
| * Increase the default buffer size for DNS certificates.Werner Koch2011-11-301-0/+2
| | | | | | | | | | * common/t-dns-cert.c (main): Increase MAX_SIZE to 64k. * g10/keyserver.c (DEFAULT_MAX_CERT_SIZE): Increase from 16k to 64k.
| * Use separate test module for dns-cert.c.Werner Koch2011-11-305-62/+103
| | | | | | | | | | * dns-cert.c (get_dns_cert): Factor test code out to ... * t-dns-cert.c: new file.
* | Generate the ChangeLog from commit logs.Werner Koch2011-12-023-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | * scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * doc/HACKING: Describe the ChangeLog policy * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
* | Rewrite dns-cert.c to not use the gpg-only iobuf stuff.Werner Koch2011-12-024-89/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | * common/dns-cert.c: Remove iobuf.h. (get_dns_cert): Rename to _get_dns_cert. Remove MAX_SIZE arg. Change iobuf arg to a estream-t. Rewrite function to make use of estream instead of iobuf. Require all parameters. Return an gpg_error_t error instead of the type. Add arg ERRSOURCE. * common/dns-cert.h (get_dns_cert): New macro to pass the error source to _gpg_dns_cert. * common/t-dns-cert.c (main): Adjust for changes in get_dns_cert. * g10/keyserver.c (keyserver_import_cert): Ditto. * doc/gpg.texi (GPG Configuration Options): Remove max-cert-size.
* | * common/estream.c (es_fopenmem_init): New.Werner Koch2011-12-022-3/+39
| | | | | | | | * common/estream.h (es_fopenmem_init): New.
* | Add parameter checks and extend documentation of estream.Werner Koch2011-12-022-10/+35
| | | | | | | | | | * estream.c (func_mem_create): Don't set FUNC_REALLOC if GROW is not set. Require FUNC_REALLOC if DATA is NULL and FUNC_FREE is given.
* | dns-cert.c: Use constants for better readability.Werner Koch2011-12-022-8/+25
| |
* | Actually increase buffer size of t-dns-cert.c.Werner Koch2011-12-021-1/+1
| |
* | Re-indented dns-cert.cWerner Koch2011-12-021-121/+122
| |
* | Increase the default buffer size for DNS certificates.Werner Koch2011-12-021-0/+2
| | | | | | | | | | * common/t-dns-cert.c (main): Increase MAX_SIZE to 64k. * g10/keyserver.c (DEFAULT_MAX_CERT_SIZE): Increase from 16k to 64k.
* | Use separate test module for dns-cert.c.Werner Koch2011-12-025-62/+103
| | | | | | | | | | * dns-cert.c (get_dns_cert): Factor test code out to ... * t-dns-cert.c: new file.
* | Merge branch 'master' into npthMarcus Brinkmann2011-10-253-0/+77
|\| | | | | | | | | Conflicts: common/ChangeLog
| * Allow distribution of dotlock.* also under a modified BSD licenseWerner Koch2011-10-243-0/+77
| |
* | Merge branch 'master' into npthMarcus Brinkmann2011-10-1332-603/+1672
|\| | | | | | | | | | | Conflicts: ChangeLog common/ChangeLog
| * Change JNLIB license to LGPLv3+ or GPLv2+.Werner Koch2011-09-3030-205/+527
| | | | | | | | This is to allow the use of this code with code under GPLv2(only).
| * Add prefix macro for dotlock functions.Werner Koch2011-09-303-8/+45
| | | | | | | | Also fixed a type in the GLIB version.
| * Add dotlock_get_fd and dotlock_set_fd.Werner Koch2011-09-293-2/+37
| |
| * Make dotlock.c thread-safe on pthread systems.Werner Koch2011-09-292-25/+81
| | | | | | | | This is achieved by passing the define DOTLOCK_USE_PTHREAD.
| * Add a flag parameter to dotlock_create.Werner Koch2011-09-285-12/+24
| | | | | | | | This allows us to extend this function in the future.
| * Allow arbitrary timeouts with dotlock.Werner Koch2011-09-282-37/+87
| |
| * Improved the dotlock module.Werner Koch2011-09-274-43/+529
| | | | | | | | | | | | | | - It is now more portable and may be used outside of GnuPG - vfat file systems are now supported. - The use of link(2) is more robust. - Wrote extensive documentation.
| * Renamed the lock functions.Werner Koch2011-09-234-323/+445
| | | | | | | | Also cleaned up the dotlock code for easier readability.
| * Remove support for RISCOS from dotlock.cWerner Koch2011-09-221-58/+7
| |
* | Initial port to Npth.Marcus Brinkmann2011-10-139-82/+71
|/
* Fixed set but unused variable bugsWerner Koch2011-08-106-24/+26
|
* Support a confirm flag for ssh.Werner Koch2011-07-201-7/+0
| | | | | This implements the suggestion from bug#1349. With this change the fingerprint of the ssh key is also displayed in the pinentry prompts.
* New functions to compute an ssh style fingerprint.Werner Koch2011-07-205-1/+473
|
* Fix size_t vs int issues.Marcus Brinkmann2011-06-012-0/+5
|
* Require libgpg-error 1.10Werner Koch2011-05-202-15/+4
| | | | | This allows to remove some error code substitutes. Fixed a typo in gpg.text.
* Fix regression in gpg's mail address parsing.Werner Koch2011-04-253-3/+14
| | | | | | 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.
* Add code for explicit selection of pooled A records.Werner Koch2011-04-123-0/+16
| | | | | | | | | | | To better cope with round robin pooled A records like keys.gnupg.net we need to keep some information on unresponsive hosts etc. What we do now is to resolve the hostnames, remember them and select a random one. If a host is dead it will be marked and a different one selected. This is intended to solve the problem of long timeouts due to unresponsive hosts. The code is not yet finished but selection works.
* Simplify the management of the stream list in estream.cWerner Koch2011-03-032-66/+83
|
* Add new functions to convert iso time strings.Werner Koch2011-03-016-24/+253
|
* Fix ChnageLog entries.Werner Koch2011-02-151-0/+5
|
* fixed --list-keys on Linux64 bitAndrey Jivsov2011-02-121-2/+3
|
* Add finger support to dirmngr.Werner Koch2011-02-084-74/+331
| | | | | | | | | | | | | The basic network code from http.c is used for finger. This keeps the network related code at one place and we are able to use the somewhat matured code form http.c. Unfortunately I had to enhance the http code for more robustness and probably introduced new bugs. Test this code using gpg --fetch-key finger:[email protected] (I might be the last user of finger ;-)
* Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch2011-02-0485-1050/+998
| | | | | | | | 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.
* Add a DECRYPTION_INFO status.Werner Koch2011-02-032-5/+8
| | | | | | | DECRYPTION_INFO <mdc_method> <sym_algo> Print information about the symmetric encryption algorithm and the MDC method. This will be emitted even if the decryption fails.