Mercurial > trustbridge
changeset 939:574cd1fae1dc
Only do selftest on Windows
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 22 Aug 2014 19:55:08 +0200 |
parents | 15f7b3ebf21b |
children | 7c89c5dc2200 |
files | ui/main.cpp |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/main.cpp Fri Aug 22 19:16:31 2014 +0200 +++ b/ui/main.cpp Fri Aug 22 19:55:08 2014 +0200 @@ -54,13 +54,21 @@ int main(int argc, char **argv) { - /* First verify integrity even before calling QApplication*/ +#ifdef WIN32 + /* First verify integrity even before calling QApplication. + * We only do this on Windows as we have a PKCS#7 embedded + * signature there which we check with OS methods. + * + * On GNU/Linux platforms you should use an IDS system to + * monitor executable corruptions. + */ if (!selftest()) { syslog_error_printf ("Integrity check failed."); #ifdef RELEASE_BUILD return -1; #endif } +#endif QApplication app (argc, argv);