Changeset 932 in openpam
- Timestamp:
- Apr 26, 2017, 8:41:59 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/security/pam_constants.h
r928 r932 81 81 PAM_BAD_HANDLE = 30, /* OpenPAM extension */ 82 82 PAM_BAD_ITEM = 31, /* OpenPAM extension */ 83 PAM_BAD_FEATURE = 32, /* OpenPAM extension */ 84 PAM_BAD_CONSTANT = 33, /* OpenPAM extension */ 83 85 PAM_NUM_ERRORS /* OpenPAM extension */ 84 86 }; -
trunk/lib/libpam/openpam_constants.c
r931 r932 77 77 [PAM_BAD_HANDLE] = "PAM_BAD_HANDLE", 78 78 [PAM_BAD_ITEM] = "PAM_BAD_ITEM", 79 [PAM_BAD_FEATURE] = "PAM_BAD_FEATURE", 80 [PAM_BAD_CONSTANT] = "PAM_BAD_CONSTANT", 79 81 }; 80 82 … … 112 114 [PAM_BAD_HANDLE] = "Invalid PAM handle", 113 115 [PAM_BAD_ITEM] = "Unrecognized or restricted item", 116 [PAM_BAD_FEATURE] = "Unrecognized or restricted feature", 117 [PAM_BAD_CONSTANT] = "Invalid constant", 114 118 }; 115 119 -
trunk/lib/libpam/openpam_get_feature.c
r648 r932 51 51 ENTERF(feature); 52 52 if (feature < 0 || feature >= OPENPAM_NUM_FEATURES) 53 RETURNC(PAM_ SYMBOL_ERR);53 RETURNC(PAM_BAD_FEATURE); 54 54 *onoff = openpam_features[feature].onoff; 55 55 RETURNC(PAM_SUCCESS); … … 59 59 * Error codes: 60 60 * 61 * PAM_ SYMBOL_ERR61 * PAM_BAD_FEATURE 62 62 */ 63 63 -
trunk/lib/libpam/openpam_set_feature.c
r648 r932 51 51 ENTERF(feature); 52 52 if (feature < 0 || feature >= OPENPAM_NUM_FEATURES) 53 RETURNC(PAM_ SYMBOL_ERR);53 RETURNC(PAM_BAD_FEATURE); 54 54 openpam_features[feature].onoff = onoff; 55 55 RETURNC(PAM_SUCCESS); … … 59 59 * Error codes: 60 60 * 61 * PAM_ SYMBOL_ERR61 * PAM_BAD_FEATURE 62 62 */ 63 63 -
trunk/lib/libpam/pam_authenticate.c
r648 r932 61 61 ENTER(); 62 62 if (flags & ~(PAM_SILENT|PAM_DISALLOW_NULL_AUTHTOK)) 63 RETURNC(PAM_ SYMBOL_ERR);63 RETURNC(PAM_BAD_CONSTANT); 64 64 r = openpam_dispatch(pamh, PAM_SM_AUTHENTICATE, flags); 65 65 pam_set_item(pamh, PAM_AUTHTOK, NULL); … … 73 73 * =pam_sm_authenticate 74 74 * !PAM_IGNORE 75 * PAM_ SYMBOL_ERR75 * PAM_BAD_CONSTANT 76 76 */ 77 77 … … 93 93 * 94 94 * If any other bits are set, =pam_authenticate will return 95 * =PAM_ SYMBOL_ERR.95 * =PAM_BAD_CONSTANT. 96 96 */ -
trunk/lib/libpam/pam_chauthtok.c
r648 r932 61 61 ENTER(); 62 62 if (flags & ~(PAM_SILENT|PAM_CHANGE_EXPIRED_AUTHTOK)) 63 RETURNC(PAM_ SYMBOL_ERR);63 RETURNC(PAM_BAD_CONSTANT); 64 64 r = openpam_dispatch(pamh, PAM_SM_CHAUTHTOK, 65 65 flags | PAM_PRELIM_CHECK); … … 78 78 * =pam_sm_chauthtok 79 79 * !PAM_IGNORE 80 * PAM_ SYMBOL_ERR80 * PAM_BAD_CONSTANT 81 81 */ 82 82 … … 94 94 * Change only those authentication tokens that have expired. 95 95 * 96 * If any other bits are set, =pam_chauthtok will return =PAM_ SYMBOL_ERR.96 * If any other bits are set, =pam_chauthtok will return =PAM_BAD_CONSTANT. 97 97 */ -
trunk/lib/libpam/pam_close_session.c
r648 r932 61 61 ENTER(); 62 62 if (flags & ~(PAM_SILENT)) 63 RETURNC(PAM_ SYMBOL_ERR);63 RETURNC(PAM_BAD_CONSTANT); 64 64 r = openpam_dispatch(pamh, PAM_SM_CLOSE_SESSION, flags); 65 65 RETURNC(r); … … 72 72 * =pam_sm_close_session 73 73 * !PAM_IGNORE 74 * PAM_ SYMBOL_ERR74 * PAM_BAD_CONSTANT 75 75 */ 76 76 … … 86 86 * 87 87 * If any other bits are set, =pam_close_session will return 88 * =PAM_ SYMBOL_ERR.88 * =PAM_BAD_CONSTANT. 89 89 */ -
trunk/lib/libpam/pam_get_authtok.c
r913 r932 105 105 break; 106 106 default: 107 RETURNC(PAM_ SYMBOL_ERR);107 RETURNC(PAM_BAD_CONSTANT); 108 108 } 109 109 if (openpam_get_option(pamh, "try_first_pass") || … … 171 171 * =pam_set_item 172 172 * !PAM_SYMBOL_ERR 173 * PAM_BAD_CONSTANT 173 174 * PAM_TRY_AGAIN 174 175 */ -
trunk/lib/libpam/pam_open_session.c
r648 r932 61 61 ENTER(); 62 62 if (flags & ~(PAM_SILENT)) 63 RETURNC(PAM_ SYMBOL_ERR);63 RETURNC(PAM_BAD_CONSTANT); 64 64 r = openpam_dispatch(pamh, PAM_SM_OPEN_SESSION, flags); 65 65 RETURNC(r); … … 72 72 * =pam_sm_open_session 73 73 * !PAM_IGNORE 74 * PAM_ SYMBOL_ERR74 * PAM_BAD_CONSTANT 75 75 */ 76 76 … … 87 87 * 88 88 * If any other bits are set, =pam_open_session will return 89 * =PAM_ SYMBOL_ERR.89 * =PAM_BAD_CONSTANT. 90 90 */ -
trunk/lib/libpam/pam_setcred.c
r648 r932 62 62 if (flags & ~(PAM_SILENT|PAM_ESTABLISH_CRED|PAM_DELETE_CRED| 63 63 PAM_REINITIALIZE_CRED|PAM_REFRESH_CRED)) 64 RETURNC(PAM_ SYMBOL_ERR);64 RETURNC(PAM_BAD_CONSTANT); 65 65 /* XXX enforce exclusivity */ 66 66 r = openpam_dispatch(pamh, PAM_SM_SETCRED, flags); … … 74 74 * =pam_sm_setcred 75 75 * !PAM_IGNORE 76 * PAM_ SYMBOL_ERR76 * PAM_BAD_CONSTANT 77 77 */ 78 78 … … 96 96 * The latter four are mutually exclusive. 97 97 * 98 * If any other bits are set, =pam_setcred will return =PAM_ SYMBOL_ERR.98 * If any other bits are set, =pam_setcred will return =PAM_BAD_CONSTANT. 99 99 */
Note: See TracChangeset
for help on using the changeset viewer.