comparison src/constants.rs @ 9:2abd89f31a13

Make comments actually show up in rust doc in constants module.
author Marc Brinkmann <git@marcbrinkmann.de>
date Sun, 26 Feb 2017 11:32:08 +0100
parents a83c56216e21
children 51b097c12d3c
comparison
equal deleted inserted replaced
8:a83c56216e21 9:2abd89f31a13
18 pub const PAM_REFRESH_CRED: PamFlag = 0x0010; 18 pub const PAM_REFRESH_CRED: PamFlag = 0x0010;
19 pub const PAM_CHANGE_EXPIRED_AUTHTOK: PamFlag = 0x0020; 19 pub const PAM_CHANGE_EXPIRED_AUTHTOK: PamFlag = 0x0020;
20 20
21 // The Linux-PAM item types 21 // The Linux-PAM item types
22 // see /usr/include/security/_pam_types.h 22 // see /usr/include/security/_pam_types.h
23 pub const PAM_SERVICE: PamItemType = 1; /* The service name */ 23 /// The service name
24 pub const PAM_USER: PamItemType = 2; /* The user name */ 24 pub const PAM_SERVICE: PamItemType = 1;
25 pub const PAM_TTY: PamItemType = 3; /* The tty name */ 25 /// The user name
26 pub const PAM_RHOST: PamItemType = 4; /* The remote host name */ 26 pub const PAM_USER: PamItemType = 2;
27 pub const PAM_CONV: PamItemType = 5; /* The pam_conv structure */ 27 /// The tty name
28 pub const PAM_AUTHTOK: PamItemType = 6; /* The authentication token (password) */ 28 pub const PAM_TTY: PamItemType = 3;
29 pub const PAM_OLDAUTHTOK: PamItemType = 7; /* The old authentication token */ 29 /// The remote host name
30 pub const PAM_RUSER: PamItemType = 8; /* The remote user name */ 30 pub const PAM_RHOST: PamItemType = 4;
31 pub const PAM_USER_PROMPT: PamItemType = 9; /* the prompt for getting a username */ 31 /// The pam_conv structure
32 pub const PAM_CONV: PamItemType = 5;
33 /// The authentication token (password)
34 pub const PAM_AUTHTOK: PamItemType = 6;
35 /// The old authentication token
36 pub const PAM_OLDAUTHTOK: PamItemType = 7;
37 /// The remote user name
38 pub const PAM_RUSER: PamItemType = 8;
39 /// the prompt for getting a username
40 pub const PAM_USER_PROMPT: PamItemType = 9;
32 /* Linux-PAM :extensionsPamItemType = */ 41 /* Linux-PAM :extensionsPamItemType = */
33 pub const PAM_FAIL_DELAY: PamItemType = 10; /* app supplied function to override failure delays */ 42 /// app supplied function to override failure delays
34 pub const PAM_XDISPLAY: PamItemType = 11; /* X :display name */ 43 pub const PAM_FAIL_DELAY: PamItemType = 10;
35 pub const PAM_XAUTHDATA: PamItemType = 12; /* X :server authentication data */ 44 /// X :display name
36 pub const PAM_AUTHTOK_TYPE: PamItemType = 13; /* The type for pam_get_authtok */ 45 pub const PAM_XDISPLAY: PamItemType = 11;
46 /// X :server authentication data
47 pub const PAM_XAUTHDATA: PamItemType = 12;
48 /// The type for pam_get_authtok
49 pub const PAM_AUTHTOK_TYPE: PamItemType = 13;
37 50
38 // Message styles 51 // Message styles
39 pub const PAM_PROMPT_ECHO_OFF: PamMessageStyle = 1; 52 pub const PAM_PROMPT_ECHO_OFF: PamMessageStyle = 1;
40 pub const PAM_PROMPT_ECHO_ON: PamMessageStyle = 2; 53 pub const PAM_PROMPT_ECHO_ON: PamMessageStyle = 2;
41 pub const PAM_ERROR_MSG: PamMessageStyle = 3; 54 pub const PAM_ERROR_MSG: PamMessageStyle = 3;
42 pub const PAM_TEXT_INFO: PamMessageStyle = 4; 55 pub const PAM_TEXT_INFO: PamMessageStyle = 4;
43 pub const PAM_RADIO_TYPE: PamMessageStyle = 5; /* yes/no/maybe conditionals */ 56 /// yes/no/maybe conditionals
57 pub const PAM_RADIO_TYPE: PamMessageStyle = 5;
44 pub const PAM_BINARY_PROMPT: PamMessageStyle = 7; 58 pub const PAM_BINARY_PROMPT: PamMessageStyle = 7;
45 59
46 // The Linux-PAM return values 60 // The Linux-PAM return values
47 // see /usr/include/security/_pam_types.h 61 // see /usr/include/security/_pam_types.h
48 pub const PAM_SUCCESS: PamResultCode = 0; 62 pub const PAM_SUCCESS: PamResultCode = 0;