diff options
author | Luca Muscariello <muscariello@ieee.org> | 2020-05-13 21:27:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-05-13 21:27:38 +0000 |
commit | dc5a4297aa5b329dc2536de1f6b4a6e7edc36693 (patch) | |
tree | 150e9a386a36e219285283341e202b6373cdcdb8 /libtransport/src/interfaces | |
parent | 76c0e9a9ac88ffc3df287cfb936d23cccad79a6e (diff) | |
parent | eb9119968cfc53f41526981924e5c8d44612f98a (diff) |
Merge "[HICN-595] Bring TLS up to date"
Diffstat (limited to 'libtransport/src/interfaces')
-rw-r--r-- | libtransport/src/interfaces/p2psecure_socket_consumer.cc | 10 | ||||
-rw-r--r-- | libtransport/src/interfaces/tls_rtc_socket_producer.h | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/libtransport/src/interfaces/p2psecure_socket_consumer.cc b/libtransport/src/interfaces/p2psecure_socket_consumer.cc index 2fa8bb6e3..038441dfc 100644 --- a/libtransport/src/interfaces/p2psecure_socket_consumer.cc +++ b/libtransport/src/interfaces/p2psecure_socket_consumer.cc @@ -21,11 +21,17 @@ namespace transport { namespace interface { P2PSecureConsumerSocket::P2PSecureConsumerSocket(int handshake_protocol, - int protocol) + int transport_protocol) : ConsumerSocket() { socket_ = std::unique_ptr<implementation::ConsumerSocket>( new implementation::P2PSecureConsumerSocket(this, handshake_protocol, - protocol)); + transport_protocol)); +} + +void P2PSecureConsumerSocket::registerPrefix(const Prefix &producer_namespace) { + implementation::P2PSecureConsumerSocket &secure_consumer_socket = + *(static_cast<implementation::P2PSecureConsumerSocket *>(socket_.get())); + secure_consumer_socket.registerPrefix(producer_namespace); } } // namespace interface diff --git a/libtransport/src/interfaces/tls_rtc_socket_producer.h b/libtransport/src/interfaces/tls_rtc_socket_producer.h index 434edb522..3ea84095b 100644 --- a/libtransport/src/interfaces/tls_rtc_socket_producer.h +++ b/libtransport/src/interfaces/tls_rtc_socket_producer.h @@ -28,9 +28,9 @@ namespace interface { class TLSRTCProducerSocket : public ProducerSocket { public: TLSRTCProducerSocket(implementation::TLSRTCProducerSocket *implementation); + ~TLSRTCProducerSocket(); }; } // namespace interface - -} // end namespace transport
\ No newline at end of file +} // end namespace transport |