]> err.no Git - yubikey-server-c/commitdiff
Add some initialisation that's needed for older libgcrypt
authorTollef Fog Heen <tfheen@err.no>
Wed, 21 Oct 2009 15:23:50 +0000 (17:23 +0200)
committerTollef Fog Heen <tfheen@err.no>
Wed, 21 Oct 2009 15:23:50 +0000 (17:23 +0200)
src/main.c

index 43bd7c3428ab936059db8cdd2e241e175ffc9b99..d1f194333ab05b332bdc4f614b14ccd151f0e650 100644 (file)
@@ -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",