Skip to content

Commit

Permalink
chore: Add the missing license blurb where it was missing (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Mar 3, 2024
1 parent a2d525b commit e826698
Show file tree
Hide file tree
Showing 15 changed files with 80 additions and 0 deletions.
6 changes: 6 additions & 0 deletions neqo-common/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::env;

fn main() {
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/aead.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![warn(clippy::pedantic)]
#![cfg(not(feature = "fuzzing"))]

Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/agent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![warn(clippy::pedantic)]

use std::boxed::Box;
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/ext.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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};
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/handshake.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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};
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/hkdf.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![warn(clippy::pedantic)]

use neqo_crypto::{
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/hp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![warn(clippy::pedantic)]

use std::mem;
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/init.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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
Expand Down
6 changes: 6 additions & 0 deletions neqo-crypto/tests/selfencrypt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![warn(clippy::pedantic)]
#![cfg(not(feature = "fuzzing"))]

Expand Down
6 changes: 6 additions & 0 deletions neqo-http3/src/priority.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;

use neqo_transport::StreamId;
Expand Down
1 change: 1 addition & 0 deletions neqo-http3/src/push_controller.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
Expand Down
6 changes: 6 additions & 0 deletions neqo-transport/benches/range_tracker.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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;

Expand Down
6 changes: 6 additions & 0 deletions neqo-transport/benches/rx_stream_orderer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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;

Expand Down
6 changes: 6 additions & 0 deletions neqo-transport/benches/transfer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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};
Expand Down
1 change: 1 addition & 0 deletions neqo-transport/src/cc/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
Expand Down

0 comments on commit e826698

Please sign in to comment.