Mercurial > crates > nonstick
diff src/libpam/conversation.rs @ 171:e27c5c667a5a
Create full new types for return code and flags, separate end to end.
This plumbs the ReturnCode and RawFlags types through the places where
we call into or are called from PAM.
Also adds Sun documentation to the project.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Fri, 25 Jul 2025 20:52:14 -0400 |
parents | a75a66cb4181 |
children | 6727cbe56f4a |
line wrap: on
line diff
--- a/src/libpam/conversation.rs Wed Jul 16 18:45:20 2025 -0400 +++ b/src/libpam/conversation.rs Fri Jul 25 20:52:14 2025 -0400 @@ -11,6 +11,7 @@ use std::iter; use std::ptr::NonNull; use std::result::Result as StdResult; +use crate::constants::ReturnCode; /// The type used by PAM to call back into a conversation. /// @@ -64,7 +65,7 @@ *answers_ptr = owned.into_ptr(); Ok(()) }; - ErrorCode::result_to_c(internal()) + ReturnCode::from(internal()).into() } }