From 1f70f9d1361665fcd6b4fc01e23c2544b281421a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 25 Jan 2012 16:31:58 -0500 Subject: Add helper to return status from rpc functions --- proxy/src/gp_rpc_accept_sec_context.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'proxy/src/gp_rpc_accept_sec_context.c') diff --git a/proxy/src/gp_rpc_accept_sec_context.c b/proxy/src/gp_rpc_accept_sec_context.c index 12022a8..ba4a26d 100644 --- a/proxy/src/gp_rpc_accept_sec_context.c +++ b/proxy/src/gp_rpc_accept_sec_context.c @@ -80,28 +80,12 @@ int gp_accept_sec_context(struct gssproxy_ctx *gpctx, &time_rec, &dch); - ascr->status.major_status = ret_maj; - ret = gp_conv_oid_to_gssx(oid, &ascr->status.mech); + ret = gp_conv_status_to_gssx(&asca->call_ctx, + ret_maj, ret_min, oid, + &ascr->status); if (ret) { goto done; } - ascr->status.minor_status = ret_min; - if (ret_maj) { - ret = gp_conv_err_to_gssx_string(ret_maj, GSS_C_GSS_CODE, oid, - &ascr->status.major_status_string); - if (ret) { - goto done; - } - } - if (ret_min) { - ret = gp_conv_err_to_gssx_string(ret_min, GSS_C_MECH_CODE, oid, - &ascr->status.minor_status_string); - if (ret) { - goto done; - } - } - /* Only used with PGSS, ignore for now */ - /* ascr->status.server_ctx; */ if (ret_maj) { ret = 0; -- cgit