Initialize gcrypt in dump.c
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 30 Sep 2008 15:08:58 +0000 (08:08 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 30 Sep 2008 15:08:58 +0000 (08:08 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
README
dump.c

diff --git a/README b/README
index 440d7ec..d4edce7 100644 (file)
--- a/README
+++ b/README
@@ -17,6 +17,9 @@ The package build requirements currently are:
 
  * python and the m2crypto package (python-m2crypto)
  * libgcrypt or libssl (openssl) header files
+
+If you want to put up a web site with a database viewer using MoinMoin:
+
  * MoinMoin (http://moinmo.in) for the web viewer
 
  CALLING CRDA -- UDEV
@@ -42,7 +45,7 @@ table.
 The regulatory information in `db.txt' is stored in a human-readable
 format which can be read using the `dbparse.py' python module. This
 python module is used by the web viewer (web/Regulatory.py) which is
-implemented as a MoinMoin macro (and used on http://linuxwireless.org)
+implemented as a MoinMoin macro (and used on http://wireless.kernel.org)
 to allow viewing the database for verification.
 
 The dbparse module is also used by db2bin.py, the `compiler', which
diff --git a/dump.c b/dump.c
index 01553d2..b133915 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -193,6 +193,9 @@ int main(int argc, char **argv)
 #endif
 
 #ifdef USE_GCRYPT
+       /* initialise */
+       gcry_check_version(NULL);
+
        /* hash the db */
        gcry_md_hash_buffer(GCRY_MD_SHA1, hash, db, dblen);