val_anchor.c (287917) | val_anchor.c (295535) |
---|---|
1/* 2 * validator/val_anchor.c - validator trust anchor storage. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 34 unchanged lines hidden (view full) --- 43#include "validator/val_anchor.h" 44#include "validator/val_sigcrypt.h" 45#include "validator/autotrust.h" 46#include "util/data/packed_rrset.h" 47#include "util/data/dname.h" 48#include "util/log.h" 49#include "util/net_help.h" 50#include "util/config_file.h" | 1/* 2 * validator/val_anchor.c - validator trust anchor storage. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 34 unchanged lines hidden (view full) --- 43#include "validator/val_anchor.h" 44#include "validator/val_sigcrypt.h" 45#include "validator/autotrust.h" 46#include "util/data/packed_rrset.h" 47#include "util/data/dname.h" 48#include "util/log.h" 49#include "util/net_help.h" 50#include "util/config_file.h" |
51#include "util/as112.h" |
|
51#include "sldns/sbuffer.h" 52#include "sldns/rrdef.h" 53#include "sldns/str2wire.h" 54#ifdef HAVE_GLOB_H 55#include <glob.h> 56#endif 57 58int --- 980 unchanged lines hidden (view full) --- 1039 lock_basic_unlock(&anchors->lock); 1040 return 1; 1041} 1042 1043int 1044anchors_apply_cfg(struct val_anchors* anchors, struct config_file* cfg) 1045{ 1046 struct config_strlist* f; | 52#include "sldns/sbuffer.h" 53#include "sldns/rrdef.h" 54#include "sldns/str2wire.h" 55#ifdef HAVE_GLOB_H 56#include <glob.h> 57#endif 58 59int --- 980 unchanged lines hidden (view full) --- 1040 lock_basic_unlock(&anchors->lock); 1041 return 1; 1042} 1043 1044int 1045anchors_apply_cfg(struct val_anchors* anchors, struct config_file* cfg) 1046{ 1047 struct config_strlist* f; |
1048 const char** zstr; |
|
1047 char* nm; 1048 sldns_buffer* parsebuf = sldns_buffer_new(65535); | 1049 char* nm; 1050 sldns_buffer* parsebuf = sldns_buffer_new(65535); |
1051 if(cfg->insecure_lan_zones) { 1052 for(zstr = as112_zones; *zstr; zstr++) { 1053 if(!anchor_insert_insecure(anchors, *zstr)) { 1054 log_err("error in insecure-lan-zones: %s", *zstr); 1055 sldns_buffer_free(parsebuf); 1056 return 0; 1057 } 1058 } 1059 } |
|
1049 for(f = cfg->domain_insecure; f; f = f->next) { 1050 if(!f->str || f->str[0] == 0) /* empty "" */ 1051 continue; 1052 if(!anchor_insert_insecure(anchors, f->str)) { 1053 log_err("error in domain-insecure: %s", f->str); 1054 sldns_buffer_free(parsebuf); 1055 return 0; 1056 } --- 206 unchanged lines hidden --- | 1060 for(f = cfg->domain_insecure; f; f = f->next) { 1061 if(!f->str || f->str[0] == 0) /* empty "" */ 1062 continue; 1063 if(!anchor_insert_insecure(anchors, f->str)) { 1064 log_err("error in domain-insecure: %s", f->str); 1065 sldns_buffer_free(parsebuf); 1066 return 0; 1067 } --- 206 unchanged lines hidden --- |