summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_conv.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-03-21 11:02:21 -0400
committerSimo Sorce <simo@redhat.com>2012-03-21 11:02:21 -0400
commit1e99cc43f9f1983080b37bc5768a76dae0946183 (patch)
tree28f6998957733fc478e2602801abfd68ada9fdee /proxy/src/gp_conv.c
parent42ba89c40350c6a539a66fe853a9a64676abf610 (diff)
downloadgss-proxy-1e99cc43f9f1983080b37bc5768a76dae0946183.tar.gz
gss-proxy-1e99cc43f9f1983080b37bc5768a76dae0946183.tar.xz
gss-proxy-1e99cc43f9f1983080b37bc5768a76dae0946183.zip
gp_conv: Fix conversion functions after change to gss_proxy.x
Diffstat (limited to 'proxy/src/gp_conv.c')
-rw-r--r--proxy/src/gp_conv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/proxy/src/gp_conv.c b/proxy/src/gp_conv.c
index 4bf52e6..7eca8b5 100644
--- a/proxy/src/gp_conv.c
+++ b/proxy/src/gp_conv.c
@@ -520,19 +520,13 @@ uint32_t gp_conv_ctx_id_to_gssx(uint32_t *min, gss_ctx_id_t *in, gssx_ctx *out)
/* note: once converted the original context token is not usable anymore,
* so this must be the last call to use it */
- out->exported_context_token = calloc(1, sizeof(octet_string));
- if (!out->exported_context_token) {
- ret_maj = GSS_S_FAILURE;
- ret_min = ENOMEM;
- goto done;
- }
ret_maj = gss_export_sec_context(&ret_min, in, &export_buffer);
if (ret_maj) {
ret_maj = GSS_S_FAILURE;
ret_min = ENOMEM;
goto done;
}
- ret = gp_conv_buffer_to_gssx(&export_buffer, out->exported_context_token);
+ ret = gp_conv_buffer_to_gssx(&export_buffer, &out->exported_context_token);
if (ret) {
ret_maj = GSS_S_FAILURE;
ret_min = ret;
@@ -561,7 +555,7 @@ int gp_conv_gssx_to_ctx_id(gssx_ctx *in, gss_ctx_id_t *out)
uint32_t ret_maj;
uint32_t ret_min;
- gp_conv_gssx_to_buffer(in->exported_context_token, &export_buffer);
+ gp_conv_gssx_to_buffer(&in->exported_context_token, &export_buffer);
ret_maj = gss_import_sec_context(&ret_min, &export_buffer, out);
if (ret_maj) {