From ee96d082bd52f21c490312333506ffe4d8bd8c79 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 9 May 1990 17:11:51 +0000 Subject: [PATCH] changes for new encryption interface git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@815 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/decrypt_key.c | 2 +- src/lib/kdb/encrypt_key.c | 2 +- src/lib/krb5/krb/decrypt_tk.c | 2 +- src/lib/krb5/krb/encode_kdc.c | 2 +- src/lib/krb5/krb/encrypt_tk.c | 2 +- src/lib/krb5/krb/kdc_rep_dc.c | 2 +- src/lib/krb5/krb/mk_req_ext.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/kdb/decrypt_key.c b/src/lib/kdb/decrypt_key.c index b8b69f798..683c34bed 100644 --- a/src/lib/kdb/decrypt_key.c +++ b/src/lib/kdb/decrypt_key.c @@ -59,7 +59,7 @@ krb5_keyblock *out; decrypt_func)((krb5_pointer) (((char *) in->contents) + sizeof(in->length)), (krb5_pointer) out->contents, - in->length-sizeof(in->length), eblock)) { + in->length-sizeof(in->length), eblock, 0)) { free((char *)out->contents); out->contents = 0; out->length = 0; diff --git a/src/lib/kdb/encrypt_key.c b/src/lib/kdb/encrypt_key.c index 4a7747a96..929c7c061 100644 --- a/src/lib/kdb/encrypt_key.c +++ b/src/lib/kdb/encrypt_key.c @@ -54,7 +54,7 @@ krb5_keyblock *out; encrypt_func)((krb5_pointer) in->contents, (krb5_pointer) (((char *) out->contents) + sizeof(out->length)), - in->length, eblock)) { + in->length, eblock, 0)) { free((char *)out->contents); out->contents = 0; out->length = 0; diff --git a/src/lib/krb5/krb/decrypt_tk.c b/src/lib/krb5/krb/decrypt_tk.c index 513f407b5..451a7598c 100644 --- a/src/lib/krb5/krb/decrypt_tk.c +++ b/src/lib/krb5/krb/decrypt_tk.c @@ -65,7 +65,7 @@ register krb5_ticket *ticket; if (retval = (*eblock.crypto_entry->decrypt_func)((krb5_pointer) ticket->enc_part.data, (krb5_pointer) scratch.data, - scratch.length, &eblock)) { + scratch.length, &eblock, 0)) { (void) (*eblock.crypto_entry->finish_key)(&eblock); free(scratch.data); return retval; diff --git a/src/lib/krb5/krb/encode_kdc.c b/src/lib/krb5/krb/encode_kdc.c index 63266a602..89cd913b2 100644 --- a/src/lib/krb5/krb/encode_kdc.c +++ b/src/lib/krb5/krb/encode_kdc.c @@ -91,7 +91,7 @@ OLDDECLARG(krb5_data **, enc_rep) if (retval = (*eblock.crypto_entry->encrypt_func)((krb5_pointer) scratch->data, (krb5_pointer) dec_rep->enc_part.data, - scratch->length, &eblock)) { + scratch->length, &eblock, 0)) { goto clean_prockey; } diff --git a/src/lib/krb5/krb/encrypt_tk.c b/src/lib/krb5/krb/encrypt_tk.c index 7c9865979..813afe810 100644 --- a/src/lib/krb5/krb/encrypt_tk.c +++ b/src/lib/krb5/krb/encrypt_tk.c @@ -80,7 +80,7 @@ register krb5_ticket *dec_ticket; if (retval = (*eblock.crypto_entry->encrypt_func)((krb5_pointer) scratch->data, (krb5_pointer) dec_ticket->enc_part.data, - scratch->length, &eblock)) { + scratch->length, &eblock, 0)) { goto clean_prockey; } diff --git a/src/lib/krb5/krb/kdc_rep_dc.c b/src/lib/krb5/krb/kdc_rep_dc.c index 74299f72d..a235fb383 100644 --- a/src/lib/krb5/krb/kdc_rep_dc.c +++ b/src/lib/krb5/krb/kdc_rep_dc.c @@ -66,7 +66,7 @@ OLDDECLARG(krb5_kdc_rep *, dec_rep) if (retval = (*eblock.crypto_entry->decrypt_func)((krb5_pointer) dec_rep->enc_part.data, (krb5_pointer) scratch.data, - scratch.length, &eblock)) { + scratch.length, &eblock, 0)) { (void) (*eblock.crypto_entry->finish_key)(&eblock); free(scratch.data); return retval; diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index 3108e7611..d65f52914 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -142,7 +142,7 @@ krb5_data *outbuf; if (retval = (*eblock.crypto_entry->encrypt_func)((krb5_pointer) scratch->data, (krb5_pointer) request.authenticator.data, - scratch->length, &eblock)) { + scratch->length, &eblock, 0)) { goto clean_prockey; } -- 2.26.2