comparison src/module.rs @ 48:a921b72743e4 default tip

Upgrade to Rust 2021 edition.
author Paul Fisher <paul@pfish.zone>
date Tue, 15 Apr 2025 01:04:29 -0400
parents ce47901aab7a
children
comparison
equal deleted inserted replaced
47:2c172dd3e3f8 48:a921b72743e4
1 //! Functions for use in pam modules. 1 //! Functions for use in pam modules.
2 2
3 use libc::c_char; 3 use libc::c_char;
4 use std::ffi::{CStr, CString}; 4 use std::ffi::{CStr, CString};
5 5
6 use constants::{PamFlag, PamResultCode}; 6 use crate::constants::{PamFlag, PamResultCode};
7 use items::ItemType; 7 use crate::items::ItemType;
8 8
9 /// Opaque type, used as a pointer when making pam API calls. 9 /// Opaque type, used as a pointer when making pam API calls.
10 /// 10 ///
11 /// A module is invoked via an external function such as `pam_sm_authenticate`. 11 /// A module is invoked via an external function such as `pam_sm_authenticate`.
12 /// Such a call provides a pam handle pointer. The same pointer should be given 12 /// Such a call provides a pam handle pointer. The same pointer should be given