]> git.ipfire.org Git - thirdparty/krb5.git/commit
Clean up ovsec_kadmd.c
authorGreg Hudson <ghudson@mit.edu>
Sun, 26 Jan 2014 21:42:50 +0000 (16:42 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 5 Feb 2014 05:21:30 +0000 (00:21 -0500)
commit779a335f4e2deb2d76caf7d0dd3de847a040c050
tree8567a81ffa3751adf52a0ac65e6ccc44bada9434
parent6506c87aab5567ae855d1f75dc9b41e1a091f542
Clean up ovsec_kadmd.c

Fix code formatting issues.  Use static scope when possible, and put
all helper functions before main so that forward declarations aren't
needed.  Use GSS_KRB5_NT_PRINCIPAL_NAME instead of constructing it
with gss_str_to_oid, and get rid of display_status as that was the
only use.  Replace large verbose function comments with concise ones.
Factor out main loop setup and KDB keytab setup into helper functions.
Create a helper function fail_to_start for logging and exiting on
initialization failures, and use it instead of the large cleanup
blocks in main.

Some initialization error messages have changed; no other functional
changes.
src/kadmin/server/ovsec_kadmd.c