mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
src: switch from fnmatch to g_pattern_match_simple
The g_pattern_match function_simple is an acceptably close approximation of fnmatch for libvirt's needs. In contrast to fnmatch(), the '/' character can be matched by the wildcards, there are no '[...]' character ranges and '*' and '?' can not be escaped to include them literally in a pattern. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -183,7 +183,9 @@ tls_no_verify_certificate = 1
|
||||
#
|
||||
# "C=GB,ST=London,L=London,O=Red Hat,CN=*"
|
||||
#
|
||||
# See the POSIX fnmatch function for the format of the wildcards.
|
||||
# See the g_pattern_match function for the format of the wildcards.
|
||||
#
|
||||
# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
@@ -200,7 +202,9 @@ tls_allowed_dn_list = ["DN1", "DN2"]
|
||||
#
|
||||
# "*@EXAMPLE.COM"
|
||||
#
|
||||
# See the POSIX fnmatch function for the format of the wildcards.
|
||||
# See the g_pattern_match function for the format of the wildcards.
|
||||
#
|
||||
# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
|
||||
@@ -147,7 +147,9 @@ tls_no_verify_certificate = 1
|
||||
#
|
||||
# "C=GB,ST=London,L=London,O=Red Hat,CN=*"
|
||||
#
|
||||
# See the POSIX fnmatch function for the format of the wildcards.
|
||||
# See the g_pattern_match function for the format of the wildcards.
|
||||
#
|
||||
# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
@@ -162,7 +164,9 @@ tls_allowed_dn_list = [ "DN1", "DN2" ]
|
||||
#
|
||||
# "*@EXAMPLE.COM"
|
||||
#
|
||||
# See the POSIX fnmatch function for the format of the wildcards.
|
||||
# See the g_pattern_match function for the format of the wildcards.
|
||||
#
|
||||
# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
|
||||
Reference in New Issue
Block a user