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