comparison ui/tests/downloadertest.cpp @ 1008:2fb6071c6669

Merged
author Emanuel Schuetze <emanuel@intevation.de>
date Tue, 02 Sep 2014 11:55:15 +0200
parents daa9448b64f5
children fe2c6666b462
comparison
equal deleted inserted replaced
1007:b75bd6686f43 1008:2fb6071c6669
146 146
147 int error = arguments.at(1).toInt(); 147 int error = arguments.at(1).toInt();
148 148
149 QVERIFY(error == SSLConnection::NoConnection); 149 QVERIFY(error == SSLConnection::NoConnection);
150 } 150 }
151 static int accept_ciphers[] = {
152 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
153 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
154 TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384,
155 0
156 };
151 157
152 void DownloaderTest::testForcedCiphers() 158 void DownloaderTest::testForcedCiphers()
153 { 159 {
154 Downloader* downloader = new Downloader(this, 160 Downloader* downloader = new Downloader(this,
155 QString::fromLatin1("https://files.intevation.de:443"), 161 QString::fromLatin1(SERVER_URL),
156 QByteArray(), /* Use default testing certificate */ 162 QByteArray(), /* Use default testing certificate */
157 QDateTime::currentDateTime(), 163 QDateTime::currentDateTime(),
158 QDateTime::fromString("2010", "YYYY"), 164 QDateTime::fromString("2010", "YYYY"),
159 "/users/aheinecke/development/TrustBridge-development.exe", 165 "/users/aheinecke/development/TrustBridge-development.exe",
160 "/users/aheinecke/development/zertifikatsliste.txt"); 166 "/users/aheinecke/development/zertifikatsliste.txt");
161 int accept_ciphers[] = {
162 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
163 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
164 TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384,
165 0
166 };
167 167
168 downloader->setCiphersuites(accept_ciphers); 168 downloader->setCiphersuites(accept_ciphers);
169 169
170 SETUP_SPY 170 SETUP_SPY
171 171

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