djbdnscurve6 46
djbdnscurve6
Loading...
Searching...
No Matches
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.

Macros

#define SET_EDNS0   2
#define SET_DNSSEC   0
#define OPT_RR   41

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[32])
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

Macro Definition Documentation

◆ OPT_RR

#define OPT_RR   41

Definition at line 20 of file curvedns.c.

◆ SET_DNSSEC

#define SET_DNSSEC   0

Definition at line 19 of file curvedns.c.

◆ SET_EDNS0

#define SET_EDNS0   2

Definition at line 18 of file curvedns.c.

Function Documentation

◆ cns_addns()

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

Definition at line 212 of file curvedns.c.

Here is the call graph for this function:

◆ cns_nonce()

void cns_nonce ( char nonce[12])

Definition at line 25 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[32] )

Definition at line 178 of file curvedns.c.

Here is the call graph for this function:

◆ cns_query()

void cns_query ( struct dns_transmit * d)

Definition at line 52 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 192 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 246 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 104 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 35 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 23 of file curvedns.c.

◆ flagedserver

unsigned int flagedserver

Definition at line 22 of file curvedns.c.