summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-04-05 11:26:59 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-04-07 17:46:10 +0200
commitd2ea839a907ba6ee1fe44027d67b11b02593fc99 (patch)
tree1ef5fe253d2abd2ee35b5970ff952d653e2d715c /src/providers/krb5
parent5a4f23a51406af7dcd08e2fb50538292f622e26b (diff)
downloadsssd-d2ea839a907ba6ee1fe44027d67b11b02593fc99.tar.gz
sssd-d2ea839a907ba6ee1fe44027d67b11b02593fc99.tar.xz
sssd-d2ea839a907ba6ee1fe44027d67b11b02593fc99.zip
krb5_child: Remove unused krb5_context from set_changepw_options
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_child.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 22264e484..c243d063b 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -131,8 +131,7 @@ static void set_canonicalize_option(krb5_get_init_creds_opt *opts)
sss_krb5_get_init_creds_opt_set_canonicalize(opts, canonicalize);
}
-static void set_changepw_options(krb5_context ctx,
- krb5_get_init_creds_opt *options)
+static void set_changepw_options(krb5_get_init_creds_opt *options)
{
sss_krb5_get_init_creds_opt_set_canonicalize(options, 0);
krb5_get_init_creds_opt_set_forwardable(options, 0);
@@ -1110,7 +1109,7 @@ static errno_t changepw_child(struct krb5_req *kr, bool prelim)
prompter = sss_krb5_prompter;
}
- set_changepw_options(kr->ctx, kr->options);
+ set_changepw_options(kr->options);
sss_krb5_princ_realm(kr->ctx, kr->princ, &realm_name, &realm_length);
DEBUG(SSSDBG_TRACE_FUNC,
@@ -1288,7 +1287,7 @@ static errno_t tgt_req_child(struct krb5_req *kr)
"Failed to unset expire callback, continue ...\n");
}
- set_changepw_options(kr->ctx, kr->options);
+ set_changepw_options(kr->options);
kerr = krb5_get_init_creds_password(kr->ctx, kr->creds, kr->princ,
discard_const(password),
sss_krb5_prompter, kr, 0,