eblock.crypto_entry = krb5_csarray[tgs_req->tgs_request2->etype]->system; /* XXX */
/* do any necessary key pre-processing */
- if (retval = (*eblock.crypto_entry->process_key)(&eblock,
- tgs_req->header2->ticket->enc_part2->session)) {
+ if (retval = krb5_process_key(&eblock,
+ tgs_req->header2->ticket->enc_part2->session)) {
free(scratch.data);
return(retval);
}
/* call the encryption routine */
- if (retval =
- (*eblock.crypto_entry->decrypt_func)((krb5_pointer) tgs_req->tgs_request2->enc_part.data,
- (krb5_pointer) scratch.data,
- scratch.length, &eblock,
- 0)) {
- (void) (*eblock.crypto_entry->finish_key)(&eblock);
+ if (retval = krb5_decrypt((krb5_pointer) tgs_req->tgs_request2->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;
}
}
/* do any necessary key pre-processing */
- if (retval = (*master_encblock.crypto_entry->
- process_key)(&master_encblock, masterkeyblock)) {
+ if (retval = krb5_process_key(&master_encblock, masterkeyblock)) {
master_encblock.crypto_entry = 0;
(void) krb5_db_fini();
return(retval);
krb5_error_code retval;
/* clean up master key stuff */
- retval = (*master_encblock.crypto_entry->finish_key)(&master_encblock);
+ retval = krb5_finish_key(&master_encblock);
bzero((char *)&master_encblock, sizeof(master_encblock));