krb5int_get_init_creds(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_prompter_fct prompter,
void *prompter_data, krb5_deltat start_time,
- char *in_tkt_service, krb5_get_init_creds_opt *options,
+ const char *in_tkt_service,
+ krb5_get_init_creds_opt *options,
krb5_gic_get_as_key_fct gak, void *gak_data,
int *master, krb5_kdc_rep **as_reply);
*/
krb5_error_code KRB5_CALLCONV
krb5_get_init_creds_password(krb5_context context, krb5_creds *creds,
- krb5_principal client, char *password,
+ krb5_principal client, const char *password,
krb5_prompter_fct prompter, void *data,
- krb5_deltat start_time, char *in_tkt_service,
+ krb5_deltat start_time,
+ const char *in_tkt_service,
krb5_get_init_creds_opt *k5_gic_options);
struct _krb5_init_creds_context;
krb5_error_code KRB5_CALLCONV
krb5_get_init_creds_keytab(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_keytab arg_keytab,
- krb5_deltat start_time, char *in_tkt_service,
+ krb5_deltat start_time, const char *in_tkt_service,
krb5_get_init_creds_opt *k5_gic_options);
typedef struct _krb5_verify_init_creds_opt {
krb5_error_code KRB5_CALLCONV
krb5_get_validated_creds(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_ccache ccache,
- char *in_tkt_service);
+ const char *in_tkt_service);
/**
* Get renewed credential from KDC using an existing credential.
krb5_error_code KRB5_CALLCONV
krb5_get_renewed_creds(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_ccache ccache,
- char *in_tkt_service);
+ const char *in_tkt_service);
/**
* Decode an ASN.1-formatted ticket.
static krb5_error_code
build_in_tkt_name(krb5_context context,
- char *in_tkt_service,
+ const char *in_tkt_service,
krb5_const_principal client,
krb5_principal *server)
{
krb5_prompter_fct prompter,
void *prompter_data,
krb5_deltat start_time,
- char *in_tkt_service,
+ const char *in_tkt_service,
krb5_get_init_creds_opt *options,
krb5_gic_get_as_key_fct gak_fct,
void *gak_data,
static krb5_error_code
get_init_creds_keytab(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_keytab keytab,
- krb5_deltat start_time, char *in_tkt_service,
+ krb5_deltat start_time, const char *in_tkt_service,
krb5_get_init_creds_opt *options, int *use_master)
{
krb5_error_code ret;
krb5_principal client,
krb5_keytab arg_keytab,
krb5_deltat start_time,
- char *in_tkt_service,
+ const char *in_tkt_service,
krb5_get_init_creds_opt *options)
{
krb5_error_code ret, ret2;
krb5_get_init_creds_password(krb5_context context,
krb5_creds *creds,
krb5_principal client,
- char *password,
+ const char *password,
krb5_prompter_fct prompter,
void *data,
krb5_deltat start_time,
- char *in_tkt_service,
+ const char *in_tkt_service,
krb5_get_init_creds_opt *options)
{
krb5_error_code ret, ret2;
static krb5_error_code
get_valrenewed_creds(krb5_context context, krb5_creds *out_creds,
krb5_principal client, krb5_ccache ccache,
- char *in_tkt_service, int kdcopt)
+ const char *in_tkt_service, int kdcopt)
{
krb5_error_code code;
krb5_creds in_creds, *new_creds;
krb5_error_code KRB5_CALLCONV
krb5_get_validated_creds(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_ccache ccache,
- char *in_tkt_service)
+ const char *in_tkt_service)
{
return get_valrenewed_creds(context, creds, client, ccache,
in_tkt_service, KDC_OPT_VALIDATE);
krb5_error_code KRB5_CALLCONV
krb5_get_renewed_creds(krb5_context context, krb5_creds *creds,
krb5_principal client, krb5_ccache ccache,
- char *in_tkt_service)
+ const char *in_tkt_service)
{
return get_valrenewed_creds(context, creds, client, ccache,
in_tkt_service, KDC_OPT_RENEW);