diff options
author | Doug Rabson <dfr@FreeBSD.org> | 2009-05-24 11:10:27 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 2009-05-24 11:10:27 +0000 |
commit | 57d8181b40bab5afbb18be5337277395559279c2 (patch) | |
tree | f432c75ed3fd670bfd8defaa3f492cdefbf7f357 /sys/kgssapi/gsstest.c | |
parent | 3f8cd45f792d9b95289a0733bf3b5e4f7dca8b3b (diff) | |
download | src-57d8181b40bab5afbb18be5337277395559279c2.tar.gz src-57d8181b40bab5afbb18be5337277395559279c2.zip |
Fix build of KGSSAPI bits post-vimage.
Notes
Notes:
svn path=/head/; revision=192678
Diffstat (limited to 'sys/kgssapi/gsstest.c')
-rw-r--r-- | sys/kgssapi/gsstest.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kgssapi/gsstest.c b/sys/kgssapi/gsstest.c index 6d5a0c05d29a..c54fb5d4ea5a 100644 --- a/sys/kgssapi/gsstest.c +++ b/sys/kgssapi/gsstest.c @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$"); #include <sys/socketvar.h> #include <sys/sysent.h> #include <sys/sysproto.h> +#include <sys/vimage.h> #include <kgssapi/gssapi.h> #include <kgssapi/gssapi_impl.h> @@ -227,7 +228,7 @@ gsstest_1(void) { static char sbuf[512]; - snprintf(sbuf, sizeof(sbuf), "nfs@%s", hostname); + snprintf(sbuf, sizeof(sbuf), "nfs@%s", V_hostname); name_desc.value = sbuf; } @@ -430,7 +431,7 @@ gsstest_2(int step, const gss_buffer_t input_token, case 1: if (server_context == GSS_C_NO_CONTEXT) { static char sbuf[512]; - snprintf(sbuf, sizeof(sbuf), "nfs@%s", hostname); + snprintf(sbuf, sizeof(sbuf), "nfs@%s", V_hostname); name_desc.value = sbuf; name_desc.length = strlen((const char *) name_desc.value); @@ -811,7 +812,7 @@ gsstest_3(void) return(1); } - snprintf(service, sizeof(service), "host@%s", hostname); + snprintf(service, sizeof(service), "host@%s", V_hostname); auth = rpc_gss_seccreate(client, curthread->td_ucred, service, "kerberosv5", rpc_gss_svc_privacy, @@ -881,7 +882,7 @@ gsstest_4(void) const char **mechs; static rpc_gss_callback_t cb; - snprintf(principal, sizeof(principal), "host@%s", hostname); + snprintf(principal, sizeof(principal), "host@%s", V_hostname); mechs = rpc_gss_get_mechanisms(); while (*mechs) { |