diff options
author | John Kohl <jtkohl@mit.edu> | 1990-02-02 08:57:43 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-02-02 08:57:43 +0000 |
commit | 739b82b2646fc82e06edef7d604ca9da3fd48058 (patch) | |
tree | bef071dec90b8f672f140493274dd5d256cdd4cc /src/lib/krb5/krb/encrypt_tk.c | |
parent | 89ba19c57fc2c5e408f9d5929094cc00bc280875 (diff) | |
download | krb5-739b82b2646fc82e06edef7d604ca9da3fd48058.tar.gz krb5-739b82b2646fc82e06edef7d604ca9da3fd48058.tar.xz krb5-739b82b2646fc82e06edef7d604ca9da3fd48058.zip |
convert to use valid_etype macro
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@229 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/encrypt_tk.c')
-rw-r--r-- | src/lib/krb5/krb/encrypt_tk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/krb5/krb/encrypt_tk.c b/src/lib/krb5/krb/encrypt_tk.c index faf3937140..a2b141ccb7 100644 --- a/src/lib/krb5/krb/encrypt_tk.c +++ b/src/lib/krb5/krb/encrypt_tk.c @@ -51,9 +51,7 @@ register krb5_ticket *dec_ticket; /* encrypt the encrypted part */ - if (dec_ticket->etype > max_cryptosystem || - dec_ticket->etype < 0 || - !csarray[dec_ticket->etype]) + if (!valid_etype(dec_ticket->etype)) return KRB5KDC_ERR_ETYPE_NOSUPP; /* start by encoding the to-be-encrypted part. */ |