From 7fd520a546be0116951545670da941e92c2bd128 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Wed, 21 Oct 2009 17:23:50 +0200 Subject: [PATCH] Add some initialisation that's needed for older libgcrypt --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 43bd7c3..d1f1943 100644 --- a/src/main.c +++ b/src/main.c @@ -598,6 +598,10 @@ int main(int argc, char ** argv) exit(1); } + /* XXX check errors */ + gcry_check_version("0"); + gcry_control(GCRYCTL_INIT_SECMEM, 16384); + db_conn = PQconnectdb(conf.dbdef); if (PQstatus(db_conn) != CONNECTION_OK) { syslog(LOG_ERR, "connection to database failed: %s", -- 2.39.5