diff options
author | Simo Sorce <simo@redhat.com> | 2015-11-10 23:14:56 -0500 |
---|---|---|
committer | Robbie Harwood <rharwood@redhat.com> | 2015-12-01 17:53:58 -0500 |
commit | ed62abc6def520fdc36798dbed4e26be7470ca39 (patch) | |
tree | e3936ba8b2f16b1e5db68dfb530c1d2c9cf09abd /proxy/tests/t_utils.h | |
parent | 8e28e35b9cf2cc6f1a2b4166b8cc1ae0856578d3 (diff) | |
download | gss-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.h')
-rw-r--r-- | proxy/tests/t_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <stdlib.h> #include <string.h> #include <gssapi/gssapi.h> +#include <gssapi/gssapi_krb5.h> +#include <gssapi/gssapi_ext.h> #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); |