diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-06-19 23:36:12 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-06-21 22:16:55 +0200 |
commit | bb06a106aa92dae05b2d05a46c6c6586e9b84b7c (patch) | |
tree | 695a4d11be0709b302defd08e0ffe3c5758456c9 /offapi | |
parent | d6f8b0348767afea083f24f839b8130897563188 (diff) |
gpg4libre: [API-CHANGE] add certificate kind (X509 vs. OpenPGP)
Change-Id: I423bef41f93af9d1b78ee9795be7ec33c3c7ae0c
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 1 | ||||
-rw-r--r-- | offapi/com/sun/star/security/CertificateKind.idl | 33 | ||||
-rw-r--r-- | offapi/com/sun/star/security/XCertificate.idl | 8 |
3 files changed, 41 insertions, 1 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index c947ce392e65..f3e0274777a7 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -3318,6 +3318,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/security,\ CertificateCharacters \ CertificateContainerStatus \ CertificateException \ + CertificateKind \ CertificateValidity \ CryptographyException \ DocumentSignatureInformation \ diff --git a/offapi/com/sun/star/security/CertificateKind.idl b/offapi/com/sun/star/security/CertificateKind.idl new file mode 100644 index 000000000000..b1ae35e87ded --- /dev/null +++ b/offapi/com/sun/star/security/CertificateKind.idl @@ -0,0 +1,33 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef __com_sun_star_security_CertificateKind_idl_ +#define __com_sun_star_security_CertificateKind_idl_ + +module com { module sun { module star { module security { + +/** + * Enum definition of a certificate kind ( X509, OpenPGP ) + */ +enum CertificateKind +{ + /** X.509 format of a certificate + */ + X509, + + /** OpenPGP format of a certificate + */ + OPENPGP +}; + +} ; } ; } ; } ; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/security/XCertificate.idl b/offapi/com/sun/star/security/XCertificate.idl index 22f7c6a4a1be..6feaa409ccf2 100644 --- a/offapi/com/sun/star/security/XCertificate.idl +++ b/offapi/com/sun/star/security/XCertificate.idl @@ -23,13 +23,14 @@ #include <com/sun/star/uno/XInterface.idl> #include <com/sun/star/util/DateTime.idl> #include <com/sun/star/security/XCertificateExtension.idl> +#include <com/sun/star/security/CertificateKind.idl> module com { module sun { module star { module security { /** * Interface of a PKI Certificate * - * <p>This interface represents a x509 certificate.</p> + * <p>This interface represents a certificate (X.509 or OpenPGP) .</p> */ interface XCertificate : com::sun::star::uno::XInterface { @@ -109,6 +110,11 @@ interface XCertificate : com::sun::star::uno::XInterface [attribute, readonly] sequence< byte > MD5Thumbprint; /** + * the kind of certificate, X.509 or OpenPGP + */ + [attribute, readonly] com::sun::star::security::CertificateKind CertificateKind; + + /** * Find a extension with a object identifier. */ XCertificateExtension findCertificateExtension( [in]sequence< byte > oid ) ; |