check for local mode

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14008 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2004-06-27 17:33:33 +00:00
parent 138873b8b9
commit cf22688e0c
4 changed files with 34 additions and 3 deletions

View File

@@ -36,6 +36,8 @@
RCSID("$Id$");
extern int local_flag;
int
stash(struct stash_options *opt, int argc, char **argv)
{
@@ -44,6 +46,11 @@ stash(struct stash_options *opt, int argc, char **argv)
krb5_enctype enctype;
hdb_master_key mkey;
if(!local_flag) {
krb5_warnx(context, "stash is only available in local (-l) mode");
return 0;
}
ret = krb5_string_to_enctype(context, opt->enctype_string, &enctype);
if(ret)
krb5_warn(context, ret, "%s", opt->enctype_string);