bmcweb: allow mutual-tls-common-name-parsing setting

Add a recipe variable that controls the mutual-tls-common-name-parsing
setting, when mutual-tls-auth is enabled: MUTUAL_TLS_PARSING.  Default
to 'username' to match the underlying repository.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5eea87f51981402d82da23b7853ab74e7bf4f03b
diff --git a/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb b/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
index a61a14a..76c0834 100644
--- a/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
+++ b/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
@@ -32,9 +32,14 @@
 PACKAGECONFIG[insecure-redfish-expand]="-Dinsecure-enable-redfish-query=enabled"
 PACKAGECONFIG[mutual-tls-auth]="-Dmutual-tls-auth=enabled,-Dmutual-tls-auth=disabled"
 
+MUTUAL_TLS_PARSING="username"
+
 EXTRA_OEMESON = " \
     --buildtype=minsize \
     -Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'mutual-tls-auth', \
+        '-Dmutual-tls-common-name-parsing=' + d.getVar('MUTUAL_TLS_PARSING', True), \
+        '', d)} \
 "
 
 do_install_ptest() {