X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=onak-conf.c;h=f0768a0f11657f008ccf8623e7f3a9a82493233d;hb=a94e29c9a3763f96b1c773f0818b97e4fd0777b0;hp=7b8a2e3d6b1eb32ddb0bd908c96fbda7244ab756;hpb=eb94eab34a0893fb5b8f78652f338df85f492a9b;p=onak.git diff --git a/onak-conf.c b/onak-conf.c index 7b8a2e3..f0768a0 100644 --- a/onak-conf.c +++ b/onak-conf.c @@ -284,6 +284,8 @@ static bool parseconfigline(char *line) config.syncsites = lladd(config.syncsites, strdup(value)); /* [verification] section */ + } else if (MATCH("verification", "blacklist")) { + array_load(&config.blacklist, value); } else if (MATCH("verification", "drop_v3")) { if (parsebool(value, config.clean_policies & ONAK_CLEAN_DROP_V3_KEYS)) { @@ -602,4 +604,7 @@ void cleanupconfig(void) { free(config.mail_dir); config.mail_dir = NULL; } + if (config.blacklist.count != 0) { + array_free(&config.blacklist); + } }