X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;ds=inline;f=onak-conf.h;h=3e02b7a0226769bacc240e47db3972a7e42d7aca;hb=94422621d7c1300ae7001d13590570f9d4ad2a07;hp=d0495207af945f561e26d778f18a65c566fb845b;hpb=90e64dba702acb22eef4f6d70dc0ac885b1bedbf;p=onak.git
diff --git a/onak-conf.h b/onak-conf.h
index d049520..3e02b7a 100644
--- a/onak-conf.h
+++ b/onak-conf.h
@@ -14,14 +14,16 @@
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see .
*/
#ifndef __ONAK_CONF_H_
#define __ONAK_CONF_H_
-#include "keydb.h"
+#include
+#include
+
+#include "ll.h"
/**
* @brief Backend database configuration.
@@ -87,8 +89,8 @@ struct onak_config {
/** Pointer to the initialisation function for our loaded DB backend */
struct onak_dbctx *(*dbinit)(struct onak_db_config *, bool);
- /** Should we verify signature hashes match? */
- bool check_sighash;
+ /** What policies should we use for cleaning keys? */
+ uint64_t clean_policies;
/*
* Options used by the email handling script.
@@ -115,9 +117,23 @@ extern struct onak_config config;
*/
void readconfig(const char *configfile);
+/**
+ * @brief write the onak config.
+ * @param configfile the config file to write to.
+ *
+ * Write out the config file. If config file is NULL write it to STDOUT.
+ */
+void writeconfig(const char *configfile);
+
/**
* @brief clean up the config when we're shutting down.
*/
void cleanupconfig(void);
+
+/**
+ * @brief Find a specified backend configuration by name.
+ */
+struct onak_db_config *find_db_backend_config(struct ll *backends, char *name);
+
#endif /* __ONAK_CONF_H_ */