diff options
author | Simo Sorce <simo@redhat.com> | 2012-06-04 10:52:15 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-08-23 17:11:36 +0200 |
commit | aca6e23cbb7e47d60632a055b4cdfd0fdf4d3862 (patch) | |
tree | c3df2238ec25447345f3eadf153090dff4774a95 | |
parent | 336e77de3eecfd1dfcdd5ee6ec23ae835c0bca25 (diff) | |
download | gss-proxy-aca6e23cbb7e47d60632a055b4cdfd0fdf4d3862.tar.gz gss-proxy-aca6e23cbb7e47d60632a055b4cdfd0fdf4d3862.tar.xz gss-proxy-aca6e23cbb7e47d60632a055b4cdfd0fdf4d3862.zip |
Move release_name to the proper place
-rw-r--r-- | proxy/src/mechglue/gpm_common.c | 11 | ||||
-rw-r--r-- | proxy/src/mechglue/gpm_import_and_canon_name.c | 10 |
2 files changed, 10 insertions, 11 deletions
diff --git a/proxy/src/mechglue/gpm_common.c b/proxy/src/mechglue/gpm_common.c index 22b3449..16ea7d6 100644 --- a/proxy/src/mechglue/gpm_common.c +++ b/proxy/src/mechglue/gpm_common.c @@ -336,17 +336,6 @@ static void gpm_release_ctx(struct gpm_ctx *gpmctx) gpm_release_sock(gpmctx); } -OM_uint32 gpm_release_name(OM_uint32 *minor_status, - gss_name_t *input_name) -{ - if (*input_name != GSS_C_NO_NAME) { - xdr_free((xdrproc_t)xdr_gssx_name, (char *)(*input_name)); - free(*input_name); - *input_name = GSS_C_NO_NAME; - } - return GSS_S_COMPLETE; -} - OM_uint32 gpm_release_buffer(OM_uint32 *minor_status, gss_buffer_t buffer) { diff --git a/proxy/src/mechglue/gpm_import_and_canon_name.c b/proxy/src/mechglue/gpm_import_and_canon_name.c index 4185b50..accf5e2 100644 --- a/proxy/src/mechglue/gpm_import_and_canon_name.c +++ b/proxy/src/mechglue/gpm_import_and_canon_name.c @@ -328,3 +328,13 @@ OM_uint32 gpm_inquire_name(OM_uint32 *minor_status, return GSS_S_COMPLETE; } +OM_uint32 gpm_release_name(OM_uint32 *minor_status, + gss_name_t *input_name) +{ + if (*input_name != GSS_C_NO_NAME) { + xdr_free((xdrproc_t)xdr_gssx_name, (char *)(*input_name)); + free(*input_name); + *input_name = GSS_C_NO_NAME; + } + return GSS_S_COMPLETE; +} |