Commit 1b68da64 authored by Guillaume Roguez's avatar Guillaume Roguez

TlsTurnEndpoint: add method to know the peer certificate

This certificate is know after a successful connect().

Change-Id: Ie8a351a1c6b97ec65c7d92b8ef4432d412f357eb
Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
parent 1b5dff33
......@@ -210,6 +210,12 @@ TlsTurnEndpoint::write(const ValueType* buf, std::size_t len, std::error_code& e
return pimpl_->tls->write(buf, len, ec);
}
dht::crypto::Certificate&
TlsTurnEndpoint::peerCertificate() const
{
return pimpl_->peerCertificate;
}
//==============================================================================
TcpSocketEndpoint::TcpSocketEndpoint(const IpAddr& addr)
......
......@@ -95,6 +95,8 @@ public:
void connect();
dht::crypto::Certificate& peerCertificate() const;
private:
class Impl;
std::unique_ptr<Impl> pimpl_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment