Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
760:438d7c88104f | 761:49168bcb02e2 |
---|---|
89 * @param[in] filePath the absolute path to the file. | 89 * @param[in] filePath the absolute path to the file. |
90 * @returns true on success, false on error | 90 * @returns true on success, false on error |
91 */ | 91 */ |
92 bool signFile(QString filePath); | 92 bool signFile(QString filePath); |
93 | 93 |
94 /**@brief Append a base64 encoded sha256 RSA signature to a file. | |
95 * | |
96 * The format of the added signature line will be: | |
97 * S:<signature>\r\n | |
98 * For the signature the key in mCertFile is used. | |
99 * | |
100 * @param[in] input The absolute path of the file to sign | |
101 * @param[out] output The absolute path of the file to write | |
102 * | |
103 * @returns true on success, false on failure | |
104 */ | |
105 bool appendTextSignatureToFile(const QString& input, const QString& output); | |
106 | |
94 /* Slots for the creator process */ | 107 /* Slots for the creator process */ |
95 void processError(QProcess::ProcessError error); | 108 void processError(QProcess::ProcessError error); |
96 void processFinished(int exitCode, QProcess::ExitStatus exitStatus); | 109 void processFinished(int exitCode, QProcess::ExitStatus exitStatus); |
97 }; | 110 }; |
98 | 111 |