summaryrefslogtreecommitdiffstats
path: root/proxy/tests/t_utils.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-11-10 23:14:56 -0500
committerRobbie Harwood <rharwood@redhat.com>2015-12-01 17:53:58 -0500
commited62abc6def520fdc36798dbed4e26be7470ca39 (patch)
treee3936ba8b2f16b1e5db68dfb530c1d2c9cf09abd /proxy/tests/t_utils.c
parent8e28e35b9cf2cc6f1a2b4166b8cc1ae0856578d3 (diff)
downloadgss-proxy-ed62abc6def520fdc36798dbed4e26be7470ca39.tar.gz
gss-proxy-ed62abc6def520fdc36798dbed4e26be7470ca39.tar.xz
gss-proxy-ed62abc6def520fdc36798dbed4e26be7470ca39.zip
Add acquire test and generally improve tests
Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwoood <rharwood@redhat.com>
Diffstat (limited to 'proxy/tests/t_utils.c')
-rw-r--r--proxy/tests/t_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy/tests/t_utils.c b/proxy/tests/t_utils.c
index f4446fa..7ceb0d2 100644
--- a/proxy/tests/t_utils.c
+++ b/proxy/tests/t_utils.c
@@ -93,7 +93,8 @@ void t_log_failure(gss_OID mech, uint32_t maj, uint32_t min)
gss_release_buffer(&discard, &tmp);
}
-int t_string_to_name(const char *string, gss_name_t *name)
+int t_string_to_name(const char *string, gss_name_t *name,
+ gss_OID type)
{
gss_buffer_desc target_buf;
uint32_t ret_maj;
@@ -102,8 +103,7 @@ int t_string_to_name(const char *string, gss_name_t *name)
target_buf.value = strdup(string);
target_buf.length = strlen(string) + 1;
- ret_maj = gss_import_name(&ret_min, &target_buf,
- GSS_C_NT_HOSTBASED_SERVICE, name);
+ ret_maj = gss_import_name(&ret_min, &target_buf, type, name);
free(target_buf.value);
return ret_maj;
}