summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-04-30 14:09:33 +0000
committerWerner Koch <wk@gnupg.org>2007-04-30 14:09:33 +0000
commit9222b6f51074fa33a962db3ef25414f01e23677e (patch)
tree2df53738a9bcb47bbb9fedcca7c768537a9b0580 /src/global.c
parent48caaefe40af7ba14d6f63f2b31daa1da7a953bd (diff)
downloadlibgcrypt-9222b6f51074fa33a962db3ef25414f01e23677e.tar.gz
./
* README.apichanges: Move to doc/. * Makefile.am (EXTRA_DIST): Removed that file. doc/ * HACKING: New. Two items by Marcus. * README.apichanges: Move from .. to here. * Makefile.am (EXTRA_DIST): Add new files. mpi/ * config.links: Create a file mod-source-info.h. * Makefile.am (DISTCLEANFILES): Add that file. * mpiutil.c (_gcry_mpi_get_hw_config): New. src/ * global.c (gcry_control): New. * gcrypt.h.in (GCRYCTL_DUMP_CONFIG): New. tests/ * version.c: New. * Makefile.am (TESTS): Add version.
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index 5915d1a3..cbec9668 100644
--- a/src/global.c
+++ b/src/global.c
@@ -354,6 +354,15 @@ gcry_control (enum gcry_ctl_cmds cmd, ...)
_gcry_use_random_daemon (!! va_arg (arg_ptr, int));
break;
+ /* This command dumps information pertaining to the
+ configuration of libgcrypt to the logging stream. It may be
+ used before the intialization has been finished but not
+ before a gcry_version_check. */
+ case GCRYCTL_DUMP_CONFIG:
+ log_info ("version=%s\n", VERSION);
+ log_info ("mpi-asm=%s\n", _gcry_mpi_get_hw_config ());
+ break;
+
default:
err = GPG_ERR_INV_OP;
}