Mike Steinert
Mike Steinert
I think the solution for this and #30 is to create platform-specific definitions using the `//go:build` tag (same for any platform-specific tests). Ideally we would then have CI jobs that...
@3v1n0 It looks like the error definitions diverge between implementations: LInux-PAM: https://github.com/linux-pam/linux-pam/blob/master/libpam/include/security/_pam_types.h#L76-L91 OpenPAM: https://git.des.dev/OpenPAM/OpenPAM/src/branch/main/include/security/pam_constants.h#L78-L83
It also appears that there is no support for `pam_start_confdir` in OpenPAM.
I threw together a quick PR to get this build and run the test suite on my MacBook: https://github.com/msteinert/pam/pull/31 I don't have time to spin up a FreeBSD VM right...