Skip to content
Snippets Groups Projects
Verified Commit 80b266d4 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Expose PAM module API

parent 99db2003
No related branches found
No related tags found
No related merge requests found
#[macro_use] extern crate pamsm;
mod config;
mod pam;
......@@ -34,7 +34,6 @@ use oauth2::basic::{
};
use oauth2::reqwest::http_client;
extern crate pamsm;
use pamsm::{PamServiceModule, Pam, PamFlag, PamError, PamLibExt};
fn get_or_pam_error(config: &Config, key: &str) -> Result<String, PamError> {
......@@ -104,3 +103,5 @@ impl PamServiceModule for PamOidc {
return PamError::SERVICE_ERR;
}
}
pam_module!(PamOidc);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment