diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/certificatechooser.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/certificatechooser.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index 4c891abae5f3..fc230658e491 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -23,14 +23,16 @@ #include <biginteger.hxx> #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp> #include <comphelper/sequence.hxx> +#include <comphelper/xmlsechelper.hxx> #include <com/sun/star/security/NoPasswordException.hpp> #include <com/sun/star/security/CertificateCharacters.hpp> -#include <resourcemanager.hxx> #include <vcl/treelistentry.hxx> +#include <unotools/datetime.hxx> #include <unotools/useroptions.hxx> +using namespace comphelper; using namespace css; CertificateChooser::CertificateChooser(vcl::Window* _pParent, @@ -229,11 +231,11 @@ void CertificateChooser::ImplInitialize() userData->xSecurityEnvironment = secEnvironment; mvUserData.push_back(userData); - OUString sIssuer = XmlSec::GetContentPart( xCerts[ nC ]->getIssuerName() ); - SvTreeListEntry* pEntry = m_pCertLB->InsertEntry( XmlSec::GetContentPart( xCerts[ nC ]->getSubjectName() ) + OUString sIssuer = xmlsec::GetContentPart( xCerts[ nC ]->getIssuerName() ); + SvTreeListEntry* pEntry = m_pCertLB->InsertEntry( xmlsec::GetContentPart( xCerts[ nC ]->getSubjectName() ) + "\t" + sIssuer - + "\t" + XmlSec::GetCertificateKind( xCerts[ nC ]->getCertificateKind() ) - + "\t" + XmlSec::GetDateString( xCerts[ nC ]->getNotValidAfter() ) + + "\t" + xmlsec::GetCertificateKind( xCerts[ nC ]->getCertificateKind() ) + + "\t" + utl::GetDateString( xCerts[ nC ]->getNotValidAfter() ) + "\t" + UsageInClearText( xCerts[ nC ]->getCertificateUsage() ) ); pEntry->SetUserData( userData.get() ); |