/// @brief The type of X509 certificates.
typedef ::X509 TlsCertificate;
+<<<<<<< HEAD
+=======
+/// @brief TlsStreamBase constructor.
+///
+/// @param Callback The type of callbacks.
+/// @param TlsStreamImpl The type of underlying TLS streams.
+/// @param TlsCertificate The type of X509 certificates.
+template <typename Callback, typename TlsStreamImpl, typename TlsCertificate>
+TlsStreamBase<Callback, TlsStreamImpl, TlsCertificate>::
+TlsStreamBase(IOService& service, TlsContextPtr context)
+ : TlsStreamImpl(service.get_io_service(), context->getContext()),
+ role_(context->getRole()) {
+}
+
+>>>>>>> [#1661] Addressed some 1661 comments (port)
/// @brief OpenSSL TLS stream.
///
/// @param callback The callback.
///
/// @param callback Callback object.
virtual void handshake(Callback& callback) {
+<<<<<<< HEAD
using namespace boost::asio::ssl;
if (role_ == SERVER) {
async_handshake(stream_base::server, callback);
} else {
async_handshake(stream_base::client, callback);
}
+=======
+ Base::async_handshake(roleToImpl(Base::getRole()), callback);
+>>>>>>> [#1661] Addressed some 1661 comments (port)
}
/// @brief TLS shutdown.
TlsRole role_;
};
+// Stream truncated error code.
+const int STREAM_TRUNCATED = boost::asio::ssl::error::stream_truncated;
+
} // namespace asiolink
} // namespace isc
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
openssl_sample_client_SOURCES = openssl_sample_client.cc
openssl_sample_client_CPPFLAGS = $(AM_CPPFLAGS)
openssl_sample_client_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
=======
openssl_sample_client_SOURCES = openssl_sample_client.cpp
>>>>>>> [#1661] Renamed samples
+=======
+openssl_sample_client_SOURCES = openssl_sample_client.cc
+>>>>>>> [#1661] Addressed some 1661 comments (port)
openssl_sample_client_CPPFLAGS = $(AM_CPPFLAGS)
openssl_sample_client_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
openssl_sample_client_LDADD = $(CRYPTO_LIBS)
-openssl_sample_server_SOURCES = openssl_sample_server.cpp
+openssl_sample_server_SOURCES = openssl_sample_server.cc
openssl_sample_server_CPPFLAGS = $(AM_CPPFLAGS)
openssl_sample_server_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
openssl_sample_server_LDADD = $(CRYPTO_LIBS)
>>>>>>> [#1661] Moved to cpp03 server example
endif
endif
-
-
-
-