Kea 3.1.1
gss_tsig_key.cc
Go to the documentation of this file.
1// Copyright (C) 2021-2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#include <config.h>
8
9#include <gss_tsig_key.h>
10
11using namespace isc;
12using namespace isc::dns;
13using namespace std;
14
15namespace isc {
16namespace gss_tsig {
17
18GssTsigKey::GssTsigKey(const string& key_name, gss_ctx_id_t sec_ctx)
19 : D2TsigKey(key_name + "::gss-tsig"), sec_ctx_(new GssApiSecCtx(sec_ctx)) {
20}
21
22GssTsigKey::GssTsigKey(const string& key_name, const vector<uint8_t>& import)
23 : D2TsigKey(key_name + "::gss-tsig"), sec_ctx_(new GssApiSecCtx(import)) {
24}
25
28
29} // end of namespace isc::gss_tsig
30} // end of namespace isc
D2TsigKey(const std::string &key_spec)
Constructor.
GSS-API security context.
GssTsigKey(const std::string &key_name, gss_ctx_id_t sec_ctx=GSS_C_NO_CONTEXT)
Constructor.
std::unique_ptr< GssApiSecCtx > sec_ctx_
GSS-API security context.
virtual ~GssTsigKey()
Destructor.
Defines the logger used by the top-level component of kea-lfc.