summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc/biginteger.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/inc/biginteger.hxx')
-rw-r--r--xmlsecurity/inc/biginteger.hxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmlsecurity/inc/biginteger.hxx b/xmlsecurity/inc/biginteger.hxx
index c15b54de6229..fc99320c7ea2 100644
--- a/xmlsecurity/inc/biginteger.hxx
+++ b/xmlsecurity/inc/biginteger.hxx
@@ -35,8 +35,17 @@ XSECXMLSEC_DLLPUBLIC OUString bigIntegerToNumericString(const css::uno::Sequence
XSECXMLSEC_DLLPUBLIC css::uno::Sequence<sal_Int8>
numericStringToBigInteger(std::u16string_view serialNumber);
+// DNs read as strings from XML files may need to be mangled for compatibility
+// as NSS and MS CryptoAPI have different string serialisations; if the DN is
+// from an XCertificate it's "native" already and doesn't need to be mangled.
+enum EqualMode
+{
+ NOCOMPAT,
+ COMPAT_2ND,
+ COMPAT_BOTH
+};
XSECXMLSEC_DLLPUBLIC bool EqualDistinguishedNames(std::u16string_view rName1,
- std::u16string_view rName2);
+ std::u16string_view rName2, EqualMode eMode);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */