comparison src/constants.rs @ 146:1bc52025156b

Split PAM items into their own separate struct. To trim down the number of methods on `PamShared`, this puts all the Items into their own struct(s). This also makes the split between authtok/authtok_item easier to understand.
author Paul Fisher <paul@pfish.zone>
date Sun, 06 Jul 2025 19:10:26 -0400
parents 33b9622ed6d2
children 4b3a5095f68c
comparison
equal deleted inserted replaced
145:8f964b701652 146:1bc52025156b
1 //! Constants and enum values from the PAM library. 1 //! Constants and enum values from the PAM library.
2 2
3 use crate::{linklist, man7, manbsd, xsso}; 3 use crate::_doc::{linklist, man7, manbsd, xsso};
4 use bitflags::bitflags; 4 use bitflags::bitflags;
5 use num_enum::{IntoPrimitive, TryFromPrimitive}; 5 use num_enum::{IntoPrimitive, TryFromPrimitive};
6 use std::error::Error; 6 use std::error::Error;
7 use std::ffi::c_int; 7 use std::ffi::c_int;
8 use std::fmt; 8 use std::fmt;