2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 04:57:52 +00:00

[#1661] Addressed some 1661 comments (port)

This commit is contained in:
Francis Dupont 2021-03-08 18:22:22 +01:00
parent 44b8920340
commit 0b51ae98d7
34 changed files with 656 additions and 365 deletions

View File

@ -604,3 +604,8 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
The ext/coroutine code is externally maintained and distributed under The ext/coroutine code is externally maintained and distributed under
the Boost Software License, Version 1.0. (See its accompanying file the Boost Software License, Version 1.0. (See its accompanying file
LICENSE_1_0.txt.) LICENSE_1_0.txt.)
Sample TLS clients and servers are used for tests and are included in
src/lib/asiolink/testutils. The files are distributed under Boost
Software license 1.0 and are used for testing only. They're not part
of Kea installation.

View File

@ -18,7 +18,7 @@ libkea_asiolink_la_SOURCES = asiolink.h
libkea_asiolink_la_SOURCES += asio_wrapper.h libkea_asiolink_la_SOURCES += asio_wrapper.h
libkea_asiolink_la_SOURCES += addr_utilities.cc addr_utilities.h libkea_asiolink_la_SOURCES += addr_utilities.cc addr_utilities.h
libkea_asiolink_la_SOURCES += botan_tls.h libkea_asiolink_la_SOURCES += botan_tls.h
libkea_asiolink_la_SOURCES += common_tls.h libkea_asiolink_la_SOURCES += common_tls.cc common_tls.h
libkea_asiolink_la_SOURCES += crypto_tls.h libkea_asiolink_la_SOURCES += crypto_tls.h
libkea_asiolink_la_SOURCES += dummy_io_cb.h libkea_asiolink_la_SOURCES += dummy_io_cb.h
libkea_asiolink_la_SOURCES += interval_timer.cc interval_timer.h libkea_asiolink_la_SOURCES += interval_timer.cc interval_timer.h
@ -44,7 +44,7 @@ libkea_asiolink_la_SOURCES += unix_domain_socket_acceptor.h
libkea_asiolink_la_SOURCES += unix_domain_socket_endpoint.h libkea_asiolink_la_SOURCES += unix_domain_socket_endpoint.h
if HAVE_BOTAN if HAVE_BOTAN
#libkea_asiolink_la_SOURCES += botan_tls.cc libkea_asiolink_la_SOURCES += botan_tls.cc
endif endif
if HAVE_OPENSSL if HAVE_OPENSSL
libkea_asiolink_la_SOURCES += openssl_tls.cc libkea_asiolink_la_SOURCES += openssl_tls.cc
@ -88,11 +88,3 @@ libkea_asiolink_include_HEADERS = \
unix_domain_socket.h \ unix_domain_socket.h \
unix_domain_socket_acceptor.h \ unix_domain_socket_acceptor.h \
unix_domain_socket_endpoint.h unix_domain_socket_endpoint.h
if HAVE_BOTAN
libkea_asiolink_include_HEADERS += botan_tls.h
endif
if HAVE_OPENSSL
libkea_asiolink_include_HEADERS += openssl_tls.h
endif

View File

@ -0,0 +1,56 @@
// Copyright (C) 2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// @file botan_tls.cc Botan fake implementation of the TLS API.
#include <config.h>
#ifdef WITH_BOTAN
#include <asiolink/asio_wrapper.h>
#include <asiolink/crypto_tls.h>
namespace isc {
namespace asiolink {
TlsContext::TlsContext(TlsRole role)
: TlsContextBase(role), cert_required_(true) {
}
void
TlsContext::setCertRequired(bool cert_required) {
cert_required_ = cert_required;
}
bool
TlsContext::getCertRequired() const {
return (cert_required_);
}
void
TlsContext::loadCaFile(const std::string&) {
isc_throw(NotImplemented, "Botan TLS is not yet supported");
}
void
TlsContext::loadCaPath(const std::string&) {
isc_throw(NotImplemented, "loadCaPath is not implemented by Botan");
}
void
TlsContext::loadCertFile(const std::string&) {
isc_throw(NotImplemented, "Botan TLS is not yet supported");
}
void
TlsContext::loadKeyFile(const std::string&) {
isc_throw(NotImplemented, "Botan TLS is not yet supported");
}
} // namespace asiolink
} // namespace isc
#endif // WITH_BOTAN

View File

@ -9,6 +9,8 @@
#ifndef BOTAN_TLS_H #ifndef BOTAN_TLS_H
#define BOTAN_TLS_H #define BOTAN_TLS_H
/// @file botan_tls.h Botan fake implementation of the TLS API.
#ifdef WITH_BOTAN #ifdef WITH_BOTAN
#include <asiolink/asio_wrapper.h> #include <asiolink/asio_wrapper.h>
@ -16,9 +18,158 @@
#include <asiolink/io_service.h> #include <asiolink/io_service.h>
#include <asiolink/common_tls.h> #include <asiolink/common_tls.h>
#include <exceptions/exceptions.h>
namespace isc { namespace isc {
namespace asiolink { namespace asiolink {
/// @brief Botan TLS context.
class TlsContext : public TlsContextBase {
public:
/// @brief Destructor.
virtual ~TlsContext() { }
/// @brief Create a fresh context.
///
/// @param role The TLS role client or server.
explicit TlsContext(TlsRole role);
/// @brief Set the peer certificate requirement mode.
///
/// @param cert_required True if peer certificates are required,
/// false if they are optional.
virtual void setCertRequired(bool cert_required);
/// @brief Get the peer certificate requirement mode.
///
/// @return True if peer certificates are required, false if they
/// are optional.
virtual bool getCertRequired() const;
/// @brief Load the trust anchor aka certificate authority.
///
/// @param ca_file The certificate file name.
/// @throw isc::cryptolink::LibraryError on various errors as
/// file not found, bad format, etc.
virtual void loadCaFile(const std::string& ca_file);
/// @brief Load the trust anchor aka certificate authority.
///
/// @param ca_path The certificate directory name.
/// @throw isc::cryptolink::LibraryError on various errors as
/// file not found, bad format, etc.
virtual void loadCaPath(const std::string& ca_path);
/// @brief Load the certificate file.
///
/// @param cert_file The certificate file name.
/// @throw isc::cryptolink::LibraryError on various errors as
/// file not found, bad format, etc.
virtual void loadCertFile(const std::string& cert_file);
/// @brief Load the private key from a file.
///
/// @param key_file The private key file name.
/// @throw isc::cryptolink::LibraryError on various errors as
/// file not found, bad format, etc.
virtual void loadKeyFile(const std::string& key_file);
protected:
/// @brief Cached cert_required value.
bool cert_required_;
};
/// @brief The type of Botan TLS streams (in fact pure TCP streams).
typedef boost::asio::ip::tcp::socket TlsStreamImpl;
/// @brief Dummy type of X509 certificates.
struct TlsCertificate { };
/// @brief TlsStreamBase constructor.
///
/// @tparam Callback The type of callbacks.
/// @tparam TlsStreamImpl The type of underlying TLS streams.
/// @tparam TlsCertificate The type of X509 certificates.
/// @param service I/O Service object used to manage the stream.
/// @param context Pointer to the TLS context.
/// @note The caller must not provide a null pointer to the TLS context.
template <typename Callback, typename TlsStreamImpl, typename TlsCertificate>
TlsStreamBase<Callback, TlsStreamImpl, TlsCertificate>::
TlsStreamBase(IOService& service, TlsContextPtr context)
: TlsStreamImpl(service.get_io_service()), role_(context->getRole()) {
}
/// @brief Botan fake TLS stream.
///
/// @tparam callback The callback.
template <typename Callback>
class TlsStream : public TlsStreamBase<Callback, TlsStreamImpl, TlsCertificate> {
public:
/// @brief Type of the base.
typedef TlsStreamBase<Callback, TlsStreamImpl, TlsCertificate> Base;
/// @brief Constructor.
///
/// @param service I/O Service object used to manage the stream.
/// @param context Pointer to the TLS context.
/// @note The caller must not provide a null pointer to the TLS context.
TlsStream(IOService& service, TlsContextPtr context)
: Base(service, context) {
}
/// @brief Destructor.
virtual ~TlsStream() { }
/// @brief TLS Handshake.
///
/// @param callback Callback object.
virtual void handshake(Callback& callback) {
isc_throw(NotImplemented, "Botan TLS is not yet supported");
}
/// @brief TLS shutdown.
///
/// @param callback Callback object.
virtual void shutdown(Callback& callback) {
isc_throw(NotImplemented, "Botan TLS is not yet supported");
}
/// @brief Clear the TLS state.
virtual void clear() {
isc_throw(NotImplemented, "Botan TLS is not yet supported");
}
/// @brief Return the peer certificate.
///
/// @note The native_handle() method is used so it can't be made const.
/// @note Do not forget to free it when no longer used.
virtual TlsCertificate* getPeerCert() {
return (0);
}
/// @brief Return the commonName part of the subjectName of
/// the peer certificate.
///
/// First commonName when there are more than one, in UTF-8.
///
/// @return The commonName part of the subjectName or the empty string.
std::string getSubject() {
return ("");
}
/// @brief Return the commonName part of the issuerName of
/// the peer certificate.
///
/// First commonName when there are more than one, in UTF-8.
///
/// @return The commonName part of the issuerName or the empty string.
std::string getIssuer() {
return ("");
}
};
} // namespace asiolink } // namespace asiolink
} // namespace isc } // namespace isc

View File

@ -0,0 +1,59 @@
// Copyright (C) 2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// @file common_tls.cc Common part of implementations of the TLS API.
#include <config.h>
#include <asiolink/asio_wrapper.h>
#include <asiolink/crypto_tls.h>
#include <sys/stat.h>
using namespace isc::cryptolink;
namespace { // anonymous namespace
// C++17 has this function but Kea is still C++11 so provide it.
bool
isDir(const std::string& name) {
struct stat stats;
if (::stat(name.c_str(), &stats) < 0) {
return (false);
}
return ((stats.st_mode & S_IFMT) == S_IFDIR);
}
} // end of namespace
namespace isc {
namespace asiolink {
void
TlsContextBase::configure(TlsContextPtr& context,
TlsRole role,
const std::string& ca_file,
const std::string& cert_file,
const std::string& key_file,
bool cert_required) {
try {
context.reset(new TlsContext(role));
if (isDir(ca_file)) {
context->loadCaPath(ca_file);
} else {
context->loadCaFile(ca_file);
}
context->loadCertFile(cert_file);
context->loadKeyFile(key_file);
context->setCertRequired(cert_required);
} catch (...) {
context.reset();
throw;
}
}
} // namespace asiolink
} // namespace isc

View File

@ -30,6 +30,14 @@ namespace asiolink {
/// @brief Client and server roles. /// @brief Client and server roles.
enum TlsRole { CLIENT, SERVER }; enum TlsRole { CLIENT, SERVER };
/// @brief Forward declaration of backend TLS context.
class TlsContext;
/// @brief The type of shared pointers to TlsContext objects.
///
/// @note Not clear we need shared pointers but they cover more use cases...
typedef boost::shared_ptr<TlsContext> TlsContextPtr;
/// @brief TLS context base class. /// @brief TLS context base class.
class TlsContextBase : private boost::noncopyable { class TlsContextBase : private boost::noncopyable {
public: public:
@ -48,6 +56,22 @@ public:
/// @note No need for a role set method. /// @note No need for a role set method.
/// @brief Configure.
///
/// @param context The TLS context to configure.
/// @param role The TLS role client or server.
/// @param ca_file The certificate file or directory name.
/// @param cert_file The certificate file name.
/// @param key_file The private key file name.
/// @param cert_required True if peer certificates are required,
/// false if they are optional.
static void configure(TlsContextPtr& context,
TlsRole role,
const std::string& ca_file,
const std::string& cert_file,
const std::string& key_file,
bool cert_required);
/// @brief Set the peer certificate requirement mode. /// @brief Set the peer certificate requirement mode.
/// ///
/// @param cert_required True if peer certificates are required, /// @param cert_required True if peer certificates are required,
@ -81,7 +105,7 @@ public:
/// file not found, bad format, etc. /// file not found, bad format, etc.
virtual void loadCertFile(const std::string& cert_file) = 0; virtual void loadCertFile(const std::string& cert_file) = 0;
/// @brief Load the private key file name. /// @brief Load the private key from a file.
/// ///
/// @param key_file The private key file name. /// @param key_file The private key file name.
/// @throw isc::cryptolink::LibraryError on various errors as /// @throw isc::cryptolink::LibraryError on various errors as
@ -93,14 +117,6 @@ public:
TlsRole role_; TlsRole role_;
}; };
/// @brief Forward declaration of OpenSSL TLS context.
class TlsContext;
/// @brief The type of shared pointers to TlsContext objects.
///
/// @note Not clear we need shared pointers but they covers more use cases...
typedef boost::shared_ptr<TlsContext> TlsContextPtr;
/// @brief TLS stream base class. /// @brief TLS stream base class.
/// ///
/// @tparam Callback The type of callbacks. /// @tparam Callback The type of callbacks.
@ -136,6 +152,8 @@ public:
virtual void shutdown(Callback& callback) = 0; virtual void shutdown(Callback& callback) = 0;
/// @brief Clear the TLS state. /// @brief Clear the TLS state.
///
/// @note For some unit tests only.
virtual void clear() = 0; virtual void clear() = 0;
/// @brief Return the peer certificate. /// @brief Return the peer certificate.

View File

@ -4,6 +4,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// @file openssl_tls.cc OpenSSL implementation of the TLS API.
#include <config.h> #include <config.h>
#ifdef WITH_OPENSSL #ifdef WITH_OPENSSL
@ -95,43 +97,6 @@ TlsContext::loadKeyFile(const std::string& key_file) {
} }
} }
namespace { // anonymous namespace
// C++17 has this function but Kea is still C++11 so provide it.
bool
isDir(const std::string& name) {
struct stat stats;
if (::stat(name.c_str(), &stats) < 0) {
return (false);
}
return ((stats.st_mode & S_IFMT) == S_IFDIR);
}
} // end of namespace
void
TlsContext::configure(TlsContextPtr& context,
TlsRole role,
const std::string& ca_file,
const std::string& cert_file,
const std::string& key_file,
bool cert_required) {
try {
context.reset(new TlsContext(role));
if (isDir(ca_file)) {
context->loadCaPath(ca_file);
} else {
context->loadCaFile(ca_file);
}
context->loadCertFile(cert_file);
context->loadKeyFile(key_file);
context->setCertRequired(cert_required);
} catch (...) {
context.reset();
throw;
}
}
} // namespace asiolink } // namespace asiolink
} // namespace isc } // namespace isc

View File

@ -23,6 +23,15 @@
namespace isc { namespace isc {
namespace asiolink { namespace asiolink {
/// @brief Translate TLS role into implementation.
inline boost::asio::ssl::stream_base::handshake_type roleToImpl(TlsRole role) {
if (role == TlsRole::SERVER) {
return (boost::asio::ssl::stream_base::server);
} else {
return (boost::asio::ssl::stream_base::client);
}
}
/// @brief OpenSSL TLS context. /// @brief OpenSSL TLS context.
class TlsContext : public TlsContextBase { class TlsContext : public TlsContextBase {
public: public:
@ -71,27 +80,11 @@ public:
/// @param cert_file The certificate file name. /// @param cert_file The certificate file name.
virtual void loadCertFile(const std::string& cert_file); virtual void loadCertFile(const std::string& cert_file);
/// @brief Load the private key file name. /// @brief Load the private key from a file.
/// ///
/// @param key_file The private key file name. /// @param key_file The private key file name.
virtual void loadKeyFile(const std::string& key_file); virtual void loadKeyFile(const std::string& key_file);
/// @brief Configure.
///
/// @param context The TLS context to configure.
/// @param role The TLS role client or server.
/// @param ca_file The certificate file or directory name.
/// @param cert_file The certificate file name.
/// @param key_file The private key file name.
/// @param cert_required True if peer certificates are required,
/// false if they are optional.
static void configure(TlsContextPtr& context,
TlsRole role,
const std::string& ca_file,
const std::string& cert_file,
const std::string& key_file,
bool cert_required);
protected: protected:
/// @brief Cached cert_required value. /// @brief Cached cert_required value.
bool cert_required_; bool cert_required_;
@ -107,11 +100,13 @@ typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> TlsStreamImpl;
typedef ::X509 TlsCertificate; typedef ::X509 TlsCertificate;
/// @brief TlsStreamBase constructor. /// @brief TlsStreamBase constructor.
/// @brief TLS stream base class.
/// ///
/// @tparam Callback The type of callbacks. /// @tparam Callback The type of callbacks.
/// @tparam TlsStreamImpl The type of underlying TLS streams. /// @tparam TlsStreamImpl The type of underlying TLS streams.
/// @tparam TlsCertificate The type of X509 certificates. /// @tparam TlsCertificate The type of X509 certificates.
/// @param service I/O Service object used to manage the stream.
/// @param context Pointer to the TLS context.
/// @note The caller must not provide a null pointer to the TLS context.
template <typename Callback, typename TlsStreamImpl, typename TlsCertificate> template <typename Callback, typename TlsStreamImpl, typename TlsCertificate>
TlsStreamBase<Callback, TlsStreamImpl, TlsCertificate>:: TlsStreamBase<Callback, TlsStreamImpl, TlsCertificate>::
TlsStreamBase(IOService& service, TlsContextPtr context) TlsStreamBase(IOService& service, TlsContextPtr context)
@ -145,12 +140,7 @@ public:
/// ///
/// @param callback Callback object. /// @param callback Callback object.
virtual void handshake(Callback& callback) { virtual void handshake(Callback& callback) {
using namespace boost::asio::ssl; Base::async_handshake(roleToImpl(Base::getRole()), callback);
if (Base::getRole() == SERVER) {
Base::async_handshake(stream_base::server, callback);
} else {
Base::async_handshake(stream_base::client, callback);
}
} }
/// @brief TLS shutdown. /// @brief TLS shutdown.
@ -234,6 +224,9 @@ public:
} }
}; };
// Stream truncated error code.
const int STREAM_TRUNCATED = boost::asio::ssl::error::stream_truncated;
} // namespace asiolink } // namespace asiolink
} // namespace isc } // namespace isc

View File

@ -232,7 +232,7 @@ private:
// Socket // Socket
boost::asio::ip::tcp::socket& socket_; boost::asio::ip::tcp::socket& socket_;
// TODO: Remove temporary buffer // @todo Remove temporary buffer
// The current implementation copies the buffer passed to asyncSend() into // The current implementation copies the buffer passed to asyncSend() into
// a temporary buffer and precedes it with a two-byte count field. As // a temporary buffer and precedes it with a two-byte count field. As
// ASIO should really be just about sending and receiving data, the TCP // ASIO should really be just about sending and receiving data, the TCP
@ -284,8 +284,8 @@ TCPSocket<C>::open(const IOEndpoint* endpoint, C& callback) {
close(); close();
} }
// Ignore opens on already-open socket. Don't throw a failure because // Ignore opens on already-open socket. Don't throw a failure because
// of uncertainties as to what precedes whan when using asynchronous I/O. // of uncertainties as to what precedes when using asynchronous I/O.
// At also allows us a treat a passed-in socket as a self-managed socket. // Also allows us a treat a passed-in socket as a self-managed socket.
if (!socket_.is_open()) { if (!socket_.is_open()) {
if (endpoint->getFamily() == AF_INET) { if (endpoint->getFamily() == AF_INET) {
socket_.open(boost::asio::ip::tcp::v4()); socket_.open(boost::asio::ip::tcp::v4());
@ -350,7 +350,7 @@ TCPSocket<C>::asyncSend(const void* data, size_t length,
// Need to copy the data into a temporary buffer and precede it with // Need to copy the data into a temporary buffer and precede it with
// a two-byte count field. // a two-byte count field.
// TODO: arrange for the buffer passed to be preceded by the count // @todo arrange for the buffer passed to be preceded by the count
try { try {
// Ensure it fits into 16 bits // Ensure it fits into 16 bits
uint16_t count = boost::numeric_cast<uint16_t>(length); uint16_t count = boost::numeric_cast<uint16_t>(length);

View File

@ -39,9 +39,11 @@ run_unittests_SOURCES += dummy_io_callback_unittest.cc
run_unittests_SOURCES += tcp_acceptor_unittest.cc run_unittests_SOURCES += tcp_acceptor_unittest.cc
run_unittests_SOURCES += unix_domain_socket_unittest.cc run_unittests_SOURCES += unix_domain_socket_unittest.cc
run_unittests_SOURCES += process_spawn_unittest.cc run_unittests_SOURCES += process_spawn_unittest.cc
if HAVE_OPENSSL
run_unittests_SOURCES += tls_unittest.cc run_unittests_SOURCES += tls_unittest.cc
run_unittests_SOURCES += tls_acceptor_unittest.cc run_unittests_SOURCES += tls_acceptor_unittest.cc
run_unittests_SOURCES += tls_socket_unittest.cc run_unittests_SOURCES += tls_socket_unittest.cc
endif
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)

View File

@ -4,7 +4,7 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// \brief Test of TCPSocket /// @brief Test of TCPSocket
/// ///
/// Tests the functionality of a TCPSocket by working through an open-send- /// Tests the functionality of a TCPSocket by working through an open-send-
/// receive-close sequence and checking that the asynchronous notifications /// receive-close sequence and checking that the asynchronous notifications
@ -43,7 +43,7 @@ namespace {
const char SERVER_ADDRESS[] = "127.0.0.1"; const char SERVER_ADDRESS[] = "127.0.0.1";
const unsigned short SERVER_PORT = 5303; const unsigned short SERVER_PORT = 5303;
// TODO: Shouldn't we send something that is real message? /// @todo Shouldn't we send something that is real message?
const char OUTBOUND_DATA[] = "Data sent from client to server"; const char OUTBOUND_DATA[] = "Data sent from client to server";
const char INBOUND_DATA[] = "Returned data from server to client"; const char INBOUND_DATA[] = "Returned data from server to client";
} }
@ -300,7 +300,7 @@ TEST(TCPSocket, processReceivedData) {
EXPECT_TRUE(equal(inbuff + 2, inbuff + cumulative, dataptr)); EXPECT_TRUE(equal(inbuff + 2, inbuff + cumulative, dataptr));
} }
// TODO: Need to add a test to check the cancel() method /// @todo Need to add a test to check the cancel() method
// Tests the operation of a TCPSocket by opening it, sending an asynchronous // Tests the operation of a TCPSocket by opening it, sending an asynchronous
// message to a server, receiving an asynchronous message from the server and // message to a server, receiving an asynchronous message from the server and

View File

@ -4,7 +4,7 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// \brief Test of TCPSocket /// @brief Test of TLSSocket
/// ///
/// Tests the functionality of a TCPSocket by working through an open-send- /// Tests the functionality of a TCPSocket by working through an open-send-
/// receive-close sequence and checking that the asynchronous notifications /// receive-close sequence and checking that the asynchronous notifications
@ -44,7 +44,7 @@ namespace {
const char SERVER_ADDRESS[] = "127.0.0.1"; const char SERVER_ADDRESS[] = "127.0.0.1";
const unsigned short SERVER_PORT = 5303; const unsigned short SERVER_PORT = 5303;
// TODO: Shouldn't we send something that is real message? /// @todo Shouldn't we send something that is real message?
const char OUTBOUND_DATA[] = "Data sent from client to server"; const char OUTBOUND_DATA[] = "Data sent from client to server";
const char INBOUND_DATA[] = "Returned data from server to client"; const char INBOUND_DATA[] = "Returned data from server to client";
} }
@ -310,7 +310,7 @@ TEST(TLSSocket, processReceivedData) {
EXPECT_TRUE(equal(inbuff + 2, inbuff + cumulative, dataptr)); EXPECT_TRUE(equal(inbuff + 2, inbuff + cumulative, dataptr));
} }
// TODO: Need to add a test to check the cancel() method /// @todo Need to add a test to check the cancel() method
// Tests the operation of a TLSSocket by opening it, sending an asynchronous // Tests the operation of a TLSSocket by opening it, sending an asynchronous
// message to a server, receiving an asynchronous message from the server and // message to a server, receiving an asynchronous message from the server and
@ -394,7 +394,7 @@ TEST(TLSSocket, sequenceTest) {
server_cb.queued() = TLSCallback::HANDSHAKE; server_cb.queued() = TLSCallback::HANDSHAKE;
server_cb.called() = TLSCallback::NONE; server_cb.called() = TLSCallback::NONE;
server_cb.setCode(42); // Some error server_cb.setCode(42); // Some error
server.async_handshake(ssl::stream_base::server, server_cb); server.async_handshake(roleToImpl(TlsRole::SERVER), server_cb);
while ((server_cb.called() == TLSCallback::NONE) || while ((server_cb.called() == TLSCallback::NONE) ||
(client_cb.called() == TLSCallback::NONE)) { (client_cb.called() == TLSCallback::NONE)) {

View File

@ -8,13 +8,13 @@ AM_CPPFLAGS += -DTEST_CA_DIR=\"$(TEST_CA_DIR)\"
AM_CXXFLAGS = $(KEA_CXXFLAGS) AM_CXXFLAGS = $(KEA_CXXFLAGS)
EXTRA_DIST = EXTRA_DIST =
EXTRA_DIST += ca/00af7a28.0
EXTRA_DIST += ca/0c7eedb9.0 EXTRA_DIST += ca/0c7eedb9.0
EXTRA_DIST += ca/26d052a5.0 EXTRA_DIST += ca/28f5a777.0
EXTRA_DIST += ca/3071e5ff.0 EXTRA_DIST += ca/2eefa08b.0
EXTRA_DIST += ca/a465d731.0 EXTRA_DIST += ca/7a5b785e.0
EXTRA_DIST += ca/ad950210.0 EXTRA_DIST += ca/ad950210.0
EXTRA_DIST += ca/d3d11a5f.0 EXTRA_DIST += ca/doc.txt
EXTRA_DIST += ca/doc
EXTRA_DIST += ca/ext-addr-conf.cnf EXTRA_DIST += ca/ext-addr-conf.cnf
EXTRA_DIST += ca/ext-conf.cnf EXTRA_DIST += ca/ext-conf.cnf
EXTRA_DIST += ca/kea-ca.crt EXTRA_DIST += ca/kea-ca.crt
@ -61,19 +61,14 @@ if HAVE_OPENSSL
noinst_PROGRAMS = openssl_sample_client openssl_sample_server noinst_PROGRAMS = openssl_sample_client openssl_sample_server
openssl_sample_client_SOURCES = openssl_sample_client.cpp openssl_sample_client_SOURCES = openssl_sample_client.cc
openssl_sample_client_CPPFLAGS = $(AM_CPPFLAGS) openssl_sample_client_CPPFLAGS = $(AM_CPPFLAGS)
openssl_sample_client_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) openssl_sample_client_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
openssl_sample_client_LDADD = $(CRYPTO_LIBS) 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_CPPFLAGS = $(AM_CPPFLAGS)
openssl_sample_server_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) openssl_sample_server_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
openssl_sample_server_LDADD = $(CRYPTO_LIBS) openssl_sample_server_LDADD = $(CRYPTO_LIBS)
endif endif
endif endif

View File

@ -4,27 +4,69 @@ Similar to doc/examples/https/nginx/kea-nginx.conf
Organization Name is ISC Inc. Organization Name is ISC Inc.
Common Name is the key name. Common Name is the key name.
Some critical details:
- recent versions of OpenSSL requires at least 2038 bit RSA
- certificate version should be 3 (enforced by Botan for leaves),
if openssl creates a version 1 add an extension
- RSA allows a simpler format than PKCS#8 for RSA private keys
but Botan and other algorithms require PKCS#8
- some tools check the alternate subject name of the server so put
a correct value in it
Files:
- doc.txt this file
- ext-addr-conf.cnf extension definition file to add an IP address subject
alternative name to the server certificate (IP 127.0.0.1)
- ext-conf.cnf extension definition file to add a subject alternative
name to the server certificate (DNS localhost)
- kea-ca.crt Certification Authority (CA) certificate
- kea-ca.key Certification Authority (CA) private key (password keatest)
- kea-client.crt client certificate
- kea-client.csr client PKCS#10 certificate request
- kea-client.key client private key (not encrypted)
- kea-client.p12 client PKCS#12 archive with the certificate and the private
key (required by curl on macOS or iOS when built with Secure Transport)
- kea-other.crt test client certificate (signed by another CA)
- kea-other.key test client private key (signed by another CA, not encrypted)
- kea-self.crt test client certificate (self-signed)
- kea-self.key test client private key (self-signed, not encrypted)
- kea-server-addr.crt server certificate using the 127.0.0.1 IP address
- kea-server-addr.csr server PKCS#10 certificate request using the
127.0.0.1 IP address
- kea-server.crt server certificate using the localhost DNS name
- kea-server.csr server PKCS#10 certificate request using the localhost
DNS name
- kea-server.key server private key (all certificates, not encrypted)
- server-addr-conf.cnf OpenSSL configuration file to add an IP address
subject alternative name (127.0.0.1 and ::1)
- server-conf.cnf OpenSSL configuration file to add a DNS subject
alternative name (localhost)
Procedure to build CA, server and client files:
1 - create a CA self signed certificate (password is keatest) 1 - create a CA self signed certificate (password is keatest)
openssl genrsa -aes128 -out kea-ca.key 4096 openssl genrsa -aes128 -out kea-ca.key 4096
openssl req -new -x509 -days 3650 -key kea-ca.key -out kea-ca.crt openssl req -new -x509 -days 3650 -key kea-ca.key -out kea-ca.crt \
-extensions v3_ca -config server-conf.cnf
2 - create a key for the client and decipher it 2 - create a key for the client and convert to PKCS#8
openssl genrsa -aes128 -out kea-client-aes.key 2048 openssl genrsa -aes128 -out kea-client-aes.key 2048
openssl rsa -in kea-client-aes.key -out kea-client.key openssl pkcs8 -in kea-client-aes.key -out kea-client.key -nocrypt
rm kea-client-aes.key rm kea-client-aes.key
3 - create a certificate for the client 3 - create a certificate for the client
openssl req -new -key kea-client.key -out kea-client.csr openssl req -new -key kea-client.key -out kea-client.csr
openssl x509 -req -days 3650 -in kea-client.csr -CA kea-ca.crt \ openssl x509 -req -days 3650 -in kea-client.csr -CA kea-ca.crt \
-CAkey kea-ca.key -set_serial 10 -out kea-client.crt -sha256 -CAkey kea-ca.key -set_serial 10 -out kea-client.crt \
-extfile /dev/null -sha256
4 - create a PKCS#12 bundle on macOS (password is keatest) 4 - create a PKCS#12 bundle on macOS (password is keatest)
openssl pkcs12 -in kea-client.crt -inkey kea-client.key -export \ openssl pkcs12 -in kea-client.crt -inkey kea-client.key -export \
-out kea-client.p12 -out kea-client.p12
5 - create a key for the server and decipher it (same than 2) 5 - create a key for the server and convert to PKCS#8 (same than 2)
openssl genrsa -aes128 -out kea-server-aes.key 2048 openssl genrsa -aes128 -out kea-server-aes.key 2048
openssl rsa -in kea-server-aes.key -out kea-server.key openssl pkcs8 -in kea-server-aes.key -out kea-server.key -nocrypt
rm kea-server-aes.key rm kea-server-aes.key
6 - create a certificate with a subject alternate name set to localhost 6 - create a certificate with a subject alternate name set to localhost

View File

@ -1,29 +1,30 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIIE3jCCAsYCCQDVzhmZelXOXDANBgkqhkiG9w0BAQsFADAxMQswCQYDVQQGEwJV MIIFMzCCAxugAwIBAgIJAJHdRK24tsELMA0GCSqGSIb3DQEBCwUAMDAxCzAJBgNV
UzERMA8GA1UECgwISVNDIEluYy4xDzANBgNVBAMMBmtlYS1jYTAeFw0yMDA2MTEx BAYTAlVTMRAwDgYDVQQKDAdJU0MgSW5jMQ8wDQYDVQQDDAZrZWEtY2EwHhcNMjEw
MzU3MzhaFw0zMDA2MDkxMzU3MzhaMDExCzAJBgNVBAYTAlVTMREwDwYDVQQKDAhJ MzAyMTQ1OTM3WhcNMzEwMjI4MT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I LuPlRAwgs8aRRPsySGYKvtCeNYAgjsbec9f0P7lMEGr+AqbZF9qNbbQQkq0dHrMH
YHgAVhd5gSmxcJ3VTilgUaYE9DRAKY3GVFkliTlGYM55khyJYdASWGijHI14hs4W goazCek3XtlMAYYUdmkqQ5a44XRQUu4FuTVqzCH8nqhkeHcWTwO9BHayUebxiBk8
TZQWebbaoaKNtEq+5omj7HsNLrWfKe6EQrn9z7PY+96ZbSZsbt34/tmsVpmTrOFB njDwLtHiQ8u9TjVf/35UOdqFSxra+wZJPKYbH++82KG6rbEotGp3jv0uxasgiHVL
BV/iU3uEJGvAucI0VXgguKN3jmw2hWstHzEWEMHm107Vp3QPWmrHzvcosAxLsKpg qrD3dkQAU8zF7cllsUkRE3Gw4tDaZXkZCawiMfLiGK1FVApXkUnKilASDsaH6i3x
WyHjO3AiUQOsP9NPOy9Owr/XJCcSbf5k4MuFDLXi Ui8LM1F9vbtJnzftTa3yi0FR6Gmi5Mc+R42gpE8xCa4y
-----END CERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,16 +1,16 @@
-----BEGIN CERTIFICATE REQUEST----- -----BEGIN CERTIFICATE REQUEST-----
MIICejCCAWICAQAwNTELMAkGA1UEBhMCVVMxETAPBgNVBAoMCElTQyBJbmMuMRMw MIICeTCCAWECAQAwNDELMAkGA1UEBhMCVVMxEDAOBgNVBAoMB0lTQyBJbmMxEzAR
EQYDVQQDDAprZWEtY2xpZW50MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC BgNVBAMMCmtlYS1jbGllbnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQEAym7A5BJaI7xYVbdt+BkDhFVbnRKeLPCmJw0E2abHXonaz98mPqln8xtZNeqj AQDKbsDkElojvFhVt234GQOEVVudEp4s8KYnDQTZpsdeidrP3yY+qWfzG1k16qMB
AeY1xe3UYc6uBYj22TLOXM9wX8GQ5cY1jMYIsT2gq1aYWCxoSPADp3vDxJeO3uAH 5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E4DUe8tyl3TjayYxroyRj+TT
BimeigqvKOMS785BxmXeYl2qEg9Vu4zaFePAHPPpjIA7LELfXdM/B6TOP9/aCMEd D0LWwE65QGygJM2cZrraIvue5kVan4C8XZvO/VvZoakWH/ZkGN8Pis33r8oEfrQL
NhQVPAUOXFxCnBHWo84= SyGt7oTSRYob5MTWmA==
-----END CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----

View File

@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY----- -----BEGIN PRIVATE KEY-----
MIIEowIBAAKCAQEAym7A5BJaI7xYVbdt+BkDhFVbnRKeLPCmJw0E2abHXonaz98m MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDKbsDkElojvFhV
Pqln8xtZNeqjAeY1xe3UYc6uBYj22TLOXM9wX8GQ5cY1jMYIsT2gq1aYWCxoSPAD t234GQOEVVudEp4s8KYnDQTZpsdeidrP3yY+qWfzG1k16qMB5jXF7dRhzq4FiPbZ
p3vDxJeO3uAHtwpfenVlH0CkJhiM8x303CbwsVDgqG+c2Dgg77Y5OPCMXbx4tfAG Ms5cz3BfwZDlxjWMxgixPaCrVphYLGhI8AOne8PEl47e4Ae3Cl96dWUfQKQmGIzz
/4V8hiSl0rqgrGlwUSuwJp/P48TIHYXbPdrTcZtAYgCbbJpEJvUFvM7XKIhBIDuF HfTcJvCxUOCob5zYOCDvtjk48IxdvHi18Ab/hXyGJKXSuqCsaXBRK7Amn8/jxMgd
Yg0SUkSmhvYVUawHuBj4rDo1M3qwA5D1/6XIRyKpq0yfWCoZ4Dnw3YgGWNZZGXNX hds92tNxm0BiAJtsmkQm9QW8ztcoiEEgO4ViDRJSRKaG9hVRrAe4GPisOjUzerAD
GzOs6qk4E6dTL7bUr/CRDejjITPm6Qm2olqeAwIDAQABAoIBAQCiT9OSC7UC2k3p kPX/pchHIqmrTJ9YKhngOfDdiAZY1lkZc1cbM6zqqTgTp1MvttSv8JEN6OMhM+bp
zL38I/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EI163fhX99IffXymjAoGAf9B0v+NIxRXgMac+1rLN
Mei9BawHU2H4rfCN3QTqimHt2/xNKyCowF+a4fRLPz8bDqOqiWMPZeD+PscWSrKq MSzOOA2yq3tI+Ra8q0D4r4ShfauWll/rlEgx6L0FrAdTYfit8I3dBOqKYe3b/E0r
r3TDUNfttWQvdE5x1nct20T4dQ9FY1w8MgcsouBbmhFoWYDQOfuO IKjAX5rh9Es/PxsOo6qJYw9l4P4+xxZKsqqvdMNQ1+21ZC90TnHWdy3bRPh1D0Vj
-----END RSA PRIVATE KEY----- XDwyByyi4FuaEWhZgNA5+44=
-----END PRIVATE KEY-----

View File

@ -1,23 +1,23 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIID1zCCAb8CARQwDQYJKoZIhvcNAQELBQAwMzELMAkGA1UEBhMCVVMxETAPBgNV MIID4DCCAcigAwIBAgIBFDANBgkqhkiG9w0BAQsFADAzMQswCQYDVQQGEwJVUzER
BAoMCElTQyBJbmMuMREwDwYDVQQDDAhvdGhlci1jYTAeFw0yMTAyMjEyMTE4NDda MA8GA1UECgwISVNDIEluYy4xETAPBgNVBAMMCG90aGVyLWNhMB4XDTIxMDMwMjE0
Fw0zMTAyMTkyMTE4NDdaMDAxCzAJBgNVBAYTAlVTMREwDwYDVQQKDAhJU0MgSW5j NTI0OFoXDTMxMDIyODE0NTI0OFowNDELMAkGA1UEBhMCVVMxETAPBgNVBAoMCElT
LjEOMAwGA1UEAwwFb3RoZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB QyBJbmMuMRIwEAYDVQQDDAlrZWEtb3RoZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IB
AQDAoEENWQ6tl6aaRMn+yaNUKTBIIWpVoy5+uGsBdZW++fEvw4xmleGD+bwyHZFE DwAwggEKAoIBAQDAoEENWQ6tl6aaRMn+yaNUKTBIIWpVoy5+uGsBdZW++fEvw4xm
sHPos/v7zWUNFaX2aWD0H+Hk4l2WT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ELO52o noaD8ZIKZ5pBMzoxyOe+39tLJkzhESdZ8gJZRXGm+ickAlP96w8z8TlQiWHG3Caw
z48CL/Y1jOhmplM7aUCNNxdObZZ0ym1OCEGo6yNCkGil6ErEgmVE7IrGaLMwbAHj kM7SZSyVYdyfiF32J6A7hwlG3qud83GcunfrjOurWBe1lv51pb/OFGe6wlRD/pcS
eylbIcAieaAuc1w858nRbB+ryND9BWj5G0+B3xhuX3Xs4bfDKxPayytf9ixfshrn UcKZ07KXXYMXV40O6A5Dv0yJB8ocKhOkfU5MvotAAm2GL2ZXizfmEAz23X9I8830
9TR0g3GIV+lIVOuCmQtf5H2eZ2wTxd09f6Sglh7WMm/RNEd+E53n3dnksjt9X/Lc B5ggVxgp/bO/exC1sBJjUgF4qVPByE1MdDDWYvPKT8cYg5j8pD9rDn7WGVAmgCk9
27Q513x6IudXTreJMQdAstna/Aftjm4KN+zMc1JEYXPyiwN3UEFk8gfBstbg3Tb9 59lEI0HBP33ulBRoxrOQ7kV3pUlV8oP3wG/joz8PwSNAbbtQuUnAmjElONPyTrMN
ioA/yX4E1Jim7HHqB4eoTcmv4nz0kYrNtFxp4xAoy1qYc8afFOyborWdCqZFbERO 2Yqah89SqH9ygzz/UomdrKYuoTu/QEfLLtBcyBLKHrRT8ODvsp2kY9RpveCctsAR
JQJop0aVSm7tR95nhcd1O3ZgxMjzT6jOIw7P/DxCBQqz5xwXThpcYboK5z4cdWe7 2gmnYixj7GDdp5c6zTich1+QkVvFtrl3Zu+AWRekFAn92bwwOli14S3LgW2t4iXL
QAsCwmY3m4pbVvxtY9xl+LtEqNt7/eFXqstV InVUqNg6l6K9d+FdHogvITQLKKMpfIfsCKPqvacpqryyaith
-----END CERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY----- -----BEGIN PRIVATE KEY-----
MIIEowIBAAKCAQEAwKBBDVkOrZemmkTJ/smjVCkwSCFqVaMufrhrAXWVvvnxL8OM MIIEvQ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ERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY----- -----BEGIN PRIVATE KEY-----
MIIEowIBAAKCAQEAwKBBDVkOrZemmkTJ/smjVCkwSCFqVaMufrhrAXWVvvnxL8OM MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDAoEENWQ6tl6aa
ZpXhg/m8Mh2RRLBz6LP7+81lDRWl9mlg9B/h5OJdlkxYoFjt7rT6Fw8wzo30JoJS RMn+yaNUKTBIIWpVoy5+uGsBdZW++fEvw4xmleGD+bwyHZFEsHPos/v7zWUNFaX2
hvkdPKd4IlEayc1ClsHv0USQbO6l3XA/cjV1Tm9iVqeAsZNYj4+800vyxrBa+xeP aWD0H+Hk4l2WTFigWO3utPoXDzDOjfQmglKG+R08p3giURrJzUKWwe/RRJBs7qXd
5Np5R9xLqrwdxgRFx2v7AOecYoDMr6lZ1W+KzYfj4xi/JeUmc0p623aCBLSsPy1W cD9yNXVOb2JWp4Cxk1iPj7zTS/LGsFr7F4/k2nlH3EuqvB3GBEXHa/sA55xigMyv
wQgFa0LIHAAzao0eyC26niKoNU3ddUL0Mwe3/1OXUKED86t4+KMNczomkqJGRO1H qVnVb4rNh+PjGL8l5SZzSnrbdoIEtKw/LVbBCAVrQsgcADNqjR7ILbqeIqg1Td11
FAlDX40b+RNpVvppsjO55IMhPS6lCf97nSIdbwIDAQABAoIBAGFKT7D7MzOwbeBr QvQzB7f/U5dQoQPzq3j4ow1zOiaSokZE7UcUCUNfjRv5E2lW+mmyM7nkgyE9LqUJ
MA71Lv5aE13LKtb4JYqxgLJq/mhH+26heO9zckTjRQ+W6YFlEhYNmg8TLZ/POFTd /3udIh1vAgMBAAECggEAYUpPsPszM7Bt4GswDvUu/loTXcsq1vglirGAsmr+aEf7
4q9KzyB4yMYZ54WNhRdU5x/wdzlMb21n02ECv6ab+0xx5HLarnBQodzzoXKzkqjm bqF473NyRONFD5bpgWUSFg2aDx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seXP83mNKjy7Rn/qqIDHKH7WXke kS66aKRTvXdIZujGSNLyjN9SQkaJfKDYLW32WmxTowoLh5MyDpaVOMFegVzex5c/
-----END RSA PRIVATE KEY----- zeY0qPLtGf+qogMcoftZeR4=
-----END PRIVATE KEY-----

View File

@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIIECzCCAfOgAwIBAgIBHjANBgkqhkiG9w0BAQsFADAxMQswCQYDVQQGEwJVUzER MIIECjCCAfKgAwIBAgIBHjANBgkqhkiG9w0BAQsFADAwMQswCQYDVQQGEwJVUzEQ
MA8GA1UECgwISVNDIEluYy4xDzANBgNVBAMMBmtlYS1jYTAeFw0yMTAyMjEyMTE1 MA4GA1UECgwHSVNDIEluYzEPMA0GA1UEAwwGa2VhLWNhMB4XDTIxMDMwMjE1MDE0
MTdaFw0zMTAyMTkyMTE1MTdaMDoxCzAJBgNVBAYTAlVTMREwDwYDVQQKDAhJU0Mg OVoXDTMxMDIyODE1MDE0OVowOjELMAkGA1UEBhMCVVMxETAPBgNVBAoMCElTQyBJ
SW5jLjEYMBYGA1UEAwwPa2VhLXNlcnZlci1hZGRyMIIBIjANBgkqhkiG9w0BAQEF bmMuMRgwFgYDVQQDDA9rZWEtc2VydmVyLWFkZHIwggEiMA0GCSqGSIb3DQEBAQUA
AAOCAQ8AMIIBCgKCAQEAveRRgIN0S8oeBXVaIEnsG1DKuDzKKqLoLdBQNfoZrKzD A4IBDwAwggEKAoIBAQC95FGAg3RLyh4FdVogSewbUMq4PMoqougt0FA1+hmsrMMs
LIMNzlabxu20h82Y/OU02EdEzar98OstzglIWimKFVI0Omi0AuinUkv9640tjoO0 gw3OVpvG7bSHzZj85TTYR0TNqv3w6y3OCUhaKYoVUjQ6aLQC6KdSS/3rjS2Og7SD
g0oyCiWFpJLJ8WOF4j7vmZUWuSS3VthlB+MLWlOZ5zACyPyWPo4Z2noHaYjfiQxB SjIKJYWkksnxY4XiPu+ZlRa5JLdW2GU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Hz+aHf3zJ5f0cXABSe9ZDqCnBaBvF3vj5Hd0BGdZ5TuM+tKLEQDCivdC2K rK/NB6rt8W8hLQQE6bRunJmkLrmLKLVjFtPZPq5hm3jE8fnGxfzvThiZHTj+oFGw
89cthsPpCqTzednw3Q/mEuIqyJg6F6grQR1/qapMf8OlVa6LQXhTL9RVe6M6sg3u KXcbuSvwgYuLKym648V+VDGiDWdpS2dIwQi2JeHTt7Y4P+8dqPfHY7oDy2+67J6o
DuAnrdrFDcmxP2dGL4oycxA2t82lnJ3vjfl329PQmZ3iEVQJDuitQGsymv0nnqos ElTXvloGVNCedQtpp9gNrtil5avXrU9HCfD9avYlsn89kqYZ3Ht1GBYPyqeSZDCo
S9YCqPpTnk6ADnv9RLqHuCyKJLgERy5RO/pMM9rjB0mqtNtSQgVW55Or2byFL1qR a+sffazhYPfqFdH0U7wpq6Gf8/JMSAuQmAR2UAwhjoQatqDqEJ3pAFsI3YcQOZqm
IKQIQWneP7VLAXaNKUQNbyDzTCTo7QZTHivDgC03E/36vKz2wWbcl4u/oBxkEa+H kj3/T0iYkU8YdJkxI2YgVCRRIzTKHkGMVc/iz+C0OJwFeJDuj+dj+EXXtyi3sjhL
LORk7RNnXQJRXQms7rydJQk9osBWio0hsuZddkwuetUzkverWOSdofqAtN+xZUBt oTQT2y01nW2TPrHqlG3/fQyPx1gKXrij+1uOZJpZcgKE7/YBGByRiUdOyRJ0E6h6
lZYE+em29aBd6/wektxqJriVZxpaQxyrSMKF+jQtmA== oimhTLT6mC9wteMiRmj68z5tTC1P0H4nuOU7OqwL
-----END CERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIID+TCCAeGgAwIBAgIBFDANBgkqhkiG9w0BAQsFADAxMQswCQYDVQQGEwJVUzER MIID+DCCAeCgAwIBAgIBFDANBgkqhkiG9w0BAQsFADAwMQswCQYDVQQGEwJVUzEQ
MA8GA1UECgwISVNDIE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M/
OOQ9Mi1Rn/pPMm/kHXwJthcuVcLP006eS5zFaU5ejicx+nT2L0YS/eyNygq6jubJ RSsui8vVbvKU+bRlyB5qmNR8cSI5oEA+kAs5DXK2bh5v1SGSxVjwKuwwLeu8eCr3
4Xm2QcX2be3LNyWwiGWPw1CqOCxpGFIgY1Z9cyORGL12KyZ5sPxFdwUWI2RTXLOn HUYQMxKi7Y15+BqjbrOZCEfHE4WORkKze1dh9U/UU9h+LVd+TB7jprZc3ZOvuqYP
mjDYzyR8cByql0QZSO7neH/QSrQyfVeDxawbWJCK9VimAKqxUXWuAqjqtfF42XGM Bb+ponHJJaRvHUKD/jL8kHQ7KX79wXNVkrevGcPe8qE1X/xu4ChK5PuDzq2HQPLs
xbwIHFtwsd+04XA8xQ== USYWw/aARNwslhV6
-----END CERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY----- -----BEGIN PRIVATE KEY-----
MIIEogIBAAKCAQEAveRRgIN0S8oeBXVaIEnsG1DKuDzKKqLoLdBQNfoZrKzDLIMN MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC95FGAg3RLyh4F
zlabxu20h82Y/OU02EdEzar98OstzglIWimKFVI0Omi0AuinUkv9640tjoO0g0oy dVogSewbUMq4PMoqougt0FA1+hmsrMMsgw3OVpvG7bSHzZj85TTYR0TNqv3w6y3O
CiWFpJLJ8WOF4j7vmZUWuSS3VthlB+MLWlOZ5zACyPyWPo4Z2noHaYjfiQxBH8r5 CUhaKYoVUjQ6aLQC6KdSS/3rjS2Og7SDSjIKJYWkksnxY4XiPu+ZlRa5JLdW2GUH
GJtQiJGapgWRbeyI+m837bjimpz6V1AGebHvf+zd1Lj+zDOczp38PqIGUbmAvfKC 4wtaU5nnMALI/JY+jhnaegdpiN+JDEEfyvkYm1CIkZqmBZFt7Ij6bzftuOKanPpX
j+ILMS46wYjjHTvCG5WSCG/Skker2HAJM2cNcEPmQqAO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gXp/0Wioiz7XtFq3W1mxvWiCwoxO0hfYAHvzepgSLTPPa1EMO2UF91X0kNAxMa1 D11I9r1Bu7AN6xTllMRBFTwN/8C8lq3P+/BiBen/RaKiLPte0WrdbWbG9aILCjE7
F+0FAoGAAIcCoN3PazFWSsNMO4EfZf4VUgnTg9Dh3mMH8M3hEGybISSVKz5NILBC SF9gAe/N6mBItM89rUQw7ZQX3VfSQ0DExrUX7QUCgYAAhwKg3c9rMVZKw0w7gR9l
OKRKNLPLuj4TwTcurelNjMOUvkd/+yQgu1B9ImNuHdSvJjS9TzWCgZ26Q16woMzv /hVSCdOD0OHeYwfwzeEQbJshJJUrPk0gsEI4pEo0s8u6PhPBNy6t6U2Mw5S+R3/7
yKeky514sst/1LtWuwiitmGS0rpKf3vIlkqcUE9WcLd3Hy/PxKg= JCC7UH0iY24d1K8mNL1PNYKBnbpDXrCgzO/Ip6TLnXiyy3/Uu1a7CKK2YZLSukp/
-----END RSA PRIVATE KEY----- e8iWSpxQT1Zwt3cfL8/EqA==
-----END PRIVATE KEY-----

View File

@ -8,6 +8,8 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// //
#include <config.h>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <functional> #include <functional>

View File

@ -11,6 +11,8 @@
// Use the cpp03 version because the cpp11 version does not compile with // Use the cpp03 version because the cpp11 version does not compile with
// some g++ e.g. on Fedora 33. // some g++ e.g. on Fedora 33.
#include <config.h>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <boost/bind/bind.hpp> #include <boost/bind/bind.hpp>

View File

@ -204,6 +204,9 @@ public:
virtual void close(); virtual void close();
/// @brief TLS shutdown. /// @brief TLS shutdown.
///
/// The callback is called on completion i.e. when the peer performs
/// a shutdown or a close.
virtual void shutdown(C& callback); virtual void shutdown(C& callback);
/// @brief Returns reference to the underlying ASIO socket. /// @brief Returns reference to the underlying ASIO socket.
@ -234,7 +237,7 @@ private:
/// @brief Underlying TCP socket. /// @brief Underlying TCP socket.
typename TlsStream<C>::lowest_layer_type& socket_; typename TlsStream<C>::lowest_layer_type& socket_;
/// TODO: Remove temporary buffer /// @todo Remove temporary buffer
/// The current implementation copies the buffer passed to asyncSend() into /// The current implementation copies the buffer passed to asyncSend() into
/// a temporary buffer and precedes it with a two-byte count field. As /// a temporary buffer and precedes it with a two-byte count field. As
/// ASIO should really be just about sending and receiving data, the TCP /// ASIO should really be just about sending and receiving data, the TCP
@ -280,8 +283,8 @@ TLSSocket<C>::open(const IOEndpoint* endpoint, C& callback) {
} }
// Ignore opens on already-open socket. Don't throw a failure because // Ignore opens on already-open socket. Don't throw a failure because
// of uncertainties as to what precedes whan when using asynchronous I/O. // of uncertainties as to what precedes when using asynchronous I/O.
// At also allows us a treat a passed-in socket as a self-managed socket. // Also allows us a treat a passed-in socket as a self-managed socket.
if (!socket_.is_open()) { if (!socket_.is_open()) {
if (endpoint->getFamily() == AF_INET) { if (endpoint->getFamily() == AF_INET) {
socket_.open(boost::asio::ip::tcp::v4()); socket_.open(boost::asio::ip::tcp::v4());
@ -358,7 +361,7 @@ TLSSocket<C>::asyncSend(const void* data, size_t length,
// Need to copy the data into a temporary buffer and precede it with // Need to copy the data into a temporary buffer and precede it with
// a two-byte count field. // a two-byte count field.
// TODO: arrange for the buffer passed to be preceded by the count // @todo arrange for the buffer passed to be preceded by the count
try { try {
// Ensure it fits into 16 bits // Ensure it fits into 16 bits
uint16_t count = boost::numeric_cast<uint16_t>(length); uint16_t count = boost::numeric_cast<uint16_t>(length);

View File

@ -191,7 +191,7 @@ template <typename C> void
UDPSocket<C>::open(const IOEndpoint* endpoint, C&) { UDPSocket<C>::open(const IOEndpoint* endpoint, C&) {
// Ignore opens on already-open socket. (Don't throw a failure because // Ignore opens on already-open socket. (Don't throw a failure because
// of uncertainties as to what precedes whan when using asynchronous I/O.) // of uncertainties as to what precedes when using asynchronous I/O.)
// It also allows us a treat a passed-in socket in exactly the same way as // It also allows us a treat a passed-in socket in exactly the same way as
// a self-managed socket (in that we can call the open() and close() methods // a self-managed socket (in that we can call the open() and close() methods
// of this class). // of this class).