afsadminutil: translate krb5 error messages on Windows
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 6 Mar 2010 22:32:57 +0000 (17:32 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Fri, 19 Mar 2010 20:09:39 +0000 (13:09 -0700)
commit65dcd0a7dabea704973d7f67c1733d2a47559f1b
treebfecfbac56f18adaccb45f94b49c513071349fb6
parent7595adc20b9ae1807cf720c72917eb6d133c765f
afsadminutil: translate krb5 error messages on Windows

util_AdminErrorCodeTranslate() is used to translate error
code messages within the libadmin library set and is used
by translate_et.  This has in the past not translated
krb5 error codes.

This patchset conditionally adds support for using
krb5_get_error_message() or error_message() on the Windows
platform if KFW is installed.  This is accomplished by
adding new functions to afsutil.lib:

  initialize_krb5()
  fetch_krb5_error_message()

which are used within util_AdminErrorCodeTranslate()
only if AFS_KRB5_ERROR_ENV is defined.

Support for Unix is not provided at the present time
because doing this "right" will lead to a dependence on
kerberos libraries from this library, which we might want
to avoid.

Change-Id: I7caf7b8e41cfd806f4defc175aa45afb165ec244
Reviewed-on: http://gerrit.openafs.org/1531
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/config/param.amd64_w2k.h
src/config/param.i386_nt40.h
src/config/param.i386_w2k.h
src/libadmin/adminutil/NTMakefile
src/libadmin/adminutil/afs_utilAdmin.c
src/util/NTMakefile
src/util/krb5_nt.c [new file with mode: 0644]
src/util/krb5_nt.h [new file with mode: 0644]