24 May 2018: Wouter
- Fix that libunbound can do DNS-over-TLS, when configured.
+ - Fix that windows unbound service can use DNS-over-TLS.
23 May 2018: Wouter
- Use accept4 to speed up incoming TCP (and TLS) connections,
#include "util/config_file.h"
#include "util/netevent.h"
#include "util/ub_event.h"
+#include "util/net_help.h"
/** global service status */
static SERVICE_STATUS service_status;
config_delete(cfg);
return 0;
}
+ if(cfg->ssl_service_key && cfg->ssl_service_key[0]) {
+ if(!(daemon->listen_sslctx = listen_sslctx_create(
+ cfg->ssl_service_key, cfg->ssl_service_pem, NULL)))
+ fatal_exit("could not set up listen SSL_CTX");
+ }
+ if(!(daemon->connect_sslctx = connect_sslctx_create(NULL, NULL,
+ cfg->tls_cert_bundle)))
+ fatal_exit("could not set up connect SSL_CTX");
/* open ports */
/* keep reporting that we are busy starting */