Commit Graph

7 Commits

Author SHA1 Message Date
Michael Steinert
df9e70a6d7 Format transaction.c with clang-format
To improve readability and encourage consistency in PRs.
2023-09-21 08:23:39 -05:00
Marco Trevisan (Treviño)
78ffef4acd transaction: Use cgo.Handle to pass callback data to PAM
Go provides a nicer way to handle Go structs lifetime when they
are passed to C now, so use this instead of a custom
implementation that requires to store them in a map
2023-09-19 20:06:38 +02:00
Didier Roche
bc958bdbd7 Allow to define confdir
PAM has a pam_start_confdir() which allows to define the configuration
directory where all services are located.
This is useful to define your own service on tests in particular, so
that you can control your stack and be independant of the host when
running them.
Allow defining this configuration directory, with a new StartConfDir
function.
Also, allow pre-checking for the API availability with
CheckPamHasStartConfdir().
2022-09-16 08:09:26 +02:00
Andrew Stormont
b29ac23417 Fix build on Solaris 2020-08-10 21:32:58 +01:00
Michael Steinert
8ec1202046 Stop passing Go pointers to C 2015-12-03 14:59:51 -06:00
Michael Steinert
df889e55a6 Security fixes for conversation handler 2015-03-31 12:19:55 -05:00
Michael Steinert
d67bb86e54 Update interface 2015-03-28 17:00:58 -05:00