comparison pam/src/items.rs @ 15:27730595f1ea

Adding pam-http module
author Anthony Nowell <anthony@algorithmia.com>
date Sun, 24 Sep 2017 00:22:29 -0600
parents
children ec70822cbdef
comparison
equal deleted inserted replaced
14:51b097c12d3c 15:27730595f1ea
1 use constants::{PamItemType, PAM_SERVICE, PAM_USER, PAM_USER_PROMPT, PAM_TTY, PAM_RUSER, PAM_RHOST,
2 PAM_AUTHTOK, PAM_OLDAUTHTOK};
3 use module::PamItem;
4 pub use conv::PamConv;
5
6
7 pub struct PamService {}
8
9 impl PamItem for PamService {
10 fn item_type() -> PamItemType {
11 PAM_SERVICE
12 }
13 }
14
15 pub struct PamUser {}
16
17 impl PamItem for PamUser {
18 fn item_type() -> PamItemType {
19 PAM_USER
20 }
21 }
22
23 pub struct PamUserPrompt {}
24
25 impl PamItem for PamUserPrompt {
26 fn item_type() -> PamItemType {
27 PAM_USER_PROMPT
28 }
29 }
30
31 pub struct PamTty {}
32
33 impl PamItem for PamTty {
34 fn item_type() -> PamItemType {
35 PAM_TTY
36 }
37 }
38
39 pub struct PamRUser {}
40
41 impl PamItem for PamRUser {
42 fn item_type() -> PamItemType {
43 PAM_RUSER
44 }
45 }
46
47 pub struct PamRHost {}
48
49 impl PamItem for PamRHost {
50 fn item_type() -> PamItemType {
51 PAM_RHOST
52 }
53 }
54
55 pub struct PamAuthTok {}
56
57 impl PamItem for PamAuthTok {
58 fn item_type() -> PamItemType {
59 PAM_AUTHTOK
60 }
61 }
62
63 pub struct PamOldAuthTok {}
64
65 impl PamItem for PamOldAuthTok {
66 fn item_type() -> PamItemType {
67 PAM_OLDAUTHTOK
68 }
69 }