return result;
});
- g_lua.registerFunction<void(std::shared_ptr<DOHFrontend>::*)()>("reloadCertificate", [](std::shared_ptr<DOHFrontend> frontend) {
+ g_lua.registerFunction<void(std::shared_ptr<DOHFrontend>::*)()>("reloadCertificates", [](std::shared_ptr<DOHFrontend> frontend) {
if (frontend != nullptr) {
- frontend->reloadCertificate();
+ frontend->reloadCertificates();
}
});
#endif /* HAVE_DNS_OVER_TLS */
#ifdef HAVE_DNS_OVER_HTTPS
if (frontend->dohFrontend) {
- frontend->dohFrontend->reloadCertificate();
+ frontend->dohFrontend->reloadCertificates();
}
#endif /* HAVE_DNS_OVER_HTTPS */
}
This object represents an address and port dnsdist is listening on for DNS over HTTPS queries.
- .. method:: TLSContext:reloadCertificate()
+ .. method:: DOHFrontend:reloadCertificates()
- Reload the current TLS certificate and key.
+ Reload the current TLS certificate and key pairs.
TLSContext
~~~~~~~~~~
ctx.release();
}
-void DOHFrontend::reloadCertificate()
+void DOHFrontend::reloadCertificates()
{
auto newAcceptContext = std::unique_ptr<DOHAcceptContext>(new DOHAcceptContext());
setupAcceptContext(*newAcceptContext, *d_dsc, true);
{
}
- void reloadCertificate()
+ void reloadCertificates()
{
}
#else
void setup();
- void reloadCertificate();
+ void reloadCertificates();
#endif /* HAVE_DNS_OVER_HTTPS */
};