summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-06-04 10:52:15 -0400
committerGünther Deschner <gdeschner@redhat.com>2012-06-26 14:44:43 +0200
commitf3492cc5079e850396d5515f00bad27725a46855 (patch)
tree2fd051ca2360da72bfab50d4f250aac09f6924ff
parentf79748fcc83b7107ee8338f0bd823f6ed1c5e9be (diff)
downloadgss-proxy-f3492cc5079e850396d5515f00bad27725a46855.tar.gz
gss-proxy-f3492cc5079e850396d5515f00bad27725a46855.tar.xz
gss-proxy-f3492cc5079e850396d5515f00bad27725a46855.zip
Move release_name to the proper place
-rw-r--r--proxy/src/mechglue/gpm_common.c11
-rw-r--r--proxy/src/mechglue/gpm_import_and_canon_name.c10
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 3ac378a..c18b52a 100644
--- a/proxy/src/mechglue/gpm_import_and_canon_name.c
+++ b/proxy/src/mechglue/gpm_import_and_canon_name.c
@@ -322,3 +322,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;
+}