Mercurial > trustbridge > trustbridge
diff ui/createinstallerdialog.h @ 761:49168bcb02e2
(Issue55) Sign a linux installer
This uses the same RSA key that is used for Windows codesigning
to create an additonal
S:<base64encodedsignature> line.
Signed is everything up to the last \r\n before the S:
line.
The hash algorithm is sha256
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 07 Jul 2014 18:52:48 +0200 |
parents | 6c4fff146999 |
children | ae571e7ecdc9 |
line wrap: on
line diff
--- a/ui/createinstallerdialog.h Mon Jul 07 18:50:06 2014 +0200 +++ b/ui/createinstallerdialog.h Mon Jul 07 18:52:48 2014 +0200 @@ -91,6 +91,19 @@ */ bool signFile(QString filePath); + /**@brief Append a base64 encoded sha256 RSA signature to a file. + * + * The format of the added signature line will be: + * S:<signature>\r\n + * For the signature the key in mCertFile is used. + * + * @param[in] input The absolute path of the file to sign + * @param[out] output The absolute path of the file to write + * + * @returns true on success, false on failure + */ + bool appendTextSignatureToFile(const QString& input, const QString& output); + /* Slots for the creator process */ void processError(QProcess::ProcessError error); void processFinished(int exitCode, QProcess::ExitStatus exitStatus);