Kaydet (Commit) 2237f088 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt Kaydeden (comit) Thorsten Behrens

gpg4libre: Add certificate usage to gpg certificates

Change-Id: I72c83724fcbd380e477a90a3e6db32406f68899b
Reviewed-on: https://gerrit.libreoffice.org/35192Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst fab4640b
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment