#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"
Go to the source code of this file.
|
| 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 *) |
| |
◆ crypto_box_afternm
| #define crypto_box_afternm crypto_box_curve25519xsalsa20poly1305_afternm |
◆ crypto_box_beforenm
| #define crypto_box_beforenm crypto_box_curve25519xsalsa20poly1305_beforenm |
◆ crypto_box_open_afternm
| #define crypto_box_open_afternm crypto_box_curve25519xsalsa20poly1305_open_afternm |
◆ crypto_scalarmult_base
| #define crypto_scalarmult_base crypto_scalarmult_curve25519_base |
◆ DNSPORT
◆ cns_addns()
| int cns_addns |
( |
struct query * |
z, |
|
|
const char * |
addr, |
|
|
int |
flagnskey, |
|
|
const char * |
key |
|
) |
| |
◆ cns_nonce()
| void cns_nonce |
( |
char |
nonce[12] | ) |
|
◆ cns_pubkey()
| int cns_pubkey |
( |
const char * |
dn, |
|
|
char * |
key |
|
) |
| |
◆ cns_query()
◆ cns_sortns()
| void cns_sortns |
( |
char * |
s, |
|
|
char * |
t, |
|
|
unsigned int |
n |
|
) |
| |
◆ 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 |
|
) |
| |
◆ cns_uncurve()
| int cns_uncurve |
( |
const struct dns_transmit * |
d, |
|
|
char * |
buf, |
|
|
unsigned int * |
lenp |
|
) |
| |
◆ dns_basequery()
| void dns_basequery |
( |
struct dns_transmit * |
d, |
|
|
char * |
query |
|
) |
| |