djbdnscurve6 51
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 "dns.h"
#include "curvedns.h"
#include "base32.h"
#include "query.h"
#include "socket_if.h"
#include "ip.h"
#include "error.h"
#include "serverok.h"
#include "log.h"
Include dependency graph for curvedns.c:

Go to the source code of this file.

Functions

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], int flagrecursive, const char *q, const char qtype[2], const char localip[16], const char keys[1024], const char pubkey[32], const char *suffix)
 

Variables

unsigned int flagedserver
 
unsigned int fallback
 
int flagdnsoptrr = 0
 
char optrr [11]
 

Function Documentation

◆ cns_addns()

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

Definition at line 227 of file curvedns.c.

Here is the call graph for this function:

◆ cns_nonce()

void cns_nonce ( char  nonce[12])

Definition at line 28 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 193 of file curvedns.c.

Here is the call graph for this function:

◆ cns_query()

void cns_query ( struct dns_transmit d)

Definition at line 67 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 207 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],
int  flagrecursive,
const char *  q,
const char  qtype[2],
const char  localip[16],
const char  keys[1024],
const char  pubkey[32],
const char *  suffix 
)

Definition at line 261 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 119 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 38 of file curvedns.c.

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

Variable Documentation

◆ fallback

unsigned int fallback

Definition at line 19 of file curvedns.c.

◆ flagdnsoptrr

int flagdnsoptrr = 0

Definition at line 20 of file curvedns.c.

◆ flagedserver

unsigned int flagedserver

Definition at line 18 of file curvedns.c.

◆ optrr

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

Definition at line 22 of file curvedns.c.