[Libreoffice-commits] core.git: xmlsecurity/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Thu Mar 16 11:12:29 UTC 2017


 xmlsecurity/source/gpg/CertificateImpl.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 2237f08812f6075d529f4bee9d8bef94f653948a
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue Mar 14 16:44:13 2017 +0100

    gpg4libre: Add certificate usage to gpg certificates
    
    Change-Id: I72c83724fcbd380e477a90a3e6db32406f68899b
    Reviewed-on: https://gerrit.libreoffice.org/35192
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

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 */


More information about the Libreoffice-commits mailing list