looking at the fixing commit[1]... does libpam not have unit tests..?
[1]: https://github.com/linux-pam/linux-pam/commit/af0faf666c5008...
[1]: https://github.com/linux-pam/linux-pam/commit/af0faf666c5008...
Searching around, the best I can find is one 0.1 crate that hasn't seen activity since 2017: