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
This commit is contained in:
roam 2002-03-06 16:49:02 +00:00
parent 8096f018ff
commit dc23c1a5c5

View File

@ -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",