diff options
| author | Greg Hudson <ghudson@mit.edu> | 2009-11-29 23:13:57 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2009-11-29 23:13:57 +0000 |
| commit | 6af933667efaab3e74add5ffefd7f9691a362958 (patch) | |
| tree | 3f1ad1526615193f9c8f6c846c8266328782f469 /src/lib/gssapi | |
| parent | 78501c922b2da4ad025282f3713e12e04de19fb2 (diff) | |
| download | krb5-6af933667efaab3e74add5ffefd7f9691a362958.tar.gz krb5-6af933667efaab3e74add5ffefd7f9691a362958.tar.xz krb5-6af933667efaab3e74add5ffefd7f9691a362958.zip | |
Remove the non-iov entry point introduced in r23378, since it's easy
to use the iov entry point at both call sites. Rename the iov entry
point to remove the "_iov" suffix since it's no longer needed to
disambiguate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23381 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi')
| -rw-r--r-- | src/lib/gssapi/krb5/util_crypt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/gssapi/krb5/util_crypt.c b/src/lib/gssapi/krb5/util_crypt.c index 7478c7f12..51e648750 100644 --- a/src/lib/gssapi/krb5/util_crypt.c +++ b/src/lib/gssapi/krb5/util_crypt.c @@ -289,14 +289,16 @@ kg_arcfour_docrypt(const krb5_keyblock *keyblock, int usage, { krb5_error_code code; krb5_data kd = make_data((char *) kd_data, kd_data_len); - krb5_data input = make_data((char *) input_buf, input_len); - krb5_data output = make_data(output_buf, input_len); + krb5_crypto_iov kiov; krb5int_access kaccess; code = krb5int_accessor(&kaccess, KRB5INT_ACCESS_VERSION); if (code) return code; - return (*kaccess.arcfour_gsscrypt)(keyblock, usage, &kd, &input, &output); + memcpy(output_buf, input_buf, input_len); + kiov.flags = KRB5_CRYPTO_TYPE_DATA; + kiov.data = make_data(output_buf, input_len); + return (*kaccess.arcfour_gsscrypt)(keyblock, usage, &kd, &kiov, 1); } /* AEAD */ @@ -593,8 +595,7 @@ kg_arcfour_docrypt_iov(krb5_context context, const krb5_keyblock *keyblock, iov, iov_count, &kiov, &kiov_count); if (code) return code; - code = (*kaccess.arcfour_gsscrypt_iov)(keyblock, usage, &kd, - kiov, kiov_count); + code = (*kaccess.arcfour_gsscrypt)(keyblock, usage, &kd, kiov, kiov_count); free(kiov); return code; } |
