comparison ui/sslconnection.cpp @ 1387:c64b6c56ce96 0.9.8

(issue95) Change keys for release build. Fix release build usage.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 15 Jan 2015 16:46:36 +0100
parents 2a1206932f53
children
comparison
equal deleted inserted replaced
1386:90a8eb36e9b0 1387:c64b6c56ce96
24 mNeedsReset(false), 24 mNeedsReset(false),
25 mServerFD(-1), 25 mServerFD(-1),
26 mErrorState(NoError) 26 mErrorState(NoError)
27 { 27 {
28 if (certificate.isEmpty()) { 28 if (certificate.isEmpty()) {
29 #ifdef RELEASE_BUILD 29 QFile certResource(":certs/ssl-certificate");
30 /* TODO (issue95) Change certificate here in case of release build */ 30
31 QFile certResource(":certs/ssl-test");
32 #else
33 QFile certResource(":certs/ssl-test");
34 #endif
35 certResource.open(QFile::ReadOnly); 31 certResource.open(QFile::ReadOnly);
36 mPinnedCert = certResource.readAll(); 32 mPinnedCert = certResource.readAll();
37 certResource.close(); 33 certResource.close();
38 } 34 }
39 } 35 }

http://wald.intevation.org/projects/trustbridge/