Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssl_module.c @ 7463:180df83473a4
SSL: passwords support for dynamic certificate loading.
Passwords have to be copied to the configuration pool to be used
at runtime. Also, to prevent blocking on stdin (with "daemon off;")
an empty password list is provided.
To make things simpler, password handling was modified to allow
an empty array (with 0 elements and elts set to NULL) as an equivalent
of an array with 1 empty password.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Feb 2019 16:42:23 +0300 |
parents | be2af41d3620 |
children | 6708bec13757 |
comparison
equal
deleted
inserted
replaced
7462:be2af41d3620 | 7463:180df83473a4 |
---|---|
933 if (ngx_http_compile_complex_value(&ccv) != NGX_OK) { | 933 if (ngx_http_compile_complex_value(&ccv) != NGX_OK) { |
934 return NGX_ERROR; | 934 return NGX_ERROR; |
935 } | 935 } |
936 } | 936 } |
937 | 937 |
938 conf->passwords = ngx_ssl_preserve_passwords(cf, conf->passwords); | |
939 if (conf->passwords == NULL) { | |
940 return NGX_ERROR; | |
941 } | |
942 | |
938 return NGX_OK; | 943 return NGX_OK; |
939 } | 944 } |
940 | 945 |
941 | 946 |
942 static char * | 947 static char * |