djbdnscurve6 45
djbdnscurve6
Loading...
Searching...
No Matches
Macros | Functions | Variables
curvedns.h File Reference
#include "alloc.h"
#include "ip.h"
#include "socket_if.h"
#include "dns.h"
#include "query.h"
#include "crypto_box_curve25519xsalsa20poly1305.h"
#include "crypto_scalarmult_curve25519.h"
Include dependency graph for curvedns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DNSPORT   53
 
#define crypto_scalarmult_base   crypto_scalarmult_curve25519_base
 
#define crypto_box_beforenm   crypto_box_curve25519xsalsa20poly1305_beforenm
 
#define crypto_box_afternm   crypto_box_curve25519xsalsa20poly1305_afternm
 
#define crypto_box_open_afternm   crypto_box_curve25519xsalsa20poly1305_open_afternm
 

Functions

void cns_query (struct dns_transmit *)
 
void dns_basequery (struct dns_transmit *, char *)
 
int cns_addns (struct query *, const char *, int, const char *)
 
void cns_sortns (char *, char *, unsigned int)
 
void cns_nonce (char[12])
 
int cns_pubkey (const char *, char[32])
 
int cns_uncurve (const struct dns_transmit *, char *, unsigned int *)
 
int cns_transmit_start (struct dns_transmit *, const char[512], int, const char *, const char[2], const char[16], const char[1024], const char[32], const char *)
 

Variables

unsigned int fallback
 
unsigned int flagedserver
 

Macro Definition Documentation

◆ crypto_box_afternm

#define crypto_box_afternm   crypto_box_curve25519xsalsa20poly1305_afternm

Definition at line 23 of file curvedns.h.

◆ crypto_box_beforenm

#define crypto_box_beforenm   crypto_box_curve25519xsalsa20poly1305_beforenm

Definition at line 21 of file curvedns.h.

◆ crypto_box_open_afternm

#define crypto_box_open_afternm   crypto_box_curve25519xsalsa20poly1305_open_afternm

Definition at line 24 of file curvedns.h.

◆ crypto_scalarmult_base

#define crypto_scalarmult_base   crypto_scalarmult_curve25519_base

Definition at line 20 of file curvedns.h.

◆ DNSPORT

#define DNSPORT   53

Definition at line 10 of file curvedns.h.

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 ,
const char  [512],
int  ,
const char *  ,
const char  [2],
const char  [16],
const char  [1024],
const char  [32],
const char *   
)

◆ 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
extern

Definition at line 23 of file curvedns.c.

◆ flagedserver

unsigned int flagedserver
extern

Definition at line 22 of file curvedns.c.