diff options
| author | Greg Hudson <ghudson@mit.edu> | 2014-05-04 11:57:16 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2014-05-17 19:04:27 -0400 |
| commit | d3dd3d147aa403135d07bfca685aced769e361c2 (patch) | |
| tree | 0ff5580a1c8ebd4476a98e5af1c17aa099196bbe /src/plugins | |
| parent | a4e5127bec346fbc199e3624dc973c4b5d78df71 (diff) | |
| download | krb5-d3dd3d147aa403135d07bfca685aced769e361c2.tar.gz krb5-d3dd3d147aa403135d07bfca685aced769e361c2.tar.xz krb5-d3dd3d147aa403135d07bfca685aced769e361c2.zip | |
Modernize cc_file.c and cc_keyring.c
Rename functions not to use the krb5_ prefix, and to use the fcc_ or
krcc_ prefixes only for ccache method implementations. Use shorter
function comments and add missing comments in some cases. Remove
forward declarations where they aren't needed. Use native types
(uint16_t, void *, etc.) in preference to Kerberos type wrappers. Use
"ret" as the variable name for krb5_error_code return values. Use 0
instead of KRB5_OK. Make whitespace conform to current practice.
Remove old #if 0 blocks. Don't cast to and from void * or between
integer types when C guarantees an implicit cast. Use literal 2 and 4
for the size of fixed-width 16-bit and 32-bit types.
In cc_file.c, rewrite the header comment to specify the header format
as updated by version 4 and refer to ccmarshal.c for the principal and
credential format. Also add a helper function to return the cache
version as an integer from 1 to 4, allowing more concise version
checks.
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions
