11 #if defined(WITH_BOTAN) && !defined(WITH_BOTAN_BOOST)
19 TlsContext::TlsContext(
TlsRole role)
20 : TlsContextBase(role), cert_required_(true) {
24 TlsContext::setCertRequired(
bool cert_required) {
27 "'cert-required' parameter must be true for a TLS client");
29 cert_required_ = cert_required;
33 TlsContext::getCertRequired()
const {
34 return (cert_required_);
38 TlsContext::loadCaFile(
const std::string&) {
39 isc_throw(NotImplemented,
"Botan TLS is not yet supported");
43 TlsContext::loadCaPath(
const std::string&) {
44 isc_throw(NotImplemented,
"loadCaPath is not implemented by Botan");
48 TlsContext::loadCertFile(
const std::string&) {
49 isc_throw(NotImplemented,
"Botan TLS is not yet supported");
53 TlsContext::loadKeyFile(
const std::string&) {
54 isc_throw(NotImplemented,
"Botan TLS is not yet supported");
60 #endif // WITH_BOTAN && !WITH_BOTAN_BOOST
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
Defines the logger used by the top-level component of kea-dhcp-ddns.
A wrapper interface for the ASIO library.
TlsRole
Client and server roles.