struct rdns_reply_entry { | struct rdns_reply_entry { | ||||
union rdns_reply_element_un content; | union rdns_reply_element_un content; | ||||
uint16_t type; | |||||
enum rdns_request_type type; | |||||
int32_t ttl; | int32_t ttl; | ||||
struct rdns_reply_entry *prev, *next; | struct rdns_reply_entry *prev, *next; | ||||
}; | }; |
extern "C" { | extern "C" { | ||||
#endif | #endif | ||||
enum blake2b_constant { | |||||
BLAKE2B_BLOCKBYTES = 128, | |||||
BLAKE2B_OUTBYTES = 64, | |||||
BLAKE2B_KEYBYTES = 64, | |||||
BLAKE2B_SALTBYTES = 16, | |||||
BLAKE2B_PERSONALBYTES = 16 | |||||
}; | |||||
#define BLAKE2B_BLOCKBYTES 128 | |||||
#define BLAKE2B_OUTBYTES 64 | |||||
#define BLAKE2B_KEYBYTES 64 | |||||
#define BLAKE2B_SALTBYTES 16 | |||||
#define BLAKE2B_PERSONALBYTES 16 | |||||
typedef struct blake2b_state_t { | typedef struct blake2b_state_t { | ||||
unsigned char opaque[256]; | unsigned char opaque[256]; |
#ifndef CHACHA_H_ | #ifndef CHACHA_H_ | ||||
#define CHACHA_H_ | #define CHACHA_H_ | ||||
enum chacha_constants { | |||||
CHACHA_BLOCKBYTES = 64, | |||||
}; | |||||
#define CHACHA_BLOCKBYTES 64 | |||||
typedef struct chacha_state_internal_t { | typedef struct chacha_state_internal_t { | ||||
unsigned char s[48]; | unsigned char s[48]; |
#include "config.h" | #include "config.h" | ||||
#include "poly1305.h" | #include "poly1305.h" | ||||
#include "poly1305_internal.h" | #include "poly1305_internal.h" | ||||
enum { | |||||
POLY1305_BLOCK_SIZE = 16 | |||||
}; | |||||
#define POLY1305_BLOCK_SIZE 16 | |||||
typedef struct poly1305_state_ref_t { | typedef struct poly1305_state_ref_t { | ||||
uint64_t r[3]; | uint64_t r[3]; |
} | } | ||||
} | } | ||||
if (type != SOCK_DGRAM) { | |||||
if (type != (int)SOCK_DGRAM) { | |||||
if (addr->af == AF_UNIX) { | if (addr->af == AF_UNIX) { | ||||
path = addr->u.un->addr.sun_path; | path = addr->u.un->addr.sun_path; |