diff options
author | Patrick Luby <guibmacdev@gmail.com> | 2024-03-24 12:46:45 -0400 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-03-26 10:01:31 +0100 |
commit | 6a049e417b029f3733fcee05f99a3e8875aefdb8 (patch) | |
tree | 80d98c7940446aa6e3a42aae8ab141e50788ff5a /offapi | |
parent | a3eefc0fbe7d9a9ed946979c97a41181cd043593 (diff) |
tdf#160184 ask user if they want to trust an untrusted certificate
gpgme contexts uses the "auto" trust model by default which only
allows encrypting with keys that have their trust level set to
"Ultimate". The gpg command, however, gives the user the option
to encrypt with a certificate that has a lower trust level so
emulate that bahavior by asking the user if they want to trust
the certificate for just this operation only.
Also, abort saving if no certificates are selected which is an
indication that the user cancelled the Select Certificate dialog.
Change-Id: I20951b1e31b2dcf8adb82243742f8c00fbaca8c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165260
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/security/XDocumentDigitalSignatures.idl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl index a90304313582..a32f77970996 100644 --- a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl +++ b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl @@ -212,6 +212,12 @@ interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface boolean signPackageWithCertificate([in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xStream); + + /** queries the user if the want to trust an untrusted certificate. + + @since LibreOffice 24.2.3 + */ + boolean trustUntrustedCertificate([in] ::com::sun::star::security::XCertificate xCertificate); }; } ; } ; } ; } ; |