X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/8e58a1769ce5e492dd68904dfc81b6e077fc2a3a..e02c731dfbb288c736f2cd09a9b6df0507c59ddd:/onak-conf.c diff --git a/onak-conf.c b/onak-conf.c new file mode 100644 index 0000000..a3ee64b --- /dev/null +++ b/onak-conf.c @@ -0,0 +1,39 @@ +/* + * onak-conf.c - Routines related to runtime config. + * + * Jonathan McDowell + * + * Copyright 2002 Project Purple + */ + +#include + +#include "onak-conf.h" + +/* + * config - Runtime configuration for onak. + * + * Currently this is all hardcoded, but only needs changed here. In future + * it'll be read from a config file. + */ +struct onak_config config = { + 128, /* maxkeys */ + + /* + * Options for the db2 file backend. + */ + "/community/pgp-keyserver/db-copy", /* db2_dbpath */ + + /* + * Options for the file backend. + */ + NULL, /* file_dbpath */ + + /* + * Options for the Postgres backend. + */ + NULL, /* pg_dbhost */ + "noodles", /* pg_dbname */ + NULL, /* pg_dbuser */ + NULL, /* pg_dbpass */ +};