From e826698005c627c56e8ebf261c5756948f856828 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Mon, 4 Mar 2024 01:01:45 +0200 Subject: [PATCH] chore: Add the missing license blurb where it was missing (#1702) --- neqo-common/build.rs | 6 ++++++ neqo-crypto/tests/aead.rs | 6 ++++++ neqo-crypto/tests/agent.rs | 6 ++++++ neqo-crypto/tests/ext.rs | 6 ++++++ neqo-crypto/tests/handshake.rs | 6 ++++++ neqo-crypto/tests/hkdf.rs | 6 ++++++ neqo-crypto/tests/hp.rs | 6 ++++++ neqo-crypto/tests/init.rs | 6 ++++++ neqo-crypto/tests/selfencrypt.rs | 6 ++++++ neqo-http3/src/priority.rs | 6 ++++++ neqo-http3/src/push_controller.rs | 1 + neqo-transport/benches/range_tracker.rs | 6 ++++++ neqo-transport/benches/rx_stream_orderer.rs | 6 ++++++ neqo-transport/benches/transfer.rs | 6 ++++++ neqo-transport/src/cc/tests/mod.rs | 1 + 15 files changed, 80 insertions(+) diff --git a/neqo-common/build.rs b/neqo-common/build.rs index 0af1a1dbbd..9047b1f5d0 100644 --- a/neqo-common/build.rs +++ b/neqo-common/build.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::env; fn main() { diff --git a/neqo-crypto/tests/aead.rs b/neqo-crypto/tests/aead.rs index 736acc31c2..5cf0034aec 100644 --- a/neqo-crypto/tests/aead.rs +++ b/neqo-crypto/tests/aead.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] #![cfg(not(feature = "fuzzing"))] diff --git a/neqo-crypto/tests/agent.rs b/neqo-crypto/tests/agent.rs index bbe0a7a646..85d2e168c8 100644 --- a/neqo-crypto/tests/agent.rs +++ b/neqo-crypto/tests/agent.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] use std::boxed::Box; diff --git a/neqo-crypto/tests/ext.rs b/neqo-crypto/tests/ext.rs index cb048d7a12..86929d283e 100644 --- a/neqo-crypto/tests/ext.rs +++ b/neqo-crypto/tests/ext.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] use std::{cell::RefCell, rc::Rc}; diff --git a/neqo-crypto/tests/handshake.rs b/neqo-crypto/tests/handshake.rs index 9aa88764c7..28750df1e3 100644 --- a/neqo-crypto/tests/handshake.rs +++ b/neqo-crypto/tests/handshake.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![allow(dead_code)] use std::{mem, time::Instant}; diff --git a/neqo-crypto/tests/hkdf.rs b/neqo-crypto/tests/hkdf.rs index 6dc845e690..f0c8aebe51 100644 --- a/neqo-crypto/tests/hkdf.rs +++ b/neqo-crypto/tests/hkdf.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] use neqo_crypto::{ diff --git a/neqo-crypto/tests/hp.rs b/neqo-crypto/tests/hp.rs index dbfda8a95d..23db2df36e 100644 --- a/neqo-crypto/tests/hp.rs +++ b/neqo-crypto/tests/hp.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] use std::mem; diff --git a/neqo-crypto/tests/init.rs b/neqo-crypto/tests/init.rs index 223580584a..6722a0cf31 100644 --- a/neqo-crypto/tests/init.rs +++ b/neqo-crypto/tests/init.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] // This uses external interfaces to neqo_crypto rather than being a module diff --git a/neqo-crypto/tests/selfencrypt.rs b/neqo-crypto/tests/selfencrypt.rs index 1b145f5420..141d0b9479 100644 --- a/neqo-crypto/tests/selfencrypt.rs +++ b/neqo-crypto/tests/selfencrypt.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![warn(clippy::pedantic)] #![cfg(not(feature = "fuzzing"))] diff --git a/neqo-http3/src/priority.rs b/neqo-http3/src/priority.rs index efd3694003..76a2cb9a85 100644 --- a/neqo-http3/src/priority.rs +++ b/neqo-http3/src/priority.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::fmt; use neqo_transport::StreamId; diff --git a/neqo-http3/src/push_controller.rs b/neqo-http3/src/push_controller.rs index bdba254087..ab6afccdf6 100644 --- a/neqo-http3/src/push_controller.rs +++ b/neqo-http3/src/push_controller.rs @@ -1,3 +1,4 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed diff --git a/neqo-transport/benches/range_tracker.rs b/neqo-transport/benches/range_tracker.rs index 6115542661..c2f78f4874 100644 --- a/neqo-transport/benches/range_tracker.rs +++ b/neqo-transport/benches/range_tracker.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use criterion::{criterion_group, criterion_main, Criterion}; // black_box use neqo_transport::send_stream::RangeTracker; diff --git a/neqo-transport/benches/rx_stream_orderer.rs b/neqo-transport/benches/rx_stream_orderer.rs index 03b401ba06..0a1e763e97 100644 --- a/neqo-transport/benches/rx_stream_orderer.rs +++ b/neqo-transport/benches/rx_stream_orderer.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use criterion::{criterion_group, criterion_main, Criterion}; use neqo_transport::recv_stream::RxStreamOrderer; diff --git a/neqo-transport/benches/transfer.rs b/neqo-transport/benches/transfer.rs index 59f0264a98..444f738f9c 100644 --- a/neqo-transport/benches/transfer.rs +++ b/neqo-transport/benches/transfer.rs @@ -1,3 +1,9 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::time::Duration; use criterion::{criterion_group, criterion_main, BatchSize::SmallInput, Criterion}; diff --git a/neqo-transport/src/cc/tests/mod.rs b/neqo-transport/src/cc/tests/mod.rs index 238a7ad012..879693fb24 100644 --- a/neqo-transport/src/cc/tests/mod.rs +++ b/neqo-transport/src/cc/tests/mod.rs @@ -1,3 +1,4 @@ +// Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed