aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-23 16:33:26 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-01-23 16:33:26 +0100
commitfdb7bac3063e62776bfc13f184cf786da19f42d1 (patch)
tree3ae67b81e7f0a0c64b3551bf0234ec9429a06b42
parent35fd6be074cd16796f701770845ade471e2c13bd (diff)
downloadnitrokey-rs-fdb7bac3063e62776bfc13f184cf786da19f42d1.tar.gz
nitrokey-rs-fdb7bac3063e62776bfc13f184cf786da19f42d1.tar.bz2
Add license and copyright information
This patch adds license and copyright information to all files to make nitrokey-rs compliant with the REUSE practices [0]. [0] https://reuse.software/practices/2.0/
-rw-r--r--.builds/archlinux-use-system-lib.yaml2
-rw-r--r--.builds/archlinux.yml2
-rw-r--r--CHANGELOG.md5
-rw-r--r--Cargo.toml3
-rw-r--r--LICENSE3
-rw-r--r--README.md8
-rw-r--r--TODO.md5
-rw-r--r--src/auth.rs3
-rw-r--r--src/config.rs3
-rw-r--r--src/device.rs3
-rw-r--r--src/error.rs3
-rw-r--r--src/lib.rs3
-rw-r--r--src/otp.rs3
-rw-r--r--src/pws.rs3
-rw-r--r--src/util.rs3
-rw-r--r--tests/device.rs3
-rw-r--r--tests/lib.rs3
-rw-r--r--tests/otp.rs3
-rw-r--r--tests/pws.rs3
-rw-r--r--tests/util/mod.rs3
20 files changed, 67 insertions, 0 deletions
diff --git a/.builds/archlinux-use-system-lib.yaml b/.builds/archlinux-use-system-lib.yaml
index 6fba33a..13f7581 100644
--- a/.builds/archlinux-use-system-lib.yaml
+++ b/.builds/archlinux-use-system-lib.yaml
@@ -1,3 +1,5 @@
+# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+# SPDX-License-Identifier: MIT
image: archlinux
packages:
- rust
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml
index 9d45386..7dab954 100644
--- a/.builds/archlinux.yml
+++ b/.builds/archlinux.yml
@@ -1,3 +1,5 @@
+# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+# SPDX-License-Identifier: MIT
image: archlinux
packages:
- rust
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c28c228..49ff8fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+<!---
+Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+SPDX-License-Identifier: MIT
+-->
+
# Unreleased
- Remove the `test-pro` and `test-storage` features.
- Implement `Display` for `Version`.
diff --git a/Cargo.toml b/Cargo.toml
index ceaa57d..696adfd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,3 +1,6 @@
+# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+# SPDX-License-Identifier: MIT
+
[package]
name = "nitrokey"
version = "0.3.4"
diff --git a/LICENSE b/LICENSE
index 1a3601d..6c67cd5 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,3 +1,6 @@
+Valid-License-Identifier: MIT
+License-Text:
+
The MIT License (MIT)
Copyright (c) 2018 Robin Krahl <robin.krahl@ireas.org>
diff --git a/README.md b/README.md
index 0819c9d..8e1d98e 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,8 @@
+<!---
+Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+SPDX-License-Identifier: MIT
+-->
+
# nitrokey-rs
A libnitrokey wrapper for Rust providing access to Nitrokey devices.
@@ -73,6 +78,8 @@ mail to [nitrokey-rs-dev@ireas.org][].
This project is licensed under the [MIT License][]. `libnitrokey` is licensed
under the [LGPL-3.0][].
+`nitrokey-rs` complies with [version 2.0 of the REUSE practices][reuse].
+
[Documentation]: https://docs.rs/nitrokey
[Nitrokey udev rules]: https://www.nitrokey.com/documentation/frequently-asked-questions-faq#openpgp-card-not-available
[`libnitrokey`]: https://github.com/nitrokey/libnitrokey
@@ -81,3 +88,4 @@ under the [LGPL-3.0][].
[pull request #114]: https://github.com/Nitrokey/libnitrokey/pull/114
[MIT license]: https://opensource.org/licenses/MIT
[LGPL-3.0]: https://opensource.org/licenses/lgpl-3.0.html
+[reuse]: https://reuse.software/practices/2.0/
diff --git a/TODO.md b/TODO.md
index d3f0018..db45bb5 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,3 +1,8 @@
+<!---
+Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+SPDX-License-Identifier: MIT
+-->
+
- Add support for the currently unsupported commands:
- `NK_send_startup`
- `NK_fill_SD_card_with_random_data`
diff --git a/src/auth.rs b/src/auth.rs
index b97bee6..18b6572 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use std::ops::Deref;
use std::os::raw::c_char;
use std::os::raw::c_int;
diff --git a/src/config.rs b/src/config.rs
index 329f7a6..c273792 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use crate::error::{Error, LibraryError};
/// The configuration for a Nitrokey.
diff --git a/src/device.rs b/src/device.rs
index ad75a44..c4af8a8 100644
--- a/src/device.rs
+++ b/src/device.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use std::fmt;
use std::marker;
diff --git a/src/error.rs b/src/error.rs
index 551dd0f..9cdb932 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use std::error;
use std::fmt;
use std::os::raw;
diff --git a/src/lib.rs b/src/lib.rs
index a1edb6b..9d15d03 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
//! Provides access to a Nitrokey device using the native libnitrokey API.
//!
//! # Usage
diff --git a/src/otp.rs b/src/otp.rs
index 430b127..6e0379b 100644
--- a/src/otp.rs
+++ b/src/otp.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use std::ffi::CString;
use nitrokey_sys;
diff --git a/src/pws.rs b/src/pws.rs
index c89b73f..fcf057b 100644
--- a/src/pws.rs
+++ b/src/pws.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use libc;
use nitrokey_sys;
diff --git a/src/util.rs b/src/util.rs
index 64dde39..5f25655 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
use std::ffi::{CStr, CString};
use std::os::raw::{c_char, c_int};
diff --git a/tests/device.rs b/tests/device.rs
index 59c9348..c790049 100644
--- a/tests/device.rs
+++ b/tests/device.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
mod util;
use std::ffi::CStr;
diff --git a/tests/lib.rs b/tests/lib.rs
index d298048..697024d 100644
--- a/tests/lib.rs
+++ b/tests/lib.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
#[test]
fn get_library_version() {
let version = nitrokey::get_library_version().unwrap();
diff --git a/tests/otp.rs b/tests/otp.rs
index 96da371..fb20768 100644
--- a/tests/otp.rs
+++ b/tests/otp.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
mod util;
use std::fmt::Debug;
diff --git a/tests/pws.rs b/tests/pws.rs
index 8bdf532..df99e1c 100644
--- a/tests/pws.rs
+++ b/tests/pws.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
mod util;
use std::ffi::CStr;
diff --git a/tests/util/mod.rs b/tests/util/mod.rs
index 4a00a66..49ec13e 100644
--- a/tests/util/mod.rs
+++ b/tests/util/mod.rs
@@ -1,3 +1,6 @@
+// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
+// SPDX-License-Identifier: MIT
+
pub static ADMIN_PASSWORD: &str = "12345678";
pub static USER_PASSWORD: &str = "123456";