summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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};