diff options
author | John Kohl <jtkohl@mit.edu> | 1990-09-20 16:23:00 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-09-20 16:23:00 +0000 |
commit | f2769fa77c6cc1910982f63f82e678e9f990266c (patch) | |
tree | c97bced1f9bab95d97ad1c8abaccd4ae1c0a563d /src/lib/krb5/krb/decrypt_tk.c | |
parent | e7c22540d69b281dcded439ee2a8719ffea76d0a (diff) | |
download | krb5-f2769fa77c6cc1910982f63f82e678e9f990266c.zip krb5-f2769fa77c6cc1910982f63f82e678e9f990266c.tar.gz krb5-f2769fa77c6cc1910982f63f82e678e9f990266c.tar.bz2 |
use macros to hide abstraction
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1141 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/decrypt_tk.c')
-rw-r--r-- | src/lib/krb5/krb/decrypt_tk.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/krb5/krb/decrypt_tk.c b/src/lib/krb5/krb/decrypt_tk.c index ee87996..64fb684 100644 --- a/src/lib/krb5/krb/decrypt_tk.c +++ b/src/lib/krb5/krb/decrypt_tk.c @@ -53,22 +53,21 @@ register krb5_ticket *ticket; return(ENOMEM); /* do any necessary key pre-processing */ - if (retval = (*eblock.crypto_entry->process_key)(&eblock, srv_key)) { + if (retval = krb5_process_key(&eblock, srv_key)) { free(scratch.data); return(retval); } /* call the encryption routine */ - if (retval = - (*eblock.crypto_entry->decrypt_func)((krb5_pointer) ticket->enc_part.data, - (krb5_pointer) scratch.data, - scratch.length, &eblock, 0)) { - (void) (*eblock.crypto_entry->finish_key)(&eblock); + if (retval = krb5_decrypt((krb5_pointer) ticket->enc_part.data, + (krb5_pointer) scratch.data, + scratch.length, &eblock, 0)) { + (void) krb5_finish_key(&eblock); free(scratch.data); return retval; } #define clean_scratch() {bzero(scratch.data, scratch.length); free(scratch.data);} - if (retval = (*eblock.crypto_entry->finish_key)(&eblock)) { + if (retval = krb5_finish_key(&eblock)) { clean_scratch(); return retval; |