Changeset 3349 in ntrip


Ignore:
Timestamp:
Aug 22, 2011, 12:12:04 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryv2.cpp

    r3346 r3349  
    2020#include "bncsettings.h"
    2121#include "bncversion.h"
     22#include "bncsslconfig.h"
    2223
    2324// Constructor
     
    119120  // ---------------
    120121  QNetworkRequest request;
     122  request.setSslConfiguration(bncSslConfig::Instance());
    121123  request.setUrl(_url);
    122124  request.setRawHeader("Host"         , _url.host().toAscii());
     
    190192// TSL/SSL
    191193////////////////////////////////////////////////////////////////////////////
    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    // }
     194void 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);
    200203
    201204  _reply->ignoreSslErrors();
  • trunk/BNC/bncsslconfig.cpp

    r3348 r3349  
    2424  QList<QSslCertificate> caCerts =
    2525    QSslCertificate::fromPath("/home/mervart/certs/bkg.crt");
    26   std::cout << "caCerts: " << caCerts.size() << std::endl;
    2726  this->setCaCertificates(caCerts);
    2827}
Note: See TracChangeset for help on using the changeset viewer.