Commit 18ebd81
committed
MINOR: ssl: diagnostic warning when both 'default-crt' and 'strict-sni' are used
It possible to use both 'strict-sni' and 'default-crt' on the same bind
line, which does not make much sense.
This patch implements a check which will look for default certificates
in the sni_w tree when strict-sni is used. (Referenced by their empty
sni ""). default-crt sets the CKCH_INST_EXPL_DEFAULT flag in
ckch_inst->is_default, so its possible to differenciate explicits
default from implicit default.
Could be backported as far as 3.0.
This was discussed in ticket #3082.1 parent d753f24 commit 18ebd81
File tree
4 files changed
+41
-9
lines changed- include/haproxy
- src
4 files changed
+41
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
131 | | - | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
2615 | | - | |
2616 | | - | |
| 2615 | + | |
2617 | 2616 | | |
2618 | 2617 | | |
2619 | 2618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3211 | 3211 | | |
3212 | 3212 | | |
3213 | 3213 | | |
3214 | | - | |
| 3214 | + | |
3215 | 3215 | | |
3216 | 3216 | | |
3217 | 3217 | | |
| |||
3447 | 3447 | | |
3448 | 3448 | | |
3449 | 3449 | | |
3450 | | - | |
| 3450 | + | |
3451 | 3451 | | |
3452 | 3452 | | |
3453 | 3453 | | |
3454 | 3454 | | |
3455 | 3455 | | |
3456 | 3456 | | |
3457 | | - | |
| 3457 | + | |
3458 | 3458 | | |
3459 | 3459 | | |
3460 | 3460 | | |
| |||
3509 | 3509 | | |
3510 | 3510 | | |
3511 | 3511 | | |
3512 | | - | |
| 3512 | + | |
3513 | 3513 | | |
3514 | | - | |
| 3514 | + | |
3515 | 3515 | | |
3516 | 3516 | | |
3517 | 3517 | | |
| |||
5027 | 5027 | | |
5028 | 5028 | | |
5029 | 5029 | | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
5030 | 5058 | | |
5031 | 5059 | | |
5032 | 5060 | | |
| |||
0 commit comments