Mercurial > hg > nginx
comparison src/http/modules/ngx_http_grpc_module.c @ 8042:c7e25324be11
Upstream: handling of certificates specified as an empty string.
Now, if the directive is given an empty string, such configuration cancels
loading of certificates, in particular, if they would be otherwise inherited
from the previous level. This restores previous behaviour, before variables
support in certificates was introduced (3ab8e1e2f0f7).
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 07 Jun 2022 20:08:57 +0400 |
parents | 2bf7792c262e |
children | 9d98d524bd02 |
comparison
equal
deleted
inserted
replaced
8041:0784ab86ad08 | 8042:c7e25324be11 |
---|---|
4904 != NGX_OK) | 4904 != NGX_OK) |
4905 { | 4905 { |
4906 return NGX_ERROR; | 4906 return NGX_ERROR; |
4907 } | 4907 } |
4908 | 4908 |
4909 if (glcf->upstream.ssl_certificate) { | 4909 if (glcf->upstream.ssl_certificate |
4910 | 4910 && glcf->upstream.ssl_certificate->value.len) |
4911 { | |
4911 if (glcf->upstream.ssl_certificate_key == NULL) { | 4912 if (glcf->upstream.ssl_certificate_key == NULL) { |
4912 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, | 4913 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, |
4913 "no \"grpc_ssl_certificate_key\" is defined " | 4914 "no \"grpc_ssl_certificate_key\" is defined " |
4914 "for certificate \"%V\"", | 4915 "for certificate \"%V\"", |
4915 &glcf->upstream.ssl_certificate->value); | 4916 &glcf->upstream.ssl_certificate->value); |