forked from PowerDNS/pdns
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
auth: Implement RFC 7872 and 9018 (COOKIES)
This implements the siphash-based interoperable DNS COOKIES defined in RFC 9018 for the authoritative server. The EDNSCookieOpt struct has been expanded to accomodate this and can now has constructors and functions to check and generate a server cookie. Cookies will only be sent out if the client sent a cookie and the edns-cookie-secret setting is configures. The auth will respond with EDNS+FORMERR when the client cookie is malformed, BADCOOKIE when the client sent a server cookie we can't decode or is invalid and a normal response with a cookie (either new or sent by the client) when the cookie can be validated.
- Loading branch information
1 parent
5b93259
commit 306bf65
Showing
19 changed files
with
552 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1509,6 +1509,7 @@ sigs | |
SIGUSR | ||
singlethreaded | ||
Sipek | ||
siphash | ||
sizeof | ||
Sjoerd | ||
slapd | ||
|
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
Oops, something went wrong.