Electroneum
Loading...
Searching...
No Matches
cert.h
Go to the documentation of this file.
1
#ifndef UNBOUND_DNSCRYPT_CERT_H
2
#define UNBOUND_DNSCRYPT_CERT_H
3
8
9
#include <
sodium.h
>
10
#define CERT_MAGIC_CERT "DNSC"
11
#define CERT_MAJOR_VERSION 1
12
#define CERT_MINOR_VERSION 0
13
#define CERT_OLD_MAGIC_HEADER "7PYqwfzt"
14
15
#define CERT_FILE_EXPIRE_DAYS 365
16
17
struct
SignedCert
{
18
uint8_t
magic_cert
[4];
19
uint8_t
version_major
[2];
20
uint8_t
version_minor
[2];
21
22
// Signed Content
23
uint8_t
signed_content
[64];
24
uint8_t
server_publickey
[crypto_box_PUBLICKEYBYTES];
25
uint8_t
magic_query
[8];
26
uint8_t
serial
[4];
27
uint8_t
ts_begin
[4];
28
uint8_t
ts_end
[4];
29
};
30
31
32
#endif
sodium.h
uint8_t
unsigned char uint8_t
Definition
stdint.h:124
SignedCert
Definition
cert.h:17
SignedCert::version_major
uint8_t version_major[2]
Definition
cert.h:19
SignedCert::server_publickey
uint8_t server_publickey[crypto_box_PUBLICKEYBYTES]
Definition
cert.h:24
SignedCert::magic_query
uint8_t magic_query[8]
Definition
cert.h:25
SignedCert::ts_end
uint8_t ts_end[4]
Definition
cert.h:28
SignedCert::serial
uint8_t serial[4]
Definition
cert.h:26
SignedCert::signed_content
uint8_t signed_content[64]
Definition
cert.h:23
SignedCert::version_minor
uint8_t version_minor[2]
Definition
cert.h:20
SignedCert::ts_begin
uint8_t ts_begin[4]
Definition
cert.h:27
SignedCert::magic_cert
uint8_t magic_cert[4]
Definition
cert.h:18
external
unbound
dnscrypt
cert.h
Generated on
for Electroneum by
1.16.1