Skip to content

Commit 51d67d6

Browse files
committed
[#3209] Updated copyrights
1 parent 06fc63c commit 51d67d6

39 files changed

+62
-37
lines changed

Diff for: src/bin/perfdhcp/command_options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2012-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/cryptolink/tests/crypto_unittests.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/cryptolink/tests/hash_unittests.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/cryptolink/tests/hmac_unittests.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2022 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/d2srv/testutils/nc_test_utils.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2013-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp/option.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp/option6_pdexclude.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp/tests/duid_factory_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2015-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp/tests/option6_pdexclude_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2016-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// Author: Andrei Pavel <[email protected]>
44
//

Diff for: src/lib/dhcp/tests/option_vendor_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp/testutils/pkt_captures4.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2013-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp/testutils/pkt_captures6.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2013-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcp_ddns/ncr_msg.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2013-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcpsrv/cfg_duid.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2015-2020 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcpsrv/tests/cfg_duid_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2015-2020 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcpsrv/tests/duid_config_parser_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dhcpsrv/tests/sanity_checks_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/any_255/tsig_250.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/detail/nsec3param_common.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/dlv_32769.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/ds_43.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/nsec3_50.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/nsec3param_51.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/nsec_47.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/rrsig_46.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/sshfp_44.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2012-2016 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/tkey_249.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2021 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2021-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/generic/tlsa_52.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/rdata/in_1/dhcid_49.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/tests/nsec3hash_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/tests/rdata_dhcid_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/tests/tsig_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/dns/tsigkey.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2010-2021 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/eval/token.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2015-2023 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/http/basic_auth.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2020 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2020-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

Diff for: src/lib/util/encode/encode.cc

+13
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ BaseNEncoder::encode(const std::vector<uint8_t>& input) {
8989
if (cnt < bits_per_digit_) {
9090
digit_idx <<= 1;
9191
} else {
92+
#if 0
9293
// Have a complete digit index, look up digit and add it.
9394
encoded_output.push_back(bitsToDigit(digit_idx));
95+
#else
96+
encoded_output.push_back(digit_set_[digit_idx]);
97+
#endif
98+
9499
digit_idx = 0;
95100
cnt = 0;
96101
}
@@ -107,7 +112,11 @@ BaseNEncoder::encode(const std::vector<uint8_t>& input) {
107112
// We've exhausted bits, but have left over
108113
if (cnt) {
109114
digit_idx <<= (bits_per_digit_ - cnt);
115+
#if 0
110116
encoded_output.push_back(bitsToDigit(digit_idx));
117+
#else
118+
encoded_output.push_back(digit_set_[digit_idx]);
119+
#endif
111120
}
112121

113122
// Add padding as needed.
@@ -139,7 +148,11 @@ BaseNEncoder::decode(const std::string& encoded_str, std::vector<uint8_t>& outpu
139148
}
140149

141150
// Translate the b64 digit to bits.
151+
#if 0
142152
uint8_t dig_bits = digitToBits(enc_digit);
153+
#else
154+
uint8_t dig_bits = bits_table_[enc_digit];
155+
#endif
143156

144157
// Skip whitespace.
145158
if (dig_bits == 0xee) {

Diff for: src/lib/util/tests/encode_unittest.cc

+12
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,16 @@ TEST_F(Base16Test, mappingCheck) {
392392
mapTest();
393393
}
394394

395+
TEST(toms,theirs64) {
396+
std::vector<uint8_t>input{ 'f', 'o', 'o', 'b', 'a', 'r' };
397+
398+
int limit = 1000000;
399+
for (int i = 0; i < limit; ++i) {
400+
std::string encoded = encodeBase64(input);
401+
std::vector<uint8_t>decoded;
402+
decodeBase64(encoded, decoded);
403+
EXPECT_EQ(decoded,input);
404+
}
405+
}
406+
395407
}

Diff for: src/lib/util/tests/strutil_unittest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2011-2022 Internet Systems Consortium, Inc. ("ISC")
1+
// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
22
//
33
// This Source Code Form is subject to the terms of the Mozilla Public
44
// License, v. 2.0. If a copy of the MPL was not distributed with this

0 commit comments

Comments
 (0)