4a478af52ab4609b24734ccd0e173b1057057200
[feed/packages.git] / net / uwsgi / patches / 005-ssl-option-can_t-be-set.patch
1 From b55d659c2ef6fb80b3b5d70192b1271992c393fc Mon Sep 17 00:00:00 2001
2 From: Mathieu Lacage <mathieu.lacage@gmail.com>
3 Date: Tue, 30 Oct 2018 17:08:19 +0100
4 Subject: [PATCH] ssl-option can't be set
5
6 The ssl-option variable can't be set: it is designed to take a numeric argument but is specified as a "no_argument" option which results in an error when trying to set this option. This changeset sets the proper type.
7
8 Given the changeset which introduced this option with the ssl-enable3 option which is of type no_argument, I suspect someone copy/pasted the ssl-enable3 configuration file without testing the change.
9 ---
10 core/uwsgi.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 --- a/core/uwsgi.c
14 +++ b/core/uwsgi.c
15 @@ -678,7 +678,7 @@ static struct uwsgi_option uwsgi_base_op
16 {"ssl-enable3", no_argument, 0, "enable SSLv3 (insecure)", uwsgi_opt_true, &uwsgi.sslv3, 0},
17 {"ssl-enable-sslv3", no_argument, 0, "enable SSLv3 (insecure)", uwsgi_opt_true, &uwsgi.sslv3, 0},
18 {"ssl-enable-tlsv1", no_argument, 0, "enable TLSv1 (insecure)", uwsgi_opt_true, &uwsgi.tlsv1, 0},
19 - {"ssl-option", no_argument, 0, "set a raw ssl option (numeric value)", uwsgi_opt_add_string_list, &uwsgi.ssl_options, 0},
20 + {"ssl-option", required_argument, 0, "set a raw ssl option (numeric value)", uwsgi_opt_add_string_list, &uwsgi.ssl_options, 0},
21 #ifdef UWSGI_PCRE
22 {"sni-regexp", required_argument, 0, "add an SNI-governed SSL context (the key is a regexp)", uwsgi_opt_sni, NULL, 0},
23 #endif