2010-10-12 15:57:08 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-16 17:32:30 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2017-12-14 18:12:56 +01:00
|
|
|
#include <config_gpgme.h>
|
2016-05-27 10:56:17 +03:00
|
|
|
#include <certificatechooser.hxx>
|
|
|
|
#include <certificateviewer.hxx>
|
|
|
|
#include <biginteger.hxx>
|
2004-07-12 12:15:31 +00:00
|
|
|
#include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
|
|
|
|
#include <comphelper/sequence.hxx>
|
|
|
|
|
|
|
|
#include <com/sun/star/security/NoPasswordException.hpp>
|
2004-07-22 14:37:38 +00:00
|
|
|
#include <com/sun/star/security/CertificateCharacters.hpp>
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2017-10-23 22:27:10 +02:00
|
|
|
#include <resourcemanager.hxx>
|
2014-05-19 11:57:34 +02:00
|
|
|
#include <svtools/treelistentry.hxx>
|
2017-12-14 18:12:56 +01:00
|
|
|
#include <unotools/useroptions.hxx>
|
2005-03-10 17:04:16 +00:00
|
|
|
|
2017-02-02 17:33:30 +01:00
|
|
|
using namespace css;
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2017-02-02 17:33:30 +01:00
|
|
|
CertificateChooser::CertificateChooser(vcl::Window* _pParent,
|
2017-08-01 10:09:18 +02:00
|
|
|
uno::Reference<uno::XComponentContext> const & _rxCtx,
|
2017-08-22 15:28:39 +02:00
|
|
|
std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > const & rxSecurityContexts,
|
|
|
|
UserAction eAction)
|
2017-02-02 17:33:30 +01:00
|
|
|
: ModalDialog(_pParent, "SelectCertificateDialog", "xmlsec/ui/selectcertificatedialog.ui"),
|
2017-08-22 15:28:39 +02:00
|
|
|
mvUserData(),
|
|
|
|
meAction( eAction )
|
2004-07-12 12:15:31 +00:00
|
|
|
{
|
2017-08-22 15:28:39 +02:00
|
|
|
get(m_pFTSign, "sign");
|
|
|
|
get(m_pFTEncrypt, "encrypt");
|
2012-12-29 18:11:33 +00:00
|
|
|
get(m_pOKBtn, "ok");
|
|
|
|
get(m_pViewBtn, "viewcert");
|
2017-12-07 23:06:54 +01:00
|
|
|
get(m_pFTDescription, "description-label");
|
2016-01-06 09:07:46 +01:00
|
|
|
get(m_pDescriptionED, "description");
|
2012-12-29 18:11:33 +00:00
|
|
|
|
2016-05-19 20:27:55 +03:00
|
|
|
Size aControlSize(475, 122);
|
2012-12-29 18:11:33 +00:00
|
|
|
const long nControlWidth = aControlSize.Width();
|
2017-10-26 23:15:06 +02:00
|
|
|
aControlSize = LogicToPixel(aControlSize, MapMode(MapUnit::MapAppFont));
|
2013-07-16 09:12:42 +01:00
|
|
|
SvSimpleTableContainer *pSignatures = get<SvSimpleTableContainer>("signatures");
|
2012-12-29 18:11:33 +00:00
|
|
|
pSignatures->set_width_request(aControlSize.Width());
|
|
|
|
pSignatures->set_height_request(aControlSize.Height());
|
|
|
|
|
2015-04-16 22:18:45 +01:00
|
|
|
m_pCertLB = VclPtr<SvSimpleTable>::Create(*pSignatures);
|
2018-04-24 13:36:34 +02:00
|
|
|
static long nTabs[] = { 0, 20*nControlWidth/100, 50*nControlWidth/100, 60*nControlWidth/100, 70*nControlWidth/100 };
|
|
|
|
m_pCertLB->SetTabs( SAL_N_ELEMENTS(nTabs), nTabs );
|
2013-08-17 01:11:11 +02:00
|
|
|
m_pCertLB->InsertHeaderEntry(get<FixedText>("issuedto")->GetText() + "\t" + get<FixedText>("issuedby")->GetText()
|
2017-06-20 14:21:06 +02:00
|
|
|
+ "\t" + get<FixedText>("type")->GetText() + "\t" + get<FixedText>("expiration")->GetText()
|
|
|
|
+ "\t" + get<FixedText>("usage")->GetText());
|
2012-12-29 18:11:33 +00:00
|
|
|
m_pCertLB->SetSelectHdl( LINK( this, CertificateChooser, CertificateHighlightHdl ) );
|
|
|
|
m_pCertLB->SetDoubleClickHdl( LINK( this, CertificateChooser, CertificateSelectHdl ) );
|
|
|
|
m_pViewBtn->SetClickHdl( LINK( this, CertificateChooser, ViewButtonHdl ) );
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2008-08-18 12:13:05 +00:00
|
|
|
mxCtx = _rxCtx;
|
2017-06-16 15:24:06 +02:00
|
|
|
mxSecurityContexts = rxSecurityContexts;
|
2012-09-25 17:28:22 +02:00
|
|
|
mbInitialized = false;
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2005-05-18 08:57:17 +00:00
|
|
|
// disable buttons
|
2015-11-10 10:29:43 +01:00
|
|
|
CertificateHighlightHdl( nullptr );
|
2005-05-18 08:57:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CertificateChooser::~CertificateChooser()
|
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-01-26 13:25:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CertificateChooser::dispose()
|
2005-05-18 08:57:17 +00:00
|
|
|
{
|
2017-08-22 15:28:39 +02:00
|
|
|
m_pFTSign.clear();
|
|
|
|
m_pFTEncrypt.clear();
|
2015-04-10 10:44:13 +01:00
|
|
|
m_pCertLB.disposeAndClear();
|
2015-03-09 14:29:30 +02:00
|
|
|
m_pViewBtn.clear();
|
|
|
|
m_pOKBtn.clear();
|
2017-12-07 23:06:54 +01:00
|
|
|
m_pFTDescription.clear();
|
2016-06-30 14:09:31 +02:00
|
|
|
m_pDescriptionED.clear();
|
2017-02-02 17:33:30 +01:00
|
|
|
mvUserData.clear();
|
2015-01-26 13:25:18 +02:00
|
|
|
ModalDialog::dispose();
|
2005-05-18 08:57:17 +00:00
|
|
|
}
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2005-05-18 08:57:17 +00:00
|
|
|
short CertificateChooser::Execute()
|
|
|
|
{
|
|
|
|
// #i48432#
|
|
|
|
// We can't check for personal certificates before raising this dialog,
|
|
|
|
// because the mozilla implementation throws a NoPassword exception,
|
|
|
|
// if the user pressed cancel, and also if the database does not exist!
|
|
|
|
// But in the later case, the is no password query, and the user is confused
|
|
|
|
// that nothing happens when pressing "Add..." in the SignatureDialog.
|
|
|
|
|
|
|
|
// PostUserEvent( LINK( this, CertificateChooser, Initialize ) );
|
|
|
|
|
|
|
|
// PostUserLink behavior is to slow, so do it directly before Execute().
|
|
|
|
// Problem: This Dialog should be visible right now, and the parent should not be accessible.
|
2017-03-24 15:38:38 +01:00
|
|
|
// Show, Update, DisableInput...
|
2005-05-18 08:57:17 +00:00
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
vcl::Window* pMe = this;
|
|
|
|
vcl::Window* pParent = GetParent();
|
2005-05-18 08:57:17 +00:00
|
|
|
if ( pParent )
|
2014-01-28 19:58:53 +01:00
|
|
|
pParent->EnableInput( false );
|
2005-05-18 08:57:17 +00:00
|
|
|
pMe->Show();
|
|
|
|
pMe->Update();
|
|
|
|
ImplInitialize();
|
|
|
|
if ( pParent )
|
2015-10-19 17:52:21 +02:00
|
|
|
pParent->EnableInput();
|
2005-05-18 08:57:17 +00:00
|
|
|
return ModalDialog::Execute();
|
|
|
|
}
|
|
|
|
|
2016-05-19 20:27:55 +03:00
|
|
|
void CertificateChooser::HandleOneUsageBit(OUString& string, int& bits, int bit, const char *name)
|
|
|
|
{
|
|
|
|
if (bits & bit)
|
|
|
|
{
|
|
|
|
if (!string.isEmpty())
|
|
|
|
string += ", ";
|
|
|
|
string += get<FixedText>(OString("STR_") + name)->GetText();
|
|
|
|
bits &= ~bit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
OUString CertificateChooser::UsageInClearText(int bits)
|
|
|
|
{
|
|
|
|
OUString result;
|
|
|
|
|
|
|
|
HandleOneUsageBit(result, bits, 0x80, "DIGITAL_SIGNATURE");
|
|
|
|
HandleOneUsageBit(result, bits, 0x40, "NON_REPUDIATION");
|
|
|
|
HandleOneUsageBit(result, bits, 0x20, "KEY_ENCIPHERMENT");
|
|
|
|
HandleOneUsageBit(result, bits, 0x10, "DATA_ENCIPHERMENT");
|
|
|
|
HandleOneUsageBit(result, bits, 0x08, "KEY_AGREEMENT");
|
|
|
|
HandleOneUsageBit(result, bits, 0x04, "KEY_CERT_SIGN");
|
|
|
|
HandleOneUsageBit(result, bits, 0x02, "CRL_SIGN");
|
|
|
|
HandleOneUsageBit(result, bits, 0x01, "ENCIPHER_ONLY");
|
|
|
|
|
|
|
|
// Check for mystery leftover bits
|
|
|
|
if (bits != 0)
|
|
|
|
{
|
|
|
|
if (!result.isEmpty())
|
|
|
|
result += ", ";
|
2016-05-19 21:55:23 +03:00
|
|
|
result += "0x" + OUString::number(bits, 16);
|
2016-05-19 20:27:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2005-05-18 08:57:17 +00:00
|
|
|
void CertificateChooser::ImplInitialize()
|
|
|
|
{
|
2017-02-22 12:18:57 +01:00
|
|
|
if ( mbInitialized )
|
|
|
|
return;
|
|
|
|
|
2017-12-14 18:12:56 +01:00
|
|
|
SvtUserOptions aUserOpts;
|
|
|
|
|
2017-08-22 15:28:39 +02:00
|
|
|
switch (meAction)
|
|
|
|
{
|
|
|
|
case UserAction::Sign:
|
|
|
|
m_pFTSign->Show();
|
|
|
|
m_pOKBtn->SetText( get<FixedText>("str_sign")->GetText() );
|
2017-12-14 18:12:56 +01:00
|
|
|
msPreferredKey = aUserOpts.GetSigningKey();
|
2017-08-22 15:28:39 +02:00
|
|
|
break;
|
|
|
|
|
2018-04-13 13:08:03 +02:00
|
|
|
case UserAction::SelectSign:
|
|
|
|
m_pFTSign->Show();
|
|
|
|
m_pOKBtn->SetText( get<FixedText>("str_selectsign")->GetText() );
|
|
|
|
msPreferredKey = aUserOpts.GetSigningKey();
|
|
|
|
break;
|
|
|
|
|
2017-08-22 15:28:39 +02:00
|
|
|
case UserAction::Encrypt:
|
|
|
|
m_pFTEncrypt->Show();
|
2017-12-07 23:06:54 +01:00
|
|
|
m_pFTDescription->Hide();
|
|
|
|
m_pDescriptionED->Hide();
|
|
|
|
m_pCertLB->SetSelectionMode( SelectionMode::Multiple );
|
2017-08-22 15:28:39 +02:00
|
|
|
m_pOKBtn->SetText( get<FixedText>("str_encrypt")->GetText() );
|
2017-12-14 18:12:56 +01:00
|
|
|
msPreferredKey = aUserOpts.GetEncryptionKey();
|
2017-08-22 15:28:39 +02:00
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-06-16 15:24:06 +02:00
|
|
|
for (auto &secContext : mxSecurityContexts)
|
2004-07-12 12:15:31 +00:00
|
|
|
{
|
2017-07-01 10:22:06 +02:00
|
|
|
if (!secContext.is())
|
|
|
|
continue;
|
2017-06-16 15:24:06 +02:00
|
|
|
auto secEnvironment = secContext->getSecurityEnvironment();
|
2017-04-18 18:11:02 +03:00
|
|
|
if (!secEnvironment.is())
|
|
|
|
continue;
|
|
|
|
|
2017-02-02 17:33:30 +01:00
|
|
|
uno::Sequence< uno::Reference< security::XCertificate > > xCerts;
|
|
|
|
try
|
|
|
|
{
|
2018-04-13 13:08:03 +02:00
|
|
|
if ( meAction == UserAction::Sign || meAction == UserAction::SelectSign)
|
2017-08-23 00:06:21 +02:00
|
|
|
xCerts = secEnvironment->getPersonalCertificates();
|
|
|
|
else
|
|
|
|
xCerts = secEnvironment->getAllCertificates();
|
2017-02-02 17:33:30 +01:00
|
|
|
}
|
|
|
|
catch (security::NoPasswordException&)
|
|
|
|
{
|
|
|
|
}
|
2004-07-22 14:37:38 +00:00
|
|
|
|
2017-02-02 17:33:30 +01:00
|
|
|
sal_Int32 nCertificates = xCerts.getLength();
|
|
|
|
for( sal_Int32 nCert = nCertificates; nCert; )
|
2004-07-22 14:37:38 +00:00
|
|
|
{
|
2017-02-02 17:33:30 +01:00
|
|
|
uno::Reference< security::XCertificate > xCert = xCerts[ --nCert ];
|
|
|
|
// Check if we have a private key for this...
|
|
|
|
long nCertificateCharacters = secEnvironment->getCertificateCharacters(xCert);
|
|
|
|
|
|
|
|
if (!(nCertificateCharacters & security::CertificateCharacters::HAS_PRIVATE_KEY))
|
|
|
|
{
|
|
|
|
::comphelper::removeElementAt( xCerts, nCert );
|
|
|
|
nCertificates = xCerts.getLength();
|
|
|
|
}
|
2004-07-22 14:37:38 +00:00
|
|
|
}
|
2004-07-12 12:15:31 +00:00
|
|
|
|
2017-12-14 18:12:56 +01:00
|
|
|
|
2017-02-02 17:33:30 +01:00
|
|
|
// fill list of certificates; the first entry will be selected
|
|
|
|
for ( sal_Int32 nC = 0; nC < nCertificates; ++nC )
|
|
|
|
{
|
|
|
|
std::shared_ptr<UserData> userData = std::make_shared<UserData>();
|
|
|
|
userData->xCertificate = xCerts[ nC ];
|
2017-06-16 15:24:06 +02:00
|
|
|
userData->xSecurityContext = secContext;
|
2017-02-02 17:33:30 +01:00
|
|
|
userData->xSecurityEnvironment = secEnvironment;
|
|
|
|
mvUserData.push_back(userData);
|
2017-12-14 18:12:56 +01:00
|
|
|
|
|
|
|
OUString sIssuer = XmlSec::GetContentPart( xCerts[ nC ]->getIssuerName() );
|
2017-02-02 17:33:30 +01:00
|
|
|
SvTreeListEntry* pEntry = m_pCertLB->InsertEntry( XmlSec::GetContentPart( xCerts[ nC ]->getSubjectName() )
|
2017-12-14 18:12:56 +01:00
|
|
|
+ "\t" + sIssuer
|
2017-06-20 14:21:06 +02:00
|
|
|
+ "\t" + XmlSec::GetCertificateKind( xCerts[ nC ]->getCertificateKind() )
|
|
|
|
+ "\t" + XmlSec::GetDateString( xCerts[ nC ]->getNotValidAfter() )
|
|
|
|
+ "\t" + UsageInClearText( xCerts[ nC ]->getCertificateUsage() ) );
|
2017-02-02 17:33:30 +01:00
|
|
|
pEntry->SetUserData( userData.get() );
|
2017-12-14 18:12:56 +01:00
|
|
|
|
|
|
|
#if HAVE_FEATURE_GPGME
|
|
|
|
// only GPG has preferred keys
|
|
|
|
if ( sIssuer == msPreferredKey )
|
|
|
|
{
|
2018-04-13 13:08:03 +02:00
|
|
|
if ( meAction == UserAction::Sign || meAction == UserAction::SelectSign )
|
2017-12-14 18:12:56 +01:00
|
|
|
m_pCertLB->Select( pEntry );
|
|
|
|
else if ( meAction == UserAction::Encrypt &&
|
|
|
|
aUserOpts.GetEncryptToSelf() )
|
|
|
|
mxEncryptToSelf = xCerts[nC];
|
|
|
|
}
|
|
|
|
#endif
|
2017-02-02 17:33:30 +01:00
|
|
|
}
|
2004-07-12 12:15:31 +00:00
|
|
|
}
|
2017-02-22 12:18:57 +01:00
|
|
|
|
|
|
|
// enable/disable buttons
|
|
|
|
CertificateHighlightHdl( nullptr );
|
|
|
|
mbInitialized = true;
|
2004-07-12 12:15:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-07 05:11:15 +01:00
|
|
|
uno::Sequence<uno::Reference< css::security::XCertificate > > CertificateChooser::GetSelectedCertificates()
|
2004-07-12 12:15:31 +00:00
|
|
|
{
|
2017-12-07 05:11:15 +01:00
|
|
|
std::vector< uno::Reference< css::security::XCertificate > > aRet;
|
2017-02-02 17:33:30 +01:00
|
|
|
SvTreeListEntry* pSel = m_pCertLB->FirstSelected();
|
|
|
|
|
2017-12-07 05:11:15 +01:00
|
|
|
if (meAction == UserAction::Encrypt)
|
|
|
|
{
|
|
|
|
// for encryption, multiselection is enabled
|
|
|
|
while(pSel)
|
|
|
|
{
|
|
|
|
UserData* userData = static_cast<UserData*>(pSel->GetUserData());
|
|
|
|
aRet.push_back( userData->xCertificate );
|
|
|
|
pSel = m_pCertLB->NextSelected(pSel);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
uno::Reference< css::security::XCertificate > xCert;
|
|
|
|
if( pSel )
|
|
|
|
{
|
|
|
|
UserData* userData = static_cast<UserData*>(pSel->GetUserData());
|
|
|
|
xCert = userData->xCertificate;
|
|
|
|
}
|
|
|
|
aRet.push_back( xCert );
|
|
|
|
}
|
|
|
|
|
2017-12-14 18:12:56 +01:00
|
|
|
#if HAVE_FEATURE_GPGME
|
|
|
|
if ( mxEncryptToSelf.is())
|
|
|
|
aRet.push_back( mxEncryptToSelf );
|
|
|
|
#endif
|
|
|
|
|
2017-12-07 05:11:15 +01:00
|
|
|
return comphelper::containerToSequence(aRet);
|
2004-07-12 12:15:31 +00:00
|
|
|
}
|
|
|
|
|
2017-06-16 15:24:06 +02:00
|
|
|
uno::Reference<xml::crypto::XXMLSecurityContext> CertificateChooser::GetSelectedSecurityContext()
|
|
|
|
{
|
|
|
|
SvTreeListEntry* pSel = m_pCertLB->FirstSelected();
|
|
|
|
if( !pSel )
|
|
|
|
return uno::Reference<xml::crypto::XXMLSecurityContext>();
|
|
|
|
|
|
|
|
UserData* userData = static_cast<UserData*>(pSel->GetUserData());
|
|
|
|
uno::Reference<xml::crypto::XXMLSecurityContext> xCert = userData->xSecurityContext;
|
|
|
|
return xCert;
|
|
|
|
}
|
|
|
|
|
2016-01-06 09:07:46 +01:00
|
|
|
OUString CertificateChooser::GetDescription()
|
|
|
|
{
|
|
|
|
return m_pDescriptionED->GetText();
|
|
|
|
}
|
|
|
|
|
2017-10-03 19:41:28 -04:00
|
|
|
OUString CertificateChooser::GetUsageText()
|
|
|
|
{
|
2017-12-07 05:11:15 +01:00
|
|
|
uno::Sequence< uno::Reference<css::security::XCertificate> > xCerts =
|
|
|
|
GetSelectedCertificates();
|
|
|
|
return (xCerts.hasElements() && xCerts[0].is()) ?
|
|
|
|
UsageInClearText(xCerts[0]->getCertificateUsage()) : OUString();
|
2017-10-03 19:41:28 -04:00
|
|
|
}
|
|
|
|
|
2016-10-05 07:56:12 +02:00
|
|
|
IMPL_LINK_NOARG(CertificateChooser, CertificateHighlightHdl, SvTreeListBox*, void)
|
2004-07-12 12:15:31 +00:00
|
|
|
{
|
2017-12-07 05:11:15 +01:00
|
|
|
bool bEnable = m_pCertLB->GetSelectionCount() > 0;
|
2012-12-29 18:11:33 +00:00
|
|
|
m_pViewBtn->Enable( bEnable );
|
|
|
|
m_pOKBtn->Enable( bEnable );
|
2016-01-06 09:07:46 +01:00
|
|
|
m_pDescriptionED->Enable(bEnable);
|
2004-07-12 12:15:31 +00:00
|
|
|
}
|
|
|
|
|
2016-10-05 07:56:12 +02:00
|
|
|
IMPL_LINK_NOARG(CertificateChooser, CertificateSelectHdl, SvTreeListBox*, bool)
|
2004-07-12 12:15:31 +00:00
|
|
|
{
|
2005-03-10 17:04:16 +00:00
|
|
|
EndDialog( RET_OK );
|
2015-09-10 14:39:17 +02:00
|
|
|
return false;
|
2004-07-12 12:15:31 +00:00
|
|
|
}
|
|
|
|
|
2016-10-05 07:56:12 +02:00
|
|
|
IMPL_LINK_NOARG(CertificateChooser, ViewButtonHdl, Button*, void)
|
2004-07-12 12:15:31 +00:00
|
|
|
{
|
|
|
|
ImplShowCertificateDetails();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CertificateChooser::ImplShowCertificateDetails()
|
|
|
|
{
|
2017-02-02 17:33:30 +01:00
|
|
|
SvTreeListEntry* pSel = m_pCertLB->FirstSelected();
|
|
|
|
if( !pSel )
|
|
|
|
return;
|
|
|
|
|
|
|
|
UserData* userData = static_cast<UserData*>(pSel->GetUserData());
|
|
|
|
|
|
|
|
if (!userData->xSecurityEnvironment.is() || !userData->xCertificate.is())
|
|
|
|
return;
|
|
|
|
|
|
|
|
ScopedVclPtrInstance< CertificateViewer > aViewer( this, userData->xSecurityEnvironment, userData->xCertificate, true );
|
|
|
|
aViewer->Execute();
|
2005-03-10 17:04:16 +00:00
|
|
|
}
|
|
|
|
|
2010-10-12 15:57:08 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|