diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-10-20 16:52:29 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-12-19 12:15:46 -0500 |
commit | d9abacfd82b3336d133d12ed117173a1b6c0ba54 (patch) | |
tree | 6272f93d8f97ae2c3726a6854777fc4fa357c5ab /src/lib/crypto | |
parent | 296c51d3208ddc37b64f5a0b06812e2705995c4b (diff) | |
download | krb5-d9abacfd82b3336d133d12ed117173a1b6c0ba54.tar.gz krb5-d9abacfd82b3336d133d12ed117173a1b6c0ba54.tar.xz krb5-d9abacfd82b3336d133d12ed117173a1b6c0ba54.zip |
Style cleanup for internal error handling
Fix style issues in kerrs.c and errors.c. Rename error handling
functions to use shorter k5_ prefix. Eliminate an inoperable
krb5int_set_error() call in gic_opte_alloc and convert the other
call to use krb5_set_error_message().
Diffstat (limited to 'src/lib/crypto')
-rw-r--r-- | src/lib/crypto/krb/cf2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/crypto/krb/cf2.c b/src/lib/crypto/krb/cf2.c index 7334ed168d..1d0a01b648 100644 --- a/src/lib/crypto/krb/cf2.c +++ b/src/lib/crypto/krb/cf2.c @@ -110,9 +110,10 @@ krb5_c_fx_cf2_simple(krb5_context context, out_enctype = find_enctype(out_enctype_num); assert(out_enctype != NULL); if (out_enctype->prf == NULL) { - if (context) - krb5int_set_error(&(context->err), KRB5_CRYPTO_INTERNAL, - _("Enctype %d has no PRF"), out_enctype_num); + if (context) { + k5_set_error(&(context->err), KRB5_CRYPTO_INTERNAL, + _("Enctype %d has no PRF"), out_enctype_num); + } return KRB5_CRYPTO_INTERNAL; } keybytes = out_enctype->enc->keybytes; |