comparison src/libpam/pam_ffi.rs @ 103:dfcd96a74ac4

write a truly prodigious amount of documentation adds a bunch of links to the OpenPAM man pages and the XSSO spec as well as just a bunch of prose and stuff.
author Paul Fisher <paul@pfish.zone>
date Wed, 25 Jun 2025 00:59:24 -0400
parents 94eb11cb1798
children
comparison
equal deleted inserted replaced
102:94eb11cb1798 103:dfcd96a74ac4
27 /// and [`TextAnswer`](crate::libpam::answer::TextAnswer). 27 /// and [`TextAnswer`](crate::libpam::answer::TextAnswer).
28 #[repr(C)] 28 #[repr(C)]
29 #[derive(Debug, Default)] 29 #[derive(Debug, Default)]
30 pub struct Answer { 30 pub struct Answer {
31 /// Owned pointer to the data returned in an answer. 31 /// Owned pointer to the data returned in an answer.
32 /// For most answers, this will be a [`CHeapString`], 32 /// For most answers, this will be a
33 /// [`CHeapString`](crate::libpam::memory::CHeapString),
33 /// but for [`BinaryQAndA`](crate::conv::BinaryQAndA)s 34 /// but for [`BinaryQAndA`](crate::conv::BinaryQAndA)s
34 /// (a Linux-PAM extension), this will be a [`CHeapBox`] of 35 /// (a Linux-PAM extension), this will be a [`CHeapBox`] of
35 /// [`CBinaryData`](crate::libpam::memory::CBinaryData). 36 /// [`CBinaryData`](crate::libpam::memory::CBinaryData).
36 pub data: Option<CHeapBox<c_void>>, 37 pub data: Option<CHeapBox<c_void>>,
37 /// Unused. Just here for the padding. 38 /// Unused. Just here for the padding.