mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
setup when ssl upstream or a cert-bundle is configured.
git-svn-id: file:///svn/unbound/trunk@4692 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
8bcb44a019
commit
9ed59fdf34
2 changed files with 9 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
- Fix that libunbound can do DNS-over-TLS, when configured.
|
- Fix that libunbound can do DNS-over-TLS, when configured.
|
||||||
- Fix that windows unbound service can use DNS-over-TLS.
|
- Fix that windows unbound service can use DNS-over-TLS.
|
||||||
- unbound-host initializes ssl (for potential DNS-over-TLS usage
|
- unbound-host initializes ssl (for potential DNS-over-TLS usage
|
||||||
inside libunbound).
|
inside libunbound), when ssl upstream or a cert-bundle is configured.
|
||||||
|
|
||||||
23 May 2018: Wouter
|
23 May 2018: Wouter
|
||||||
- Use accept4 to speed up incoming TCP (and TLS) connections,
|
- Use accept4 to speed up incoming TCP (and TLS) connections,
|
||||||
|
|
|
||||||
|
|
@ -158,12 +158,14 @@ libworker_setup(struct ub_ctx* ctx, int is_bg, struct ub_event_base* eb)
|
||||||
hints_delete(w->env->hints);
|
hints_delete(w->env->hints);
|
||||||
w->env->hints = NULL;
|
w->env->hints = NULL;
|
||||||
}
|
}
|
||||||
w->sslctx = connect_sslctx_create(NULL, NULL,
|
if(cfg->ssl_upstream || (cfg->tls_cert_bundle && cfg->tls_cert_bundle[0])) {
|
||||||
cfg->tls_cert_bundle);
|
w->sslctx = connect_sslctx_create(NULL, NULL,
|
||||||
if(!w->sslctx) {
|
cfg->tls_cert_bundle);
|
||||||
/* to make the setup fail after unlock */
|
if(!w->sslctx) {
|
||||||
hints_delete(w->env->hints);
|
/* to make the setup fail after unlock */
|
||||||
w->env->hints = NULL;
|
hints_delete(w->env->hints);
|
||||||
|
w->env->hints = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(!w->is_bg || w->is_bg_thread) {
|
if(!w->is_bg || w->is_bg_thread) {
|
||||||
lock_basic_unlock(&ctx->cfglock);
|
lock_basic_unlock(&ctx->cfglock);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue