Define constants in one place
Do not use NSS error codes internally
Pass NULL instead of unhandled json_error_t*
Prefix all static global variables with g_
Encapsulate internal state into struct ctx
Handle init_json() errors
Return NSS_STATUS_NOTFOUND when all is read
Make _nss_puavoadmins_getpwuid_r() re-entrant
Make _nss_puavoadmins_getpwnam_r() re-entrant
Make group database interface functions reentrant
Use common context objects instead of separate global jsons
Separate group and passwd database functionality
Group password hides in shadows
Remove useless _nss-prefixed function declarations
Make local pointer variable constant
Rename ctx -> orgjson
Add header files to compilation prerequisites
Add type alias
Remove commented code