From: John Kohl Date: Tue, 20 Nov 1990 11:15:15 +0000 (+0000) Subject: need to use 0xffff rather than -1 since the type is unsigned. X-Git-Tag: krb5-1.0-alpha3~117 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=701ad309de982d8ee330d746d8815241b5ba8e3e;p=krb5.git need to use 0xffff rather than -1 since the type is unsigned. this makes defaulting based on keytype work again. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1476 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index c9daa7233..4757fbb0c 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -111,7 +111,7 @@ char *argv[]; char *dbname = 0; char defrealm[BUFSIZ]; int keytypedone = 0; - krb5_enctype etype = -1; + krb5_enctype etype = 0xffff; int sci_idx, code; extern krb5_kt_ops krb5_ktf_writable_ops; char *request = NULL; @@ -170,7 +170,7 @@ char *argv[]; exit(1); } - if (etype == -1) + if (etype == 0xffff) etype = krb5_keytype_array[master_keyblock.keytype]->system->proto_enctype; if (!valid_etype(etype)) { diff --git a/src/admin/stash/kdb5_stash.c b/src/admin/stash/kdb5_stash.c index b719889b3..acf100afc 100644 --- a/src/admin/stash/kdb5_stash.c +++ b/src/admin/stash/kdb5_stash.c @@ -61,7 +61,7 @@ char *argv[]; char *keyfile = 0; int keytypedone = 0; - krb5_enctype etype = -1; + krb5_enctype etype = 0xffff; if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; @@ -107,7 +107,7 @@ char *argv[]; exit(1); } - if (etype == -1) + if (etype == 0xffff) etype = krb5_keytype_array[master_keyblock.keytype]->system->proto_enctype; if (!valid_etype(etype)) {