summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-03-13 16:49:10 -0400
committerSimo Sorce <simo@redhat.com>2012-03-13 16:53:29 -0400
commit42ba89c40350c6a539a66fe853a9a64676abf610 (patch)
tree903e52250ffa259cff4866866ea29363be7ba44c
parentc8134bd66c95812396b07f2f90f832b171555604 (diff)
downloadgss-proxy-42ba89c40350c6a539a66fe853a9a64676abf610.tar.gz
gss-proxy-42ba89c40350c6a539a66fe853a9a64676abf610.tar.xz
gss-proxy-42ba89c40350c6a539a66fe853a9a64676abf610.zip
gss-proxy.x: We do not need pointers in gssx_ctx
There is no need to distinguish between empty buffer and no buffer.
-rw-r--r--proxy/rpcgen/gss_proxy.h4
-rw-r--r--proxy/rpcgen/gss_proxy_xdr.c4
-rw-r--r--x-files/gss_proxy.x4
3 files changed, 6 insertions, 6 deletions
diff --git a/proxy/rpcgen/gss_proxy.h b/proxy/rpcgen/gss_proxy.h
index 2612ca5..2b54858 100644
--- a/proxy/rpcgen/gss_proxy.h
+++ b/proxy/rpcgen/gss_proxy.h
@@ -156,8 +156,8 @@ struct gssx_cred {
typedef struct gssx_cred gssx_cred;
struct gssx_ctx {
- gssx_buffer *exported_context_token;
- octet_string *state;
+ gssx_buffer exported_context_token;
+ octet_string state;
bool_t needs_release;
gssx_OID mech;
gssx_name src_name;
diff --git a/proxy/rpcgen/gss_proxy_xdr.c b/proxy/rpcgen/gss_proxy_xdr.c
index c767ae2..25d9168 100644
--- a/proxy/rpcgen/gss_proxy_xdr.c
+++ b/proxy/rpcgen/gss_proxy_xdr.c
@@ -236,9 +236,9 @@ xdr_gssx_cred (XDR *xdrs, gssx_cred *objp)
bool_t
xdr_gssx_ctx (XDR *xdrs, gssx_ctx *objp)
{
- if (!xdr_pointer (xdrs, (char **)&objp->exported_context_token, sizeof (gssx_buffer), (xdrproc_t) xdr_gssx_buffer))
+ if (!xdr_gssx_buffer (xdrs, &objp->exported_context_token))
return FALSE;
- if (!xdr_pointer (xdrs, (char **)&objp->state, sizeof (octet_string), (xdrproc_t) xdr_octet_string))
+ if (!xdr_octet_string (xdrs, &objp->state))
return FALSE;
if (!xdr_bool (xdrs, &objp->needs_release))
return FALSE;
diff --git a/x-files/gss_proxy.x b/x-files/gss_proxy.x
index 9b07a10..d40201c 100644
--- a/x-files/gss_proxy.x
+++ b/x-files/gss_proxy.x
@@ -299,8 +299,8 @@ struct gssx_cred {
*/
struct gssx_ctx {
/* The exported context token, if available */
- gssx_buffer *exported_context_token;
- octet_string *state;
+ gssx_buffer exported_context_token;
+ octet_string state;
/*
* Stateful servers MUST be able to clean up unreferenced state
* automatically, using an LRU/LFU type cache. However, stateful