xmlsecurity/source/gpg/CertificateImpl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 2237f08812f6075d529f4bee9d8bef94f653948a Author: Samuel Mehrbrodt <samuel.mehrbr...@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 <c...@libreoffice.org> Reviewed-by: Thorsten Behrens <thorsten.behr...@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 */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits