-// Copyright (C) 2021-2022 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2021-2023 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
exps.addThrow("no start line (PEM routines, CRYPTO_internal)");
exps.addThrow("PEM lib");
exps.addThrow("PEM lib (SSL routines)");
+ exps.addThrow("unsupported");
+ exps.addThrow("unsupported (DECODER routines)");
// Another possible error.
exps.addThrow("No such file or directory");
exps.runCanThrow([] {
-// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2023 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
EXPECT_EQ(Element::integer, value->getType());
EXPECT_EQ("bar", value->getName());
EXPECT_EQ("5", value->getValue());
- int64_t signed_integer;
+ int64_t signed_integer = 0;
ASSERT_NO_THROW(signed_integer = value->getIntegerValue());
EXPECT_EQ(5, signed_integer);
option = def->optionFactory(universe_, code_, buf.begin(),
value_null_ == MLM_FALSE ? buf.end() :
buf.begin());
- } else {
+ } else {
// Spit the value specified in comma separated values
// format.
std::vector<std::string> split_vec;
/// @brief Binary address data.
std::vector<uint8_t> addr6_;
- /// @brief Binary address buffer.
- uint8_t addr6_buffer_[isc::asiolink::V6ADDRESS_LEN];
-
/// @brief Binary address length.
unsigned long addr6_length_;
};
}
void
-PdPoolParser::parse(PoolStoragePtr pools, ConstElementPtr pd_pool_,
+PdPoolParser::parse(PoolStoragePtr pools, ConstElementPtr pd_pool_,
bool encapsulate_options) {
checkKeywords(SimpleParser6::PD_POOL6_PARAMETERS, pd_pool_);
// Verify getting a collection of leases by type, DUID, and IAID.
// Iterate over the lease types, asking for leases based on
// lease type, DUID, and IAID.
- for (int i = 0; i < 3; ++i) {
+ for (size_t i = 0; i < 3; ++i) {
Lease6Collection returned = lmptr_->getLeases6(leasetype6_[i], *duid, 142);
- auto compare = [](Lease6Ptr& left, Lease6Ptr& right) {
+ auto compare = [](const Lease6Ptr& left, const Lease6Ptr& right) {
return (left->addr_ < right->addr_);
};
std::sort(returned.begin(), returned.end(), compare);
-// Copyright (C) 2010-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2023 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
#include <config.h>
#include <functional>
+#include <iomanip>
#include <vector>
#include <string>
#include <sstream>