diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2017-04-15 14:41:32 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2017-04-17 15:06:59 +0200 |
commit | 68fc2e8b5f8bcd203598e6da2a98d5aa7359af1e (patch) | |
tree | 513909183e7b174b06f5bc2b2e66230b23dd4e4f /unlock_indicator.h | |
parent | 15973d1f5225ee4fc0114d70a24a695486f482d4 (diff) |
Use bsd_auth(3) instead of PAM on OpenBSD
Also apply two security measures for OpenBSD:
- use explicit_bzero(3)
- mlock(2) works for non-root users too
Diffstat (limited to 'unlock_indicator.h')
-rw-r--r-- | unlock_indicator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unlock_indicator.h b/unlock_indicator.h index e4a8d8e..2321620 100644 --- a/unlock_indicator.h +++ b/unlock_indicator.h @@ -11,10 +11,10 @@ typedef enum { } unlock_state_t; typedef enum { - STATE_AUTH_IDLE = 0, /* no authenticator interaction at the moment */ - STATE_AUTH_VERIFY = 1, /* currently verifying the password via authenticator */ - STATE_AUTH_LOCK = 2, /* currently locking the screen */ - STATE_AUTH_WRONG = 3, /* the password was wrong */ + STATE_AUTH_IDLE = 0, /* no authenticator interaction at the moment */ + STATE_AUTH_VERIFY = 1, /* currently verifying the password via authenticator */ + STATE_AUTH_LOCK = 2, /* currently locking the screen */ + STATE_AUTH_WRONG = 3, /* the password was wrong */ STATE_I3LOCK_LOCK_FAILED = 4 /* i3lock failed to load */ } auth_state_t; |