Skip to content

Commit

Permalink
Merge pull request #844 from memorysafety/fix-ci
Browse files Browse the repository at this point in the history
Spring clean-up
  • Loading branch information
squell committed May 10, 2024
2 parents 9e7a4c4 + 76a0a44 commit 94119b0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 470 deletions.
18 changes: 1 addition & 17 deletions src/pam/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@ use super::sys::*;

pub type PamResult<T, E = PamError> = Result<T, E>;

// TODO: add missing doc-comments
#[derive(PartialEq, Eq, Debug)]
pub enum PamErrorType {
/// There was no error running the PAM command
Success,
///
OpenError,
///
SymbolError,
///
ServiceError,
///
SystemError,
///
BufferError,
///
ConversationError,
///
PermissionDenied,
/// The maximum number of authentication attempts was reached and no more
/// attempts should be made.
Expand All @@ -47,27 +41,17 @@ pub enum PamErrorType {
CredentialsError,
/// The user account is expired and can no longer be used.
AccountExpired,
///
AuthTokenExpired,
///
SessionError,
///
AuthTokenError,
///
AuthTokenRecoveryError,
///
AuthTokenLockBusy,
///
AuthTokenDisableAging,
///
NoModuleData,
///
Ignore,
/// The application should exit immediately.
Abort,
///
TryAgain,
///
ModuleUnknown,
/// The application tried to set/delete an undefined or inaccessible item.
BadItem, // Extension in OpenPAM and LinuxPAM
Expand Down
Loading

0 comments on commit 94119b0

Please sign in to comment.