Mercurial > crates > nonstick
comparison src/libpam/pam_ffi.rs @ 81:a8f4718fed5d
When dynamically linking against the wrong PAM, fail.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 10 Jun 2025 01:16:39 -0400 |
parents | 5aa1a010f1e8 |
children | 05291b601f0a |
comparison
equal
deleted
inserted
replaced
80:5aa1a010f1e8 | 81:a8f4718fed5d |
---|---|
1 //! The types that are directly represented in PAM function signatures. | 1 //! The types that are directly represented in PAM function signatures. |
2 | 2 |
3 #![allow(non_camel_case_types)] | 3 #![allow(non_camel_case_types)] |
4 | 4 |
5 use crate::libpam::memory::Immovable; | 5 use crate::libpam::memory::Immovable; |
6 use num_enum::{IntoPrimitive, TryFromPrimitive}; | |
6 use std::ffi::{c_int, c_void}; | 7 use std::ffi::{c_int, c_void}; |
7 use std::marker::PhantomData; | 8 use std::marker::PhantomData; |
8 use num_enum::{IntoPrimitive, TryFromPrimitive}; | |
9 | 9 |
10 /// An opaque structure that a PAM handle points to. | 10 /// An opaque structure that a PAM handle points to. |
11 #[repr(C)] | 11 #[repr(C)] |
12 pub struct LibPamHandle { | 12 pub struct LibPamHandle { |
13 _data: (), | 13 _data: (), |