unbound-anchor.c (5a2b666ce590a56f147e167aa07684af2d6b854a) unbound-anchor.c (b75612f8e7445139aa2b10038feab06da4b45cc1)
1/*
2 * unbound-anchor.c - update the root anchor if necessary.
3 *
4 * Copyright (c) 2010, 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

--- 103 unchanged lines hidden (view full) ---

112 * keyfile, a new certificate and new URLs, and fresh root hints. By
113 * default it logs nothing on failure and success; it 'just works'.
114 *
115 */
116
117#include "config.h"
118#include "libunbound/unbound.h"
119#include "sldns/rrdef.h"
1/*
2 * unbound-anchor.c - update the root anchor if necessary.
3 *
4 * Copyright (c) 2010, 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

--- 103 unchanged lines hidden (view full) ---

112 * keyfile, a new certificate and new URLs, and fresh root hints. By
113 * default it logs nothing on failure and success; it 'just works'.
114 *
115 */
116
117#include "config.h"
118#include "libunbound/unbound.h"
119#include "sldns/rrdef.h"
120#include "sldns/parseutil.h"
120#include <expat.h>
121#ifndef HAVE_EXPAT_H
122#error "need libexpat to parse root-anchors.xml file."
123#endif
124#ifdef HAVE_GETOPT_H
125#include <getopt.h>
126#endif
127#ifdef HAVE_OPENSSL_SSL_H

--- 1195 unchanged lines hidden (view full) ---

1323 s++;
1324 s += n;
1325 }
1326 if(*s != 0) {
1327 /* not ended properly */
1328 /* but ignore, (lenient) */
1329 }
1330
121#include <expat.h>
122#ifndef HAVE_EXPAT_H
123#error "need libexpat to parse root-anchors.xml file."
124#endif
125#ifdef HAVE_GETOPT_H
126#include <getopt.h>
127#endif
128#ifdef HAVE_OPENSSL_SSL_H

--- 1195 unchanged lines hidden (view full) ---

1324 s++;
1325 s += n;
1326 }
1327 if(*s != 0) {
1328 /* not ended properly */
1329 /* but ignore, (lenient) */
1330 }
1331
1331 t = mktime(&tm);
1332 t = sldns_mktime_from_utc(&tm);
1332 if(t == (time_t)-1) {
1333 if(verb) printf("xml_convertdate mktime failure\n");
1334 return 0;
1335 }
1336 return t;
1337}
1338
1339/**

--- 967 unchanged lines hidden ---
1333 if(t == (time_t)-1) {
1334 if(verb) printf("xml_convertdate mktime failure\n");
1335 return 0;
1336 }
1337 return t;
1338}
1339
1340/**

--- 967 unchanged lines hidden ---