djbdnscurve6 53
djbdnscurve6
Loading...
Searching...
No Matches
Functions | Variables
curvedns.c File Reference
#include <stdio.h>
#include "alloc.h"
#include "byte.h"
#include "uint_t.h"
#include "case.h"
#include "log.h"
#include "base32.h"
#include "socket_if.h"
#include "ip.h"
#include "error.h"
#include "curvedns.h"
#include "serverok.h"
#include "dns.h"
#include "query.h"
Include dependency graph for curvedns.c:

Go to the source code of this file.

Functions

unsigned int udp_msgsize (void)
 
void cns_nonce (char nonce[12])
 
void dns_basequery (struct dns_transmit *d, char *query)
 
void cns_query (struct dns_transmit *d)
 
int cns_uncurve (const struct dns_transmit *d, char *buf, unsigned int *lenp)
 
int cns_pubkey (const char *dn, char *key)
 
void cns_sortns (char *s, char *t, unsigned int n)
 
int cns_addns (struct query *z, const char *addr, int flagnskey, const char *key)
 
int cns_transmit_start (struct dns_transmit *d, const char servers[QUERY_MAXIPLEN], char qflags[2], const char *q, const char qtype[2], const char localip[16], const char keys[QUERY_MAXNS *KEY_LEN], const char pubkey[KEY_LEN], const char *suffix)
 

Variables

int flagedserver
 
int flagusetxtformat = 0
 
unsigned int fallback = 0
 
unsigned int flagedns0
 
unsigned int msgsize
 
char optrr [11]
 
char optdo [11]
 

Function Documentation

◆ cns_addns()

int cns_addns ( struct query z,
const char *  addr,
int  flagnskey,
const char *  key 
)

Definition at line 241 of file curvedns.c.

Here is the call graph for this function:

◆ cns_nonce()

void cns_nonce ( char  nonce[12])

Definition at line 40 of file curvedns.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cns_pubkey()

int cns_pubkey ( const char *  dn,
char *  key 
)

Definition at line 208 of file curvedns.c.

Here is the call graph for this function:

◆ cns_query()

void cns_query ( struct dns_transmit d)

Definition at line 82 of file curvedns.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cns_sortns()

void cns_sortns ( char *  s,
char *  t,
unsigned int  n 
)

Definition at line 222 of file curvedns.c.

Here is the call graph for this function:

◆ cns_transmit_start()

int cns_transmit_start ( struct dns_transmit d,
const char  servers[QUERY_MAXIPLEN],
char  qflags[2],
const char *  q,
const char  qtype[2],
const char  localip[16],
const char  keys[QUERY_MAXNS *KEY_LEN],
const char  pubkey[KEY_LEN],
const char *  suffix 
)

Definition at line 286 of file curvedns.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cns_uncurve()

int cns_uncurve ( const struct dns_transmit d,
char *  buf,
unsigned int *  lenp 
)

Definition at line 134 of file curvedns.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dns_basequery()

void dns_basequery ( struct dns_transmit d,
char *  query 
)

Definition at line 50 of file curvedns.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ udp_msgsize()

unsigned int udp_msgsize ( void  )

Definition at line 38 of file curvedns.c.

Here is the caller graph for this function:

Variable Documentation

◆ fallback

unsigned int fallback = 0

Definition at line 21 of file curvedns.c.

◆ flagedns0

unsigned int flagedns0
extern

Definition at line 28 of file axfrdns.c.

◆ flagedserver

int flagedserver

Definition at line 19 of file curvedns.c.

◆ flagusetxtformat

int flagusetxtformat = 0

Definition at line 20 of file curvedns.c.

◆ msgsize

unsigned int msgsize
extern

Definition at line 29 of file axfrdns.c.

◆ optdo

char optdo[11]
Initial value:
= { '\0',
'\0','\51',
'\5', '\0',
'\0', '\0','\200','\0',
'\0', '\0' }

Definition at line 32 of file curvedns.c.

◆ optrr

char optrr[11]
Initial value:
= { '\0',
'\0','\51',
'\5', '\0',
'\0', '\0', '\0', '\0',
'\0', '\0' }

Definition at line 26 of file curvedns.c.