nghttpx: Fix compile error with --with-neverbleed
This commit is contained in:
parent
dc0f0123e9
commit
a390bd4ce0
|
@ -398,8 +398,10 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) {
|
||||||
make_unique<AcceptHandler>(wpconf->server_fd, &conn_handler));
|
make_unique<AcceptHandler>(wpconf->server_fd, &conn_handler));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto &upstreamconf = get_config()->conn.upstream;
|
||||||
|
|
||||||
#ifdef HAVE_NEVERBLEED
|
#ifdef HAVE_NEVERBLEED
|
||||||
if (!get_config()->upstream_no_tls || ssl::downstream_tls_enabled()) {
|
if (!upstreamconf.no_tls || ssl::downstream_tls_enabled()) {
|
||||||
std::array<char, NEVERBLEED_ERRBUF_SIZE> errbuf;
|
std::array<char, NEVERBLEED_ERRBUF_SIZE> errbuf;
|
||||||
auto nb = make_unique<neverbleed_t>();
|
auto nb = make_unique<neverbleed_t>();
|
||||||
if (neverbleed_init(nb.get(), errbuf.data()) != 0) {
|
if (neverbleed_init(nb.get(), errbuf.data()) != 0) {
|
||||||
|
@ -423,8 +425,6 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) {
|
||||||
|
|
||||||
#endif // HAVE_NEVERBLEED
|
#endif // HAVE_NEVERBLEED
|
||||||
|
|
||||||
auto &upstreamconf = get_config()->conn.upstream;
|
|
||||||
|
|
||||||
ev_timer renew_ticket_key_timer;
|
ev_timer renew_ticket_key_timer;
|
||||||
if (!upstreamconf.no_tls) {
|
if (!upstreamconf.no_tls) {
|
||||||
auto &ticketconf = get_config()->tls.ticket;
|
auto &ticketconf = get_config()->tls.ticket;
|
||||||
|
|
Loading…
Reference in New Issue