path: root/libpam/include/security/pam_modules.h
diff options
authorTomas Mraz <>2005-09-19 15:58:28 +0000
committerTomas Mraz <>2005-09-19 15:58:28 +0000
commit37d83de50414fdaaa6214a997d2ffa27c687d371 (patch)
tree0c20b3892d643f607305ec3195c92872bd271318 /libpam/include/security/pam_modules.h
parent437861460715738407cb012e2a415db86394a530 (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- Added PAM_NONNULL attributes to some public API (by ldv) Removed const qualifiers from pam_get_item, pam_get_data to comply with spec
Diffstat (limited to 'libpam/include/security/pam_modules.h')
1 files changed, 11 insertions, 9 deletions
diff --git a/libpam/include/security/pam_modules.h b/libpam/include/security/pam_modules.h
index f174e316..7f75f9dc 100644
--- a/libpam/include/security/pam_modules.h
+++ b/libpam/include/security/pam_modules.h
@@ -12,15 +12,17 @@
/* -------------- The Linux-PAM Module PI ------------- */
-extern int pam_set_data(pam_handle_t *pamh, const char *module_data_name,
- void *data,
- void (*cleanup)(pam_handle_t *pamh, void *data,
- int error_status));
-extern int pam_get_data(const pam_handle_t *pamh,
- const char *module_data_name, const void **data);
-extern int pam_get_user(pam_handle_t *pamh, const char **user
- , const char *prompt);
+extern int PAM_NONNULL((1,2))
+pam_set_data(pam_handle_t *pamh, const char *module_data_name, void *data,
+ void (*cleanup)(pam_handle_t *pamh, void *data,
+ int error_status));
+extern int PAM_NONNULL((1,2,3))
+pam_get_data(pam_handle_t *pamh, const char *module_data_name,
+ const void **data);
+extern int PAM_NONNULL((1,2))
+pam_get_user(pam_handle_t *pamh, const char **user, const char *prompt);