aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
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/
Diffstat (limited to 'src')
-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
8 files changed, 24 insertions, 0 deletions
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};