comparison ui/sslconnection.h @ 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 879a634d0a40
children 78798d3af8f0
comparison
equal deleted inserted replaced
989:1cd1bfe82fc2 990:2949f1842955
38 * 38 *
39 * @param[in] url the Url to connect to 39 * @param[in] url the Url to connect to
40 * @param[in] certificate optional certificate to validate https connection 40 * @param[in] certificate optional certificate to validate https connection
41 */ 41 */
42 SSLConnection(const QString& url, 42 SSLConnection(const QString& url,
43 const QByteArray& certificate = QByteArray()) : 43 const QByteArray& certificate = QByteArray());
44 mUrl(url),
45 mPinnedCert(certificate),
46 mInitialized(false),
47 mConnected(false),
48 mNeedsReset(false),
49 mServerFD(-1),
50 mErrorState(NoError) {};
51 44
52 virtual ~SSLConnection() {}; 45 virtual ~SSLConnection() {};
53 46
54 bool initialized() { return mInitialized; } 47 bool initialized() { return mInitialized; }
55 bool connected() { return mConnected; } 48 bool connected() { return mConnected; }
89 82
90 /** @brief Set a proxy server to use. 83 /** @brief Set a proxy server to use.
91 * 84 *
92 * @param [in] proxyUrl theo URL of the proxy to use. 85 * @param [in] proxyUrl theo URL of the proxy to use.
93 */ 86 */
94 virtual void setProxy(const QUrl &proxyUrl) { 87 virtual void setProxy(const QUrl &proxyUrl);
95 qWarning() << "Set proxy not supported"; 88
96 } 89 /** @brief Set acceptable ciphersuites.
90 *
91 * @param [in] cipers a zero terminated list of ciphers as defined in
92 * polarssl/ssl_ciphersuites.h
93 */
94 virtual void setCiphersuites(int ciphers[]) = 0;
97 95
98 protected: 96 protected:
99 QUrl mUrl; 97 QUrl mUrl;
100 QByteArray mPinnedCert; 98 QByteArray mPinnedCert;
101 bool mInitialized; 99 bool mInitialized;

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