Commit Graph

2 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
7a073f5ba0 module-transaction: Add support for setting/getting module data
Module data is data associated with a module handle that is available
for the whole module loading time so it can be used also during
different operations.

We use cgo handles to preserve the life of the go objects so any value
can be associated with a pam transaction.
2023-12-14 22:07:50 +01:00
Marco Trevisan (Treviño)
4b39bd8e11 transaction: Define C functions as unexported static inlines
This will make it easier to avoid exporting unexpected symbols to the
generated PAM libraries.

Also it makes less messy handling C code inside go files.
2023-12-14 22:07:50 +01:00