bundled/include/LibreOfficeKit/LibreOfficeKit.h | 9 ++++++++- bundled/include/LibreOfficeKit/LibreOfficeKit.hxx | 18 ++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-)
New commits: commit 0ff045609e4103e780e9dc68361a8c3982a70d91 Author: Tomaž Vajngerl <[email protected]> AuthorDate: Mon Oct 29 23:32:32 2018 +0100 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Fri Nov 9 09:03:20 2018 +0100 update bundled LOKit headers with document signature functions Change-Id: I30ef122fdba369a73742a4cb11b971deb21b2a01 Reviewed-on: https://gerrit.libreoffice.org/62532 Reviewed-by: Tomaž Vajngerl <[email protected]> Tested-by: Tomaž Vajngerl <[email protected]> diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.h b/bundled/include/LibreOfficeKit/LibreOfficeKit.h index 24aa49621..e052765ac 100644 --- a/bundled/include/LibreOfficeKit/LibreOfficeKit.h +++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.h @@ -326,7 +326,14 @@ struct _LibreOfficeKitDocumentClass /// @see lok::Document::insertCertificate(). bool (*insertCertificate) (LibreOfficeKitDocument* pThis, const unsigned char* pCertificateBinary, - const int pCertificateBinarySize); + const int nCertificateBinarySize, + const unsigned char* pPrivateKeyBinary, + const int nPrivateKeyBinarySize); + + /// @see lok::Document::addCertificate(). + bool (*addCertificate) (LibreOfficeKitDocument* pThis, + const unsigned char* pCertificateBinary, + const int nCertificateBinarySize); /// @see lok::Document::getSignatureState(). int (*getSignatureState) (LibreOfficeKitDocument* pThis); diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx index d6e4bee6f..4057686a9 100644 --- a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -582,9 +582,23 @@ public: * Insert certificate (in binary form) to the certificate store. */ bool insertCertificate(const unsigned char* pCertificateBinary, - const int pCertificateBinarySize) + const int nCertificateBinarySize, + const unsigned char* pPrivateKeyBinary, + const int nPrivateKeyBinarySize) { - return mpDoc->pClass->insertCertificate(mpDoc, pCertificateBinary, pCertificateBinarySize); + return mpDoc->pClass->insertCertificate(mpDoc, + pCertificateBinary, nCertificateBinarySize, + pPrivateKeyBinary, nPrivateKeyBinarySize); + } + + /** + * Add the certificate (in binary form) to the certificate store. + * + */ + bool addCertificate(const unsigned char* pCertificateBinary, + const int pCertificateBinarySize) + { + return mpDoc->pClass->addCertificate(mpDoc, pCertificateBinary, pCertificateBinarySize); } /** _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
