add `--fcache-version' to set cache version to create
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6039 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan | ||||
|  * Copyright (c) 1997-1999 Kungliga Tekniska H<>gskolan | ||||
|  * (Royal Institute of Technology, Stockholm, Sweden).  | ||||
|  * All rights reserved.  | ||||
|  * | ||||
| @@ -58,6 +58,7 @@ char *keytab_str	= NULL; | ||||
| extern int do_afslog; | ||||
| extern int get_v4_tgt; | ||||
| #endif | ||||
| int fcache_version; | ||||
|  | ||||
| struct getargs args[] = { | ||||
| #ifdef KRB4 | ||||
| @@ -106,6 +107,9 @@ struct getargs args[] = { | ||||
|     { "enctypes",	'e', arg_strings, &etype_str, | ||||
|       "encryption type to use", "enctype" }, | ||||
|  | ||||
|     { "fcache-version", 0,   arg_integer, &fcache_version, | ||||
|       "file cache version to create" }, | ||||
|  | ||||
|     { "version", 	0,   arg_flag, &version_flag }, | ||||
|     { "help",		0,   arg_flag, &help_flag } | ||||
| }; | ||||
| @@ -222,6 +226,9 @@ main (int argc, char **argv) | ||||
| 	exit(0); | ||||
|     } | ||||
|  | ||||
|     if(fcache_version) | ||||
| 	krb5_set_fcache_version(context, fcache_version); | ||||
|  | ||||
|     if(cred_cache)  | ||||
| 	ret = krb5_cc_resolve(context, cred_cache, &ccache); | ||||
|     else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Johan Danielsson
					Johan Danielsson