From ed62abc6def520fdc36798dbed4e26be7470ca39 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 10 Nov 2015 23:14:56 -0500 Subject: Add acquire test and generally improve tests Signed-off-by: Simo Sorce Reviewed-by: Robbie Harwoood --- proxy/tests/t_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proxy/tests/t_utils.c') 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; } -- cgit