diff options
author | Moritz Duge <moritz.duge@allotropia.de> | 2024-08-08 15:16:25 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-08-13 01:09:01 +0200 |
commit | 8f9f04297602a29726089227a0903ca177c98f43 (patch) | |
tree | 4757863fe60c689dbfa0bbcd3c3d440e5c64e54f /offapi | |
parent | 9383f83b05f3049c350bbc784618da3d6f1a5556 (diff) |
tdf#161909: make showing GPG keys only an explicit functionality
Before this change, selecting only GPG keys for ODF encrpytion relied on
the fact, that all X.509 implementations (nss+mscrypt) implement listing
public keys (getAllCertificates) as a stub.
See previous change Ia6b8ecb9
Change-Id: Icb36a4cefd60b94407129ff73fe62f9250bfbee5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171639
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/security/XDocumentDigitalSignatures.idl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl index cba242258601..d85be941c8d1 100644 --- a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl +++ b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl @@ -161,6 +161,10 @@ interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface /** This shows the certificate selection dialog and allows to only select the certificate without actually signing the document. Only certificates of the given type will be shown. + @param certificateKind + com::sun::star::security::CertificateKind ENUM to choose only from certificates of a certain type. + CertificateKind_NONE lists all types of certificates for choosing. + @since LibreOffice 6.2 */ com::sun::star::security::XCertificate selectSigningCertificateWithType( @@ -168,11 +172,16 @@ interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface [out] string Description); /** This method shows the CertificateChooser dialog with all certificates, private and - other people's. Useful when choosing certificate/key for encryption + other people's. Useful when choosing certificate/key for encryption. - @since LibreOffice 6.0 + @param certificateKind + com::sun::star::security::CertificateKind ENUM to choose only from certificates of a certain type. + CertificateKind_NONE lists all types of certificates for choosing. + + @since LibreOffice 25.2 */ - sequence< com::sun::star::security::XCertificate > chooseEncryptionCertificate( ); + sequence< com::sun::star::security::XCertificate > chooseEncryptionCertificate( + [in] CertificateKind certificateKind); /** This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private certificates and returns usage string in addition to description. |