diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-10-24 10:56:15 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-11-08 15:18:52 +0100 |
commit | 7cfec914bb86c300e901f0fd0877af95a8d082c7 (patch) | |
tree | 04f61381153b22f2291e23465dc7a4753152e984 /offapi | |
parent | 81400dcc0a062227021485dd994561dcfb454f9b (diff) |
lok: new function to add certificate to certificate DB
Also needed to extend XCertificateCreator with a new method
"addDERCertificateToTheDatabase".
Reviewed-on: https://gerrit.libreoffice.org/62273
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 08c3c504644ee978c2ec75ba083765b6ffddf08c)
Conflicts:
desktop/qa/desktop_lib/test_desktop_lib.cxx
xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
Change-Id: I7b4df65365893bd5a0628aeec30b3156584849fe
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/xml/crypto/XCertificateCreator.idl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/offapi/com/sun/star/xml/crypto/XCertificateCreator.idl b/offapi/com/sun/star/xml/crypto/XCertificateCreator.idl index 6d920b37715c..3137aa00474b 100644 --- a/offapi/com/sun/star/xml/crypto/XCertificateCreator.idl +++ b/offapi/com/sun/star/xml/crypto/XCertificateCreator.idl @@ -27,13 +27,20 @@ module com { module sun { module star { module xml { module crypto { /** - * Interface for creating certificates + * Interface for creating and adding certificates * * @since LibreOffice 6.2 */ interface XCertificateCreator : com::sun::star::uno::XInterface { /** + * Adds a certificate to the certificate database with the trust provided by the trust string. + */ + com::sun::star::security::XCertificate addDERCertificateToTheDatabase( + [in] sequence<byte> aDerCertificate, + [in] string aTrustString); + + /** * Create certificate from raw DER encoded certificate and associate the private key with the certificate */ com::sun::star::security::XCertificate createDERCertificateWithPrivateKey( |