diff options
author | Simo Sorce <simo@redhat.com> | 2012-01-29 22:03:44 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-01-29 22:08:26 -0500 |
commit | a56ca2e026f5ee7cb9b09a694cb76fa2a8552ac4 (patch) | |
tree | a0d1b65c84c53336c30739db537aa6f7c271a4f5 /proxy/src/gp_common.h | |
parent | 858ffae8c72d9cb617534728e0d3ce4cacb4535c (diff) | |
download | gss-proxy-a56ca2e026f5ee7cb9b09a694cb76fa2a8552ac4.tar.gz gss-proxy-a56ca2e026f5ee7cb9b09a694cb76fa2a8552ac4.tar.xz gss-proxy-a56ca2e026f5ee7cb9b09a694cb76fa2a8552ac4.zip |
Move some definitions around.
Make union arg/res usable elsewhere.
Make gp_xdr_set private as gp_rpc_process.c is the only place where it is used.
Diffstat (limited to 'proxy/src/gp_common.h')
-rw-r--r-- | proxy/src/gp_common.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h index 2052e94..3763e12 100644 --- a/proxy/src/gp_common.h +++ b/proxy/src/gp_common.h @@ -54,4 +54,42 @@ /* max out at 1MB for now */ #define MAX_RPC_SIZE 1024*1024 +#include "rpcgen/gss_proxy.h" + +union gp_rpc_arg { + gssx_arg_release_handle release_handle; + gssx_arg_indicate_mechs indicate_mechs; + gssx_arg_import_and_canon_name import_and_canon_name; + gssx_arg_get_call_context get_call_context; + gssx_arg_acquire_cred acquire_cred; + gssx_arg_export_cred export_cred; + gssx_arg_import_cred import_cred; + gssx_arg_store_cred store_cred; + gssx_arg_init_sec_context init_sec_context; + gssx_arg_accept_sec_context accept_sec_context; + gssx_arg_get_mic get_mic; + gssx_arg_verify_mic verify_mic; + gssx_arg_wrap wrap; + gssx_arg_unwrap unwrap; + gssx_arg_wrap_size_limit wrap_size_limit; +}; + +union gp_rpc_res { + gssx_res_release_handle release_handle; + gssx_res_indicate_mechs indicate_mechs; + gssx_res_import_and_canon_name import_and_canon_name; + gssx_res_get_call_context get_call_context; + gssx_res_acquire_cred acquire_cred; + gssx_res_export_cred export_cred; + gssx_res_import_cred import_cred; + gssx_res_store_cred store_cred; + gssx_res_init_sec_context init_sec_context; + gssx_res_accept_sec_context accept_sec_context; + gssx_res_get_mic get_mic; + gssx_res_verify_mic verify_mic; + gssx_res_wrap wrap; + gssx_res_unwrap unwrap; + gssx_res_wrap_size_limit wrap_size_limit; +}; + #endif /* _GP_COMMON_H_ */ |