better default for v4 and v5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4816 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -40,11 +40,11 @@
|
||||
RCSID("$Id$");
|
||||
|
||||
#ifdef KRB4
|
||||
static int use_v4 = 0;
|
||||
static int use_v4 = -1;
|
||||
#endif
|
||||
|
||||
#ifdef KRB5
|
||||
static int use_v5 = 1;
|
||||
static int use_v5 = -1;
|
||||
static krb5_context context;
|
||||
#endif
|
||||
|
||||
@@ -548,6 +548,17 @@ main(int argc, char **argv)
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
#if defined(KRB4) && defined(KRB5)
|
||||
if(use_v4 == -1 && use_v5 == -1)
|
||||
use_v4 = use_v5 = 1;
|
||||
#elif defined(KRB4)
|
||||
if (use_v4 == -1)
|
||||
use_v4 = 1;
|
||||
#elif defined(KRB5)
|
||||
if (use_v5 == -1)
|
||||
use_v5 = 1;
|
||||
#endif
|
||||
|
||||
if (do_help)
|
||||
usage (0);
|
||||
|
||||
|
Reference in New Issue
Block a user