From: John Kohl Date: Wed, 1 May 1991 11:19:56 +0000 (+0000) Subject: use checksum & encryption macrtos X-Git-Tag: krb5-1.0-alpha5~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e251d0eba87ea9cad5ec8b86866d29bf18c65d4f;p=krb5.git use checksum & encryption macrtos git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2079 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/encode_kdc.c b/src/lib/krb5/krb/encode_kdc.c index 9e2f7b27e..fa51fef40 100644 --- a/src/lib/krb5/krb/encode_kdc.c +++ b/src/lib/krb5/krb/encode_kdc.c @@ -71,7 +71,7 @@ krb5_free_data(scratch); } /* put together an eblock for this encryption */ - eblock.crypto_entry = krb5_csarray[dec_rep->enc_part.etype]->system; + krb5_use_cstype(&eblock, dec_rep->enc_part.etype); dec_rep->enc_part.ciphertext.length = krb5_encrypt_size(scratch->length, eblock.crypto_entry); /* add padding area, and zero it */ diff --git a/src/lib/krb5/krb/send_tgs.c b/src/lib/krb5/krb/send_tgs.c index 224e99c30..c78e11ab7 100644 --- a/src/lib/krb5/krb/send_tgs.c +++ b/src/lib/krb5/krb/send_tgs.c @@ -170,7 +170,7 @@ OLDDECLARG(krb5_response *,rep) } if (!(ap_checksum.contents = (krb5_octet *) - malloc(krb5_cksumarray[sumtype]->checksum_length))) { + malloc(krb5_checsum_size(sumtype)))) { if (sec_ticket) krb5_free_ticket(sec_ticket); krb5_free_data(scratch); @@ -178,12 +178,12 @@ OLDDECLARG(krb5_response *,rep) return ENOMEM; } - if (retval = (*(krb5_cksumarray[sumtype]-> - sum_func))(scratch->data, - scratch->length, - (krb5_pointer) usecred->keyblock.contents, - usecred->keyblock.length, - &ap_checksum)) { + if (retval = krb5_calculate_checksum(sumtype, + scratch->data, + scratch->length, + (krb5_pointer) usecred->keyblock.contents, + usecred->keyblock.length, + &ap_checksum)) { if (sec_ticket) krb5_free_ticket(sec_ticket); xfree(ap_checksum.contents);