add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -117,7 +117,7 @@ static OM_uint32 acquire_initiator_cred
|
||||
kret = get_keytab(&keytab);
|
||||
if (kret)
|
||||
goto end;
|
||||
kret = krb5_get_init_creds_opt_alloc(&opt);
|
||||
kret = krb5_get_init_creds_opt_alloc(gssapi_krb5_context, &opt);
|
||||
if (ret)
|
||||
goto end;
|
||||
kret = krb5_get_init_creds_keytab(gssapi_krb5_context, &cred,
|
||||
|
@@ -117,7 +117,7 @@ static OM_uint32 acquire_initiator_cred
|
||||
kret = get_keytab(&keytab);
|
||||
if (kret)
|
||||
goto end;
|
||||
kret = krb5_get_init_creds_opt_alloc(&opt);
|
||||
kret = krb5_get_init_creds_opt_alloc(gssapi_krb5_context, &opt);
|
||||
if (ret)
|
||||
goto end;
|
||||
kret = krb5_get_init_creds_keytab(gssapi_krb5_context, &cred,
|
||||
|
@@ -144,7 +144,7 @@ get_new_cache(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt;
|
||||
krb5_ccache id;
|
||||
|
||||
ret = krb5_get_init_creds_opt_alloc (&opt);
|
||||
ret = krb5_get_init_creds_opt_alloc (context, &opt);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@@ -89,7 +89,7 @@ get_creds(krb5_context context, const char *keytab_str,
|
||||
KRB5_NT_SRV_HST, &client);
|
||||
if (ret) krb5_err(context, 1, ret, "krb5_sname_to_principal");
|
||||
|
||||
ret = krb5_get_init_creds_opt_alloc(&init_opts);
|
||||
ret = krb5_get_init_creds_opt_alloc(context, &init_opts);
|
||||
if (ret) krb5_err(context, 1, ret, "krb5_get_init_creds_opt_alloc");
|
||||
|
||||
asprintf (&server, "%s/%s", IPROP_NAME, host);
|
||||
|
@@ -139,7 +139,7 @@ verify_user_opt_int(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt;
|
||||
krb5_creds cred;
|
||||
|
||||
ret = krb5_get_init_creds_opt_alloc (&opt);
|
||||
ret = krb5_get_init_creds_opt_alloc (context, &opt);
|
||||
if (ret)
|
||||
return ret;
|
||||
krb5_get_init_creds_opt_set_default_flags(context, NULL,
|
||||
|
Reference in New Issue
Block a user