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.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'proxy/tests/t_utils.h') diff --git a/proxy/tests/t_utils.h b/proxy/tests/t_utils.h index 74f8ad5..c0469d4 100644 --- a/proxy/tests/t_utils.h +++ b/proxy/tests/t_utils.h @@ -5,11 +5,15 @@ #include #include #include +#include +#include #define STDIN_FD 0 #define STDOUT_FD 1 #define MAX_RPC_SIZE 1024*1024 +#define discard_const(ptr) ((void *)((uintptr_t)(ptr))) + #define DEBUG(name, ...) do { \ char msg[4096]; \ snprintf(msg, 4096, __VA_ARGS__); \ @@ -22,4 +26,4 @@ int t_recv_buffer(int fd, char *buf, uint32_t *len); void t_log_failure(gss_OID mech, uint32_t maj, uint32_t min); -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); -- cgit