diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-11-01 02:46:36 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-11-01 02:46:36 +0000 |
commit | 22a7e94a6a63d852c63f992fcfcb9e71d5714feb (patch) | |
tree | 295692d22c364e90c615d38917b9510302c55a2a /src/lib | |
parent | 933f80f3adc9fcc02eb53a5733b3c6c4b36c2da1 (diff) | |
download | krb5-22a7e94a6a63d852c63f992fcfcb9e71d5714feb.tar.gz krb5-22a7e94a6a63d852c63f992fcfcb9e71d5714feb.tar.xz krb5-22a7e94a6a63d852c63f992fcfcb9e71d5714feb.zip |
Stop using deprecated krb5_encrypt_data in preauth code. Use
krb5_encrypt_helper instead. (encrypt_helper takes a key usage
instead of an ivec, but that's okay since the invocations were using
null ivecs anyway.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23111 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/krb5/krb/preauth.c | 8 | ||||
-rw-r--r-- | src/lib/krb5/krb/preauth2.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/krb5/krb/preauth.c b/src/lib/krb5/krb/preauth.c index 9061aa9b69..d9c076eef5 100644 --- a/src/lib/krb5/krb/preauth.c +++ b/src/lib/krb5/krb/preauth.c @@ -531,10 +531,10 @@ obtain_sam_padata(krb5_context context, krb5_pa_data *in_padata, krb5_etype_info &scratch)) != 0) goto cleanup; - if ((retval = krb5_encrypt_data(context, - sam_use_key?sam_use_key:def_enc_key, - 0, scratch, - &sam_response.sam_enc_nonce_or_ts))) + if ((retval = krb5_encrypt_helper(context, + sam_use_key?sam_use_key:def_enc_key, + 0, scratch, + &sam_response.sam_enc_nonce_or_ts))) goto cleanup; krb5_free_data(context, scratch); diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index c96f0f5b3c..e9e5839380 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -1010,8 +1010,8 @@ pa_sam(krb5_context context, krb5_kdc_req *request, krb5_pa_data *in_padata, &scratch))) return(ret); - ret = krb5_encrypt_data(context, as_key, 0, scratch, - &sam_response.sam_enc_nonce_or_ts); + ret = krb5_encrypt_helper(context, as_key, 0, scratch, + &sam_response.sam_enc_nonce_or_ts); krb5_free_data(context, scratch); |