summaryrefslogtreecommitdiffstats
path: root/proxy/tests/t_init.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-11-12 17:37:57 -0500
committerRobbie Harwood <rharwood@redhat.com>2015-12-01 17:54:02 -0500
commite5d0a2d58044042bd18103c934b98954d66653f9 (patch)
treeb3efa2006836728e226b78d4a93b3b89af6becf3 /proxy/tests/t_init.c
parented62abc6def520fdc36798dbed4e26be7470ca39 (diff)
downloadgss-proxy-e5d0a2d58044042bd18103c934b98954d66653f9.tar.gz
gss-proxy-e5d0a2d58044042bd18103c934b98954d66653f9.tar.xz
gss-proxy-e5d0a2d58044042bd18103c934b98954d66653f9.zip
Use t_utils.h in all tests.
Avoid duplicating the same helper functions everywhere. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwoood <rharwood@redhat.com>
Diffstat (limited to 'proxy/tests/t_init.c')
-rw-r--r--proxy/tests/t_init.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/proxy/tests/t_init.c b/proxy/tests/t_init.c
index a6499db..7714e03 100644
--- a/proxy/tests/t_init.c
+++ b/proxy/tests/t_init.c
@@ -17,7 +17,7 @@ int main(int argc, const char *argv[])
ret = t_string_to_name(argv[1], &name, GSS_C_NT_HOSTBASED_SERVICE);
if (ret) {
- DEBUG(argv[0], "Failed to import server name from argv[1]\n");
+ DEBUG("Failed to import server name from argv[1]\n");
ret = -1;
goto done;
}
@@ -36,7 +36,7 @@ int main(int argc, const char *argv[])
NULL,
NULL);
if (ret_maj != GSS_S_CONTINUE_NEEDED) {
- DEBUG(argv[0], "gss_init_sec_context() failed\n");
+ DEBUG("gss_init_sec_context() failed\n");
t_log_failure(GSS_C_NO_OID, ret_maj, ret_min);
ret = -1;
goto done;
@@ -44,21 +44,21 @@ int main(int argc, const char *argv[])
/* We get stuff from stdin and spit it out on stderr */
if (!out_token.length) {
- DEBUG(argv[0], "No output token ?");
+ DEBUG("No output token ?");
ret = -1;
goto done;
}
ret = t_send_buffer(STDOUT_FD, out_token.value, out_token.length);
if (ret) {
- DEBUG(argv[0], "Failed to send data to server!\n");
+ DEBUG("Failed to send data to server!\n");
ret = -1;
goto done;
}
ret = t_recv_buffer(STDIN_FD, buffer, &buflen);
if (ret != 0) {
- DEBUG(argv[0], "Failed to read token from STDIN\n");
+ DEBUG("Failed to read token from STDIN\n");
ret = -1;
goto done;
}
@@ -80,7 +80,7 @@ int main(int argc, const char *argv[])
NULL,
NULL);
if (ret_maj) {
- DEBUG(argv[0], "Error initializing context\n");
+ DEBUG("Error initializing context\n");
t_log_failure(GSS_C_NO_OID, ret_maj, ret_min);
ret = -1;
goto done;