Changeset 3348 in ntrip


Ignore:
Timestamp:
Aug 22, 2011, 11:56:38 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsslconfig.cpp

    r3347 r3348  
    55 * Class:      bncSslConfig
    66 *
    7  * Purpose:   
     7 * Purpose:    Singleton Class that inherits QSslConfiguration class
    88 *
    99 * Author:     L. Mervart
     
    2525    QSslCertificate::fromPath("/home/mervart/certs/bkg.crt");
    2626  std::cout << "caCerts: " << caCerts.size() << std::endl;
     27  this->setCaCertificates(caCerts);
    2728}
    2829
  • trunk/BNC/bncsslconfig.h

    r3347 r3348  
    44#include <QtNetwork>
    55
     6// Singleton Class
     7// ---------------
    68class bncSslConfig : public QSslConfiguration {
    79 public:
     10  static bncSslConfig& Instance() {
     11    static bncSslConfig _sslConfig;
     12    return _sslConfig;
     13  }
     14 private:
    815  bncSslConfig();
    9   virtual ~bncSslConfig();
    10  private:
     16  ~bncSslConfig();
    1117};
    1218
Note: See TracChangeset for help on using the changeset viewer.