summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-10-16 08:43:38 +0200
committerSimon Josefsson <simon@josefsson.org>2009-10-16 08:43:38 +0200
commite900d62c839e206214d1eac01e9a78fbcf7b33bf (patch)
treeca73644beceb9aea32e507606af1493b8ce93a02 /src
parent8c4463309584836a77cf35d5acf7a94b37b1acd9 (diff)
downloadgnutls-e900d62c839e206214d1eac01e9a78fbcf7b33bf.tar.gz
Make sure we use libgcrypt correctly.
Diffstat (limited to 'src')
-rw-r--r--src/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index 36020c6307..d2b54577a2 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -569,6 +569,9 @@ main (int argc, char **argv)
gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
#ifdef gcry_fips_mode_active
+ /* Libgcrypt manual says that gcry_version_check must be called
+ before calling gcry_fips_mode_active. */
+ gcry_check_version (NULL);
if (gcry_fips_mode_active ())
{
ret = gnutls_register_md5_handler ();