Support RFC 7858 DNS over TLS
This change adds the core capability for DNS over TLS, and creates
private APIs for activating it, but does not provide any way to
activate the functionality in a development environment or on a
real device.
Based on https://android-review.googlesource.com/#/c/373776/
Test: Complete unit+integration tests. Manual tests look good.
Bug: 34953048
Change-Id: Ib99ac1f631fd2c2c8fbf53bdb05f67f8be7713ac
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 407c563..138043a 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -47,6 +47,10 @@
binder::Status getResolverInfo(int32_t netId, std::vector<std::string>* servers,
std::vector<std::string>* domains, std::vector<int32_t>* params,
std::vector<int32_t>* stats) override;
+ binder::Status addPrivateDnsServer(const std::string& server, int32_t port,
+ const std::string& fingerprintAlgorithm,
+ const std::vector<std::string>& fingerprints) override;
+ binder::Status removePrivateDnsServer(const std::string& server) override;
binder::Status setIPv6AddrGenMode(const std::string& ifName, int32_t mode) override;