diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/resourcemanager.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/resourcemanager.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmlsecurity/source/dialogs/resourcemanager.cxx b/xmlsecurity/source/dialogs/resourcemanager.cxx index 00911d180cbf..cb8d3e239cd7 100644 --- a/xmlsecurity/source/dialogs/resourcemanager.cxx +++ b/xmlsecurity/source/dialogs/resourcemanager.cxx @@ -67,6 +67,19 @@ namespace XmlSec return GetLocaleData().getDate( GetDateTime( _rDT ) ); } + OUString GetCertificateKind( const css::security::CertificateKind &rKind ) + { + switch (rKind) + { + case css::security::CertificateKind_X509: + return OUString("X.509"); + case css::security::CertificateKind_OPENPGP: + return OUString("OpenPGP"); + default: + return OUString(); + } + } + /* Creates two strings based on the distinguished name which are displayed in the certificate details view. The first string contains only the values of the attribute |