Changeset 3349 in ntrip
- Timestamp:
- Aug 22, 2011, 12:12:04 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r3346 r3349 20 20 #include "bncsettings.h" 21 21 #include "bncversion.h" 22 #include "bncsslconfig.h" 22 23 23 24 // Constructor … … 119 120 // --------------- 120 121 QNetworkRequest request; 122 request.setSslConfiguration(bncSslConfig::Instance()); 121 123 request.setUrl(_url); 122 124 request.setRawHeader("Host" , _url.host().toAscii()); … … 190 192 // TSL/SSL 191 193 //////////////////////////////////////////////////////////////////////////// 192 void bncNetQueryV2::slotSslErrors(QList<QSslError> /* errors */) { 193 194 // std::cout << "slotSslErrors" << std::endl; 195 // QListIterator<QSslError> it(errors); 196 // while (it.hasNext()) { 197 // const QSslError& err = it.next(); 198 // std::cout << err.errorString().toAscii().data() << std::endl; 199 // } 194 void bncNetQueryV2::slotSslErrors(QList<QSslError> errors) { 195 196 QString msg = "SSL Errors"; 197 QListIterator<QSslError> it(errors); 198 while (it.hasNext()) { 199 const QSslError& err = it.next(); 200 msg += "\n" + err.errorString(); 201 } 202 ((bncApp*)qApp)->slotMessage(msg.toAscii(), true); 200 203 201 204 _reply->ignoreSslErrors(); -
trunk/BNC/bncsslconfig.cpp
r3348 r3349 24 24 QList<QSslCertificate> caCerts = 25 25 QSslCertificate::fromPath("/home/mervart/certs/bkg.crt"); 26 std::cout << "caCerts: " << caCerts.size() << std::endl;27 26 this->setCaCertificates(caCerts); 28 27 }
Note:
See TracChangeset
for help on using the changeset viewer.