Mercurial > crates > nonstick
diff src/handle.rs @ 144:56b559b7ecea
Big rename: separate concepts of Transaction from Handle.
- An application that uses PAM creates a Transaction.
- The Transaction has a Handle.
Currently, a module still get something called a "handle",
but that's probably going to change soon.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 06 Jul 2025 11:59:26 -0400 |
parents | ebb71a412b58 |
children | 1bc52025156b |
line wrap: on
line diff
--- a/src/handle.rs Sat Jul 05 22:12:46 2025 -0400 +++ b/src/handle.rs Sun Jul 06 11:59:26 2025 -0400 @@ -59,7 +59,7 @@ /// This base trait includes features of a PAM handle that are available /// to both applications and modules. /// -/// You probably want [`LibPamHandle`](crate::libpam::OwnedLibPamHandle). +/// You probably want [`LibPamTransaction`](crate::libpam::LibPamTransaction). /// This trait is intended to allow creating mock PAM handle types /// to test PAM modules and applications. pub trait PamShared { @@ -268,7 +268,7 @@ /// /// Like [`PamShared`], this is intended to allow creating mock implementations /// of PAM for testing PAM applications. -pub trait PamHandleApplication: PamShared { +pub trait Transaction: PamShared { /// Starts the authentication process for the user. /// /// The application calls this to find out who the user is, and verify that