Skip to content
Snippets Groups Projects
Unverified Commit ce6da76f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

p2p: fix tlsSession deletion

Change-Id: Ic65a866f1d769f57d7e831a7f90bc3ff678732a5
parent 61196f55
No related branches found
No related tags found
No related merge requests found
...@@ -446,11 +446,11 @@ public: ...@@ -446,11 +446,11 @@ public:
void onTlsRxData(std::vector<uint8_t>&&); void onTlsRxData(std::vector<uint8_t>&&);
void onTlsCertificatesUpdate(const gnutls_datum_t*, const gnutls_datum_t*, unsigned int); void onTlsCertificatesUpdate(const gnutls_datum_t*, const gnutls_datum_t*, unsigned int);
std::unique_ptr<tls::TlsSession> tls; OnStateChangeCb onStateChangeCb_;
const dht::crypto::Certificate& peerCertificate; const dht::crypto::Certificate& peerCertificate;
dht::crypto::Certificate null_cert; dht::crypto::Certificate null_cert;
std::function<bool(const dht::crypto::Certificate &)> peerCertificateCheckFunc; std::function<bool(const dht::crypto::Certificate &)> peerCertificateCheckFunc;
OnStateChangeCb onStateChangeCb_; std::unique_ptr<tls::TlsSession> tls;
}; };
// Declaration at namespace scope is necessary (until C++17) // Declaration at namespace scope is necessary (until C++17)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment