]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: ssl: convert diag to warning for strict-sni + default-crt
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 27 Aug 2025 13:56:38 +0000 (15:56 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 27 Aug 2025 14:22:12 +0000 (16:22 +0200)
Previous patch emits a diag warning when both 'strict-sni' +
'default-crt' are used on the same bind line.

This patch converts this diagnostic warning to a real warning, so the
previous patch could be backported without breaking configurations.

This was discussed in #3082.

src/ssl_sock.c

index 347256d35dc121ac8271c96b4e9f9bf28087e363..fc4e5a6024bdc398b8e0b102e931095c800cb559 100644 (file)
@@ -5048,7 +5048,7 @@ int ssl_sock_prepare_bind_conf(struct bind_conf *bind_conf)
                }
 
                if (is_default ==  CKCH_INST_EXPL_DEFAULT) {
-                       ha_diag_warning("Proxy '%s': both 'default-crt' and 'strict-sni' keywords are used in bind '%s' at [%s:%d], certificates won't be used as fallback (use 'crt' instead).\n",
+                       ha_warning("Proxy '%s': both 'default-crt' and 'strict-sni' keywords are used in bind '%s' at [%s:%d], certificates won't be used as fallback (use 'crt' instead).\n",
                                   px->id, bind_conf->arg, bind_conf->file, bind_conf->line);
                }