Mercurial > crates > nonstick
comparison src/libpam/answer.rs @ 148:4b3a5095f68c
Move libpam-sys helpers into their own library.
- Renames libpam-sys-helpers to libpam-sys-consts.
- Moves libpam-sys-helpers::helpers into libpam-sys-helpers,
which moves them completely out of libpam-sys's dependency chain.
- Moves the aliases from libpam-sys into libpam-sys::aliases.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 07 Jul 2025 12:11:43 -0400 |
parents | 8f964b701652 |
children |
comparison
equal
deleted
inserted
replaced
147:4d7333337569 | 148:4b3a5095f68c |
---|---|
2 | 2 |
3 use crate::libpam::conversation::OwnedExchange; | 3 use crate::libpam::conversation::OwnedExchange; |
4 use crate::libpam::memory; | 4 use crate::libpam::memory; |
5 use crate::libpam::memory::{CHeapBox, CHeapPayload, CHeapString, Immovable}; | 5 use crate::libpam::memory::{CHeapBox, CHeapPayload, CHeapString, Immovable}; |
6 use crate::{ErrorCode, Result}; | 6 use crate::{ErrorCode, Result}; |
7 use libpam_sys_helpers::memory::BinaryPayload; | 7 use libpam_sys_helpers::BinaryPayload; |
8 use std::ffi::{c_int, c_void, CStr, OsStr}; | 8 use std::ffi::{c_int, c_void, CStr, OsStr}; |
9 use std::mem::ManuallyDrop; | 9 use std::mem::ManuallyDrop; |
10 use std::ops::{Deref, DerefMut}; | 10 use std::ops::{Deref, DerefMut}; |
11 use std::os::unix::ffi::OsStrExt; | 11 use std::os::unix::ffi::OsStrExt; |
12 use std::ptr::NonNull; | 12 use std::ptr::NonNull; |