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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user