summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2002-03-06 16:49:02 +0000
committerroam <roam@FreeBSD.org>2002-03-06 16:49:02 +0000
commitdc23c1a5c55530e06e6046fbb91bdabed49c9dfc (patch)
treefae3253c7fca65d8132389e4f2b29468b2f9bf66 /lib/libpam
parent8096f018ff4f9438d3a8d90a4f9f180dbeb6a96b (diff)
downloadFreeBSD-src-dc23c1a5c55530e06e6046fbb91bdabed49c9dfc.zip
FreeBSD-src-dc23c1a5c55530e06e6046fbb91bdabed49c9dfc.tar.gz
Unbreak the pam_krb5 build: cast a couple of const pointers
to normal char *. A better fix might be some const'ifying of the Heimdal code, but this will do to fix the build for the present. Approved by: des
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_krb5/pam_krb5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_krb5/pam_krb5.c b/lib/libpam/modules/pam_krb5/pam_krb5.c
index 2e0a44d..2c54448 100644
--- a/lib/libpam/modules/pam_krb5/pam_krb5.c
+++ b/lib/libpam/modules/pam_krb5/pam_krb5.c
@@ -420,7 +420,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, int argc, const char
PAM_LOG("Credentials stashed");
/* Verify them */
- if (verify_krb_v5_tgt(pam_context, ccache, service,
+ if (verify_krb_v5_tgt(pam_context, ccache, (char *)service,
pam_test_option(&options, PAM_OPT_FORWARDABLE, NULL)) == -1) {
PAM_VERBOSE_ERROR("Kerberos 5 error");
krb5_cc_destroy(pam_context, ccache);
@@ -895,7 +895,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv)
PAM_LOG("New passwords are the same");
/* Change it */
- krbret = krb5_change_password(pam_context, &creds, pass,
+ krbret = krb5_change_password(pam_context, &creds, (char *)pass,
&result_code, &result_code_string, &result_string);
if (krbret != 0) {
PAM_LOG("Error krb5_change_password(): %s",
OpenPOWER on IntegriCloud