summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/gpg/CertificateImpl.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-03-14 16:44:13 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-03-16 11:11:56 +0000
commit2237f08812f6075d529f4bee9d8bef94f653948a (patch)
tree66f1bdccc6078ed96b6b66f57045e69387d28d12 /xmlsecurity/source/gpg/CertificateImpl.cxx
parentfab4640bd3979352d6fde06decea1834f178f348 (diff)
gpg4libre: Add certificate usage to gpg certificates
Change-Id: I72c83724fcbd380e477a90a3e6db32406f68899b Reviewed-on: https://gerrit.libreoffice.org/35192 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'xmlsecurity/source/gpg/CertificateImpl.cxx')
-rw-r--r--xmlsecurity/source/gpg/CertificateImpl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlsecurity/source/gpg/CertificateImpl.cxx b/xmlsecurity/source/gpg/CertificateImpl.cxx
index 258098cc3efb..2bcc8f026161 100644
--- a/xmlsecurity/source/gpg/CertificateImpl.cxx
+++ b/xmlsecurity/source/gpg/CertificateImpl.cxx
@@ -11,6 +11,8 @@
#include <comphelper/servicehelper.hxx>
+#include <com/sun/star/security/KeyUsage.hpp>
+
using namespace css;
using namespace css::uno;
using namespace css::security;
@@ -136,7 +138,7 @@ Sequence< sal_Int8 > SAL_CALL CertificateImpl::getMD5Thumbprint()
sal_Int32 SAL_CALL CertificateImpl::getCertificateUsage()
{
- return 0;
+ return KeyUsage::DIGITAL_SIGNATURE | KeyUsage::NON_REPUDIATION | KeyUsage::KEY_ENCIPHERMENT | KeyUsage::DATA_ENCIPHERMENT;
}
/* XUnoTunnel */