diff options
author | dfr <dfr@FreeBSD.org> | 2009-05-24 11:10:27 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2009-05-24 11:10:27 +0000 |
commit | 4bf244123ecedd7390a6ddc01c55c6ab985e3745 (patch) | |
tree | f432c75ed3fd670bfd8defaa3f492cdefbf7f357 /sys/kgssapi | |
parent | b7ef144eae1063beeb611187af401aa7ca9611e5 (diff) | |
download | FreeBSD-src-4bf244123ecedd7390a6ddc01c55c6ab985e3745.zip FreeBSD-src-4bf244123ecedd7390a6ddc01c55c6ab985e3745.tar.gz |
Fix build of KGSSAPI bits post-vimage.
Diffstat (limited to 'sys/kgssapi')
-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 6d5a0c0..c54fb5d 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) { |