From: Tollef Fog Heen Date: Wed, 21 Oct 2009 15:23:50 +0000 (+0200) Subject: Add some initialisation that's needed for older libgcrypt X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fd520a546be0116951545670da941e92c2bd128;p=yubikey-server-c Add some initialisation that's needed for older libgcrypt --- 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",