summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity')
-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 */