summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/gpg/CertificateImpl.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-03-08 09:59:25 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-03-08 10:31:47 +0000
commit6f20dd1815c633c371aa69ffd696e620b0bc8657 (patch)
tree3222fd856fe66631b1f4eea40610a5c23150dec6 /xmlsecurity/source/gpg/CertificateImpl.cxx
parent9b59b3195b2ae26d8af56baa4159f1fec4b15feb (diff)
gpg4libre: Remove deprecated dynamic exception specifications
Change-Id: I3bec4570149af50fad5eef33bafb9842ab598798 Reviewed-on: https://gerrit.libreoffice.org/34967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmlsecurity/source/gpg/CertificateImpl.cxx')
-rw-r--r--xmlsecurity/source/gpg/CertificateImpl.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/xmlsecurity/source/gpg/CertificateImpl.cxx b/xmlsecurity/source/gpg/CertificateImpl.cxx
index 8c12da6ddf29..258098cc3efb 100644
--- a/xmlsecurity/source/gpg/CertificateImpl.cxx
+++ b/xmlsecurity/source/gpg/CertificateImpl.cxx
@@ -27,25 +27,21 @@ CertificateImpl::~CertificateImpl()
//Methods from XCertificateImpl
sal_Int16 SAL_CALL CertificateImpl::getVersion()
- throw ( RuntimeException, std::exception)
{
return 0;
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getSerialNumber()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
OUString SAL_CALL CertificateImpl::getIssuerName()
- throw ( RuntimeException, std::exception)
{
return OStringToOUString(m_pKey.userID(0).name(), RTL_TEXTENCODING_UTF8);
}
OUString SAL_CALL CertificateImpl::getSubjectName()
- throw ( RuntimeException, std::exception)
{
return OUString("");
}
@@ -66,7 +62,6 @@ namespace {
}
DateTime SAL_CALL CertificateImpl::getNotValidBefore()
- throw ( RuntimeException, std::exception)
{
const GpgME::Subkey subkey = m_pKey.subkey(0);
if (subkey.isNull())
@@ -76,7 +71,6 @@ DateTime SAL_CALL CertificateImpl::getNotValidBefore()
}
DateTime SAL_CALL CertificateImpl::getNotValidAfter()
- throw ( RuntimeException, std::exception)
{
const GpgME::Subkey subkey = m_pKey.subkey(0);
if (subkey.isNull() || subkey.neverExpires())
@@ -86,80 +80,67 @@ DateTime SAL_CALL CertificateImpl::getNotValidAfter()
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getIssuerUniqueID()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getSubjectUniqueID()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
Sequence< Reference< XCertificateExtension > > SAL_CALL CertificateImpl::getExtensions()
- throw ( RuntimeException, std::exception)
{
return Sequence< Reference< XCertificateExtension > > ();
}
Reference< XCertificateExtension > SAL_CALL CertificateImpl::findCertificateExtension( const Sequence< sal_Int8 >& /*oid*/ )
- throw (RuntimeException, std::exception)
{
return Reference< XCertificateExtension > ();
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getEncoded()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
OUString SAL_CALL CertificateImpl::getSubjectPublicKeyAlgorithm()
- throw ( RuntimeException, std::exception)
{
return OUString();
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getSubjectPublicKeyValue()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
OUString SAL_CALL CertificateImpl::getSignatureAlgorithm()
- throw ( RuntimeException, std::exception)
{
return OUString();
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getSHA1Thumbprint()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
uno::Sequence<sal_Int8> CertificateImpl::getSHA256Thumbprint()
- throw (uno::RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
Sequence< sal_Int8 > SAL_CALL CertificateImpl::getMD5Thumbprint()
- throw ( RuntimeException, std::exception)
{
return Sequence< sal_Int8 > ();
}
sal_Int32 SAL_CALL CertificateImpl::getCertificateUsage()
- throw ( RuntimeException, std::exception)
{
return 0;
}
/* XUnoTunnel */
sal_Int64 SAL_CALL CertificateImpl::getSomething(const Sequence< sal_Int8 >& aIdentifier)
- throw( RuntimeException, std::exception )
{
if( aIdentifier.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), aIdentifier.getConstArray(), 16 ) ) {
return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_uIntPtr>(this));