aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/lib.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-07-02 00:02:22 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-07-02 00:02:22 +0200
commit99ff8f0ebae37069de690936f79c4d599851f952 (patch)
tree06d33db20cdd065e74334fef20096806a5b4f5d9 /lockchain-core/src/lib.rs
parentd99d8bb4d9fb695f15256a8fe9a85136959e556b (diff)
Big code change & refactoring commit
Move `token` into user module for lockchain-core. Start work on a PAM authentication module which replaces the second layer UserStore in API layer state (http being the only one for now). This brings the `nix` and `pam-auth` dependencies, which unfortunately currently don't work :(
Diffstat (limited to 'lockchain-core/src/lib.rs')
-rw-r--r--lockchain-core/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/lockchain-core/src/lib.rs b/lockchain-core/src/lib.rs
index 465f145..2c5b0d7 100644
--- a/lockchain-core/src/lib.rs
+++ b/lockchain-core/src/lib.rs
@@ -1,7 +1,6 @@
//! Common library types used in lockchain crates
#![feature(external_doc)]
#![doc(include = "../README.md")]
-#![feature(non_modrs_mods)]
#[macro_use]
extern crate serde_derive;
@@ -13,6 +12,8 @@ extern crate base64;
extern crate blake2;
extern crate rand;
extern crate keybob;
+extern crate nix;
+extern crate pam_auth;
pub mod errors;
pub mod traits;
@@ -20,7 +21,9 @@ pub mod crypto;
pub mod users;
mod meta;
mod record;
+mod auth;
pub use self::crypto::PackedData;
pub use self::record::{Header, Payload, Record, EncryptedBody};
pub use self::meta::{MetaDomain, VaultMetadata};
+pub use self::auth::pam_authenticate; \ No newline at end of file