aklog: Tidy realm handling
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 12 Feb 2010 11:13:16 +0000 (11:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 17 Feb 2010 13:13:05 +0000 (05:13 -0800)
commitf7b5d7153cbac34b9411728c1c53d9c0064f5857
tree9a3ea06e5c7ae89e8aefb871a674fcba8a4a64f8
parentf8c6bfffd3a32f41d24a171026b985974a5cc7b3
aklog: Tidy realm handling

Assorted small changes to the way realms are handled by aklog:
  * Remove static buffers when realms are passed between functions
  * Add cleanup for all dynamically allocated strings to auth_to_cell
  * Create an extract_realm helper function to handle extracting realm
    information from principals.
  * Add a function to handle extracting realm information from decoded
    tickets

Change-Id: I320389033f4862d30774b40103e536fd5bac841b
Reviewed-on: http://gerrit.openafs.org/1323
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/aklog/aklog.c