transaction, moduler: Do not export PAM conv handler function to modules

This function is only needed when using go PAM for creating applications
so it's not something we expect to have exported to library modules.

To prevent this use an `asPamModule` tag to prevent compilation of
application-only features.
This commit is contained in:
Marco Trevisan (Treviño)
2023-11-20 21:09:43 +01:00
parent 4b39bd8e11
commit 05f676c233
4 changed files with 27 additions and 16 deletions

View File

@@ -119,9 +119,9 @@ func main() {
tags = *buildTags
}
var generateTags []string
generateTags := []string{"go_pam_module"}
if len(*moduleBuildTags) > 0 {
generateTags = strings.Split(*moduleBuildTags, ",")
generateTags = append(generateTags, strings.Split(*moduleBuildTags, ",")...)
}
var buildFlags []string