djbdnscurve6 53
djbdnscurve6
Loading...
Searching...
No Matches
Macros | Functions
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 *)
 
int cns_uncurve (const struct dns_transmit *, char *, unsigned int *)
 
int cns_transmit_start (struct dns_transmit *, const char[QUERY_MAXIPLEN], char[2], const char *, const char[2], const char[16], const char[QUERY_MAXNS *KEY_LEN], const char[KEY_LEN], const char *)
 

Macro Definition Documentation

◆ crypto_box_afternm

#define crypto_box_afternm   crypto_box_curve25519xsalsa20poly1305_afternm

Definition at line 20 of file curvedns.h.

◆ crypto_box_beforenm

#define crypto_box_beforenm   crypto_box_curve25519xsalsa20poly1305_beforenm

Definition at line 18 of file curvedns.h.

◆ crypto_box_open_afternm

#define crypto_box_open_afternm   crypto_box_curve25519xsalsa20poly1305_open_afternm

Definition at line 21 of file curvedns.h.

◆ crypto_scalarmult_base

#define crypto_scalarmult_base   crypto_scalarmult_curve25519_base

Definition at line 17 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 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: