path: root/libpam
diff options
authorTomas Mraz <>2005-09-20 13:13:54 +0000
committerTomas Mraz <>2005-09-20 13:13:54 +0000
commit3c830a3511a4188cba1d75ffbab60b0834840ebf (patch)
treec0a38a64f51c0b9e7f1b395e0e642bb105de60dd /libpam
parentbff92a9c54d6605ea59fecbea882811ab0d238c2 (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- Revert de-constification of pam_get_data and pam_get_item prototypes
Diffstat (limited to 'libpam')
4 files changed, 4 insertions, 4 deletions
diff --git a/libpam/include/security/_pam_types.h b/libpam/include/security/_pam_types.h
index c866eb62..6815b459 100644
--- a/libpam/include/security/_pam_types.h
+++ b/libpam/include/security/_pam_types.h
@@ -172,7 +172,7 @@ extern int PAM_NONNULL((1))
pam_set_item(pam_handle_t *pamh, int item_type, const void *item);
extern int PAM_NONNULL((1,3))
-pam_get_item(pam_handle_t *pamh, int item_type, const void **item);
+pam_get_item(const pam_handle_t *pamh, int item_type, const void **item);
extern const char *
pam_strerror(pam_handle_t *pamh, int errnum);
diff --git a/libpam/include/security/pam_modules.h b/libpam/include/security/pam_modules.h
index 7f75f9dc..c315ac26 100644
--- a/libpam/include/security/pam_modules.h
+++ b/libpam/include/security/pam_modules.h
@@ -18,7 +18,7 @@ pam_set_data(pam_handle_t *pamh, const char *module_data_name, void *data,
int error_status));
extern int PAM_NONNULL((1,2,3))
-pam_get_data(pam_handle_t *pamh, const char *module_data_name,
+pam_get_data(const pam_handle_t *pamh, const char *module_data_name,
const void **data);
extern int PAM_NONNULL((1,2))
diff --git a/libpam/pam_data.c b/libpam/pam_data.c
index a3d73c44..28b3680d 100644
--- a/libpam/pam_data.c
+++ b/libpam/pam_data.c
@@ -79,7 +79,7 @@ int pam_set_data(
int pam_get_data(
- pam_handle_t *pamh,
+ const pam_handle_t *pamh,
const char *module_data_name,
const void **datap)
diff --git a/libpam/pam_item.c b/libpam/pam_item.c
index fee5bbb6..105a9de7 100644
--- a/libpam/pam_item.c
+++ b/libpam/pam_item.c
@@ -145,7 +145,7 @@ int pam_set_item (pam_handle_t *pamh, int item_type, const void *item)
return retval;
-int pam_get_item (pam_handle_t *pamh, int item_type, const void **item)
+int pam_get_item (const pam_handle_t *pamh, int item_type, const void **item)
int retval = PAM_SUCCESS;