unbound 0.1
anchor-update.c File Reference

This file is made because contrib/update-anchor.sh does not work on windows (no shell). More...

#include "config.h"
#include "libunbound/unbound.h"
#include "sldns/rrdef.h"
#include "sldns/pkthdr.h"
#include "sldns/wire2str.h"

Functions

static void usage (void)
 usage
static void fatal (const char *str)
 fatal exit
static struct ub_result * do_lookup (struct ub_ctx *ctx, char *domain)
 lookup data
static void do_print (struct ub_result *result, char *file)
 print result to file
static int do_update (char *domain, char *file)
 update domain to file
int main (int argc, char **argv)
 anchor update main

Detailed Description

This file is made because contrib/update-anchor.sh does not work on windows (no shell).

Function Documentation

◆ usage()

void usage ( void )
static

usage

References usage().

◆ fatal()

void fatal ( const char * str)
static

fatal exit

References fatal().

Referenced by do_lookup(), do_print(), do_update(), and fatal().

◆ do_lookup()

struct ub_result * do_lookup ( struct ub_ctx * ctx,
char * domain )
static

◆ do_print()

void do_print ( struct ub_result * result,
char * file )
static

◆ do_update()

int do_update ( char * domain,
char * file )
static

◆ main()

int main ( int argc,
char ** argv )

anchor update main

References do_update(), main, and usage().