forked from NLnetLabs/unbound
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- NLnetLabs#1217. DNSCrypt support, with --enable-dnscrypt, libsodium…
… and then enabled in the config file from Manu Bretelle. git-svn-id: file:///svn/unbound/trunk@4065 be551aaa-1e26-0410-a405-d3ace91eadb9
- Loading branch information
1 parent
f952ac1
commit 7c9584e
Showing
25 changed files
with
1,123 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef UNBOUND_DNSCRYPT_CERT_H | ||
#define UNBOUND_DNSCRYPT_CERT_H | ||
|
||
#include <sodium.h> | ||
#define CERT_MAGIC_CERT "DNSC" | ||
#define CERT_MAJOR_VERSION 1 | ||
#define CERT_MINOR_VERSION 0 | ||
#define CERT_OLD_MAGIC_HEADER "7PYqwfzt" | ||
|
||
#define CERT_FILE_EXPIRE_DAYS 365 | ||
|
||
struct SignedCert { | ||
uint8_t magic_cert[4]; | ||
uint8_t version_major[2]; | ||
uint8_t version_minor[2]; | ||
|
||
// Signed Content | ||
uint8_t server_publickey[crypto_box_PUBLICKEYBYTES]; | ||
uint8_t magic_query[8]; | ||
uint8_t serial[4]; | ||
uint8_t ts_begin[4]; | ||
uint8_t ts_end[4]; | ||
uint8_t end[64]; | ||
}; | ||
|
||
|
||
#endif |
Oops, something went wrong.