]> the.earth.li Git - onak.git/blobdiff - onak-conf.h
Fix handling of other signature requirement
[onak.git] / onak-conf.h
index 7c15cbb02583e7d6e2284e04ea7911979f561a14..5d39f6ab2a44bcdd06af245d178b4742474adb3f 100644 (file)
  * 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 <https://www.gnu.org/licenses/>.
  */
 
 #ifndef __ONAK_CONF_H_
 #define __ONAK_CONF_H_
 
-#include "keydb.h"
+#include <stdbool.h>
+#include <stdint.h>
+
+#include "keyarray.h"
+#include "ll.h"
 
 /**
  * @brief Backend database configuration.
@@ -87,8 +90,11 @@ 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;
+       /** Blacklist of fingerprints to reject */
+       struct keyarray blacklist;
+
+       /** What policies should we use for cleaning keys? */
+       uint64_t clean_policies;
 
        /*
         * Options used by the email handling script.
@@ -128,4 +134,10 @@ void writeconfig(const char *configfile);
  */
 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_ */