diff ui/sslconnection_bare.cpp @ 990:2949f1842955

(issue90) Add possibility to force cipher suites in bare connection and test for this
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 01 Sep 2014 12:04:11 +0200
parents 9bcd8ed36f4b
children 2efdf2faf4e5
line wrap: on
line diff
--- a/ui/sslconnection_bare.cpp	Fri Aug 29 19:18:31 2014 +0200
+++ b/ui/sslconnection_bare.cpp	Mon Sep 01 12:04:11 2014 +0200
@@ -35,13 +35,6 @@
     memset(&mSSL, 0, sizeof(ssl_context));
     memset(&mSavedSession, 0, sizeof( ssl_session ) );
 
-    if (certificate.isEmpty()) {
-        QFile certResource(":certs/intevation.de");
-        certResource.open(QFile::ReadOnly);
-        mPinnedCert = certResource.readAll();
-        certResource.close();
-    }
-
     ret = init();
     if (ret == 0) {
         mInitialized = true;
@@ -475,3 +468,8 @@
     return outputFile.commit();
 }
 
+void SSLConnectionBare::setCiphersuites(int ciphers[]) {
+    if (mInitialized) {
+        ssl_set_ciphersuites(&mSSL, ciphers);
+    }
+}

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