rename tk_file to ccache for consistency
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6493 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
15
appl/kf/kf.c
15
appl/kf/kf.c
@@ -46,12 +46,12 @@ static char *port_str;
|
|||||||
char *service = SERVICE;
|
char *service = SERVICE;
|
||||||
char *remote_name = NULL;
|
char *remote_name = NULL;
|
||||||
int forwardable = 0;
|
int forwardable = 0;
|
||||||
char *tk_file = NULL;
|
char *ccache = NULL;
|
||||||
|
|
||||||
static struct getargs args[] = {
|
static struct getargs args[] = {
|
||||||
{ "port", 'p', arg_string, &port_str, "port to connect to", "port" },
|
{ "port", 'p', arg_string, &port_str, "port to connect to", "port" },
|
||||||
{ "login", 'l',arg_string, &remote_name,"remote login name","login"},
|
{ "login", 'l',arg_string, &remote_name,"remote login name","login"},
|
||||||
{ "tkfile", 't',arg_string, &tk_file,"remote ticket file","tkfile"},
|
{ "ccache", 'c',arg_string, &ccache, "remote cred cache","ccache"},
|
||||||
{ "forwardable",'F',arg_flag,&forwardable,
|
{ "forwardable",'F',arg_flag,&forwardable,
|
||||||
"Forward forwardable credentials", NULL },
|
"Forward forwardable credentials", NULL },
|
||||||
{ "help", 'h', arg_flag, &help_flag },
|
{ "help", 'h', arg_flag, &help_flag },
|
||||||
@@ -213,12 +213,11 @@ proto (int sock, const char *hostname, const char *service)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tk_file)
|
if (ccache == NULL)
|
||||||
snprintf (buf, sizeof(buf), "%s", tk_file);
|
ccache = "";
|
||||||
else
|
|
||||||
snprintf (buf, sizeof(buf), "");
|
data_send.data = ccache;
|
||||||
data_send.data = buf;
|
data_send.length = strlen(ccache)+1;
|
||||||
data_send.length = strlen(buf)+1;
|
|
||||||
status = krb5_write_message(context, &sock, &data_send);
|
status = krb5_write_message(context, &sock, &data_send);
|
||||||
if (status) {
|
if (status) {
|
||||||
krb5_warnx (context, status, "krb5_write_message");
|
krb5_warnx (context, status, "krb5_write_message");
|
||||||
|
Reference in New Issue
Block a user