Lines Matching refs:res
94 gss_acquire_cred_res res;
154 memset(&res, 0, sizeof (res));
155 if (gss_acquire_cred_1(&arg, &res, clnt) != RPC_SUCCESS) {
186 *minor_status = res.minor_status;
191 *((gssd_cred_id_t *)res.output_cred_handle.GSS_CRED_ID_T_val);
192 *gssd_cred_verifier = res.gssd_cred_verifier;
195 if (res.status == GSS_S_COMPLETE &&
196 res.actual_mechs.GSS_OID_SET_len != 0 &&
200 (int)res.actual_mechs.GSS_OID_SET_len;
206 res.actual_mechs.GSS_OID_SET_val[i].GSS_OID_len;
210 res.actual_mechs.GSS_OID_SET_val[i].GSS_OID_val,
214 if (res.status == GSS_S_COMPLETE && actual_mechs != NULL)
219 *time_rec = res.time_rec;
226 clnt_freeres(clnt, xdr_gss_acquire_cred_res, (caddr_t)&res);
227 return (res.status);
303 gss_add_cred_res res;
355 bzero((caddr_t)&res, sizeof (res));
356 if (gss_add_cred_1(&arg, &res, clnt) != RPC_SUCCESS) {
382 *minor_status = res.minor_status;
384 if (res.status == GSS_S_COMPLETE &&
385 res.actual_mechs.GSS_OID_SET_len != 0 &&
389 (int)res.actual_mechs.GSS_OID_SET_len;
395 res.actual_mechs.GSS_OID_SET_val[i].GSS_OID_len;
399 res.actual_mechs.GSS_OID_SET_val[i].GSS_OID_val,
403 if (res.status == GSS_S_COMPLETE &&
408 *initiator_time_rec = res.initiator_time_rec;
410 *acceptor_time_rec = res.acceptor_time_rec;
417 clnt_freeres(clnt, xdr_gss_add_cred_res, (caddr_t)&res);
418 return (res.status);
478 gss_release_cred_res res;
501 memset(&res, 0, sizeof (res));
502 if (gss_release_cred_1(&arg, &res, clnt) != RPC_SUCCESS) {
518 if (res.status == GSS_S_COMPLETE && cred_handle != NULL)
523 *minor_status = res.minor_status;
526 return (res.status);
592 gss_init_sec_context_res res;
696 memset(&res, 0, sizeof (res));
697 if (gss_init_sec_context_1(&arg, &res, clnt) != RPC_SUCCESS) {
710 *minor_status = res.minor_status;
712 if (output_token != NULL && res.output_token.GSS_BUFFER_T_val != NULL) {
714 (size_t)res.output_token.GSS_BUFFER_T_len;
716 (void *)res.output_token.GSS_BUFFER_T_val;
717 res.output_token.GSS_BUFFER_T_val = NULL;
718 res.output_token.GSS_BUFFER_T_len = 0;
725 if (res.status == (OM_uint32) GSS_S_COMPLETE ||
726 res.status == (OM_uint32) GSS_S_CONTINUE_NEEDED) {
733 res.context_handle.GSS_CTX_ID_T_val);
735 *gssd_context_verifier = res.gssd_context_verifier;
738 if (res.status == GSS_S_COMPLETE) {
743 res.actual_mech_type.GSS_OID_len;
747 res.actual_mech_type.GSS_OID_val,
753 *ret_flags = res.ret_flags;
756 *time_rec = res.time_rec;
766 clnt_freeres(clnt, xdr_gss_init_sec_context_res, (caddr_t)&res);
767 return (res.status);
857 gss_accept_sec_context_res res;
940 memset(&res, 0, sizeof (res));
941 if (gss_accept_sec_context_1(&arg, &res, clnt) != RPC_SUCCESS) {
950 *minor_status = res.minor_status;
952 if (output_token != NULL && res.output_token.GSS_BUFFER_T_val != NULL) {
954 res.output_token.GSS_BUFFER_T_len;
956 (void *) res.output_token.GSS_BUFFER_T_val;
957 res.output_token.GSS_BUFFER_T_val = 0;
958 res.output_token.GSS_BUFFER_T_len = 0;
961 if (res.status == (OM_uint32) GSS_S_COMPLETE ||
962 res.status == (OM_uint32) GSS_S_CONTINUE_NEEDED) {
969 res.context_handle.GSS_CTX_ID_T_val);
970 *gssd_context_verifier = res.gssd_context_verifier;
973 if (res.status == GSS_S_COMPLETE)
980 src_name->length = res.src_name.GSS_BUFFER_T_len;
981 src_name->value = res.src_name.GSS_BUFFER_T_val;
982 res.src_name.GSS_BUFFER_T_val = NULL;
983 res.src_name.GSS_BUFFER_T_len = 0;
993 (OM_UINT32) res.mech_type.GSS_OID_len;
997 res.mech_type.GSS_OID_val,
1002 *ret_flags = res.ret_flags;
1005 *time_rec = res.time_rec;
1008 (res.delegated_cred_handle.GSS_CRED_ID_T_len
1013 res.delegated_cred_handle.GSS_CRED_ID_T_val);
1015 res.gssd_context_verifier;
1018 } /* res.status == GSS_S_COMPLETE */
1019 } /* res.status == GSS_S_COMPLETE or GSS_CONTINUE_NEEDED */
1027 clnt_freeres(clnt, xdr_gss_accept_sec_context_res, (caddr_t)&res);
1028 return (res.status);
1096 gss_process_context_token_res res;
1118 memset(&res, 0, sizeof (res));
1119 if (gss_process_context_token_1(&arg, &res, clnt) != RPC_SUCCESS) {
1135 *minor_status = res.minor_status;
1139 return (res.status);
1153 gss_delete_sec_context_res res;
1173 memset(&res, 0, sizeof (res));
1174 if (gss_delete_sec_context_1(&arg, &res, clnt) != RPC_SUCCESS) {
1194 *minor_status = res.minor_status;
1196 if (res.context_handle.GSS_CTX_ID_T_len == 0)
1201 res.context_handle.GSS_CTX_ID_T_val);
1203 if (output_token != NULL && res.output_token.GSS_BUFFER_T_val != NULL) {
1204 output_token->length = res.output_token.GSS_BUFFER_T_len;
1205 output_token->value = res.output_token.GSS_BUFFER_T_val;
1206 res.output_token.GSS_BUFFER_T_len = 0;
1207 res.output_token.GSS_BUFFER_T_val = NULL;
1215 clnt_freeres(clnt, xdr_gss_delete_sec_context_res, (caddr_t)&res);
1216 return (res.status);
1278 gss_sign_res res;
1300 memset(&res, 0, sizeof (res));
1301 if (gss_sign_1(&arg, &res, clnt) != RPC_SUCCESS) {
1319 *minor_status = res.minor_status;
1322 msg_token->length = res.msg_token.GSS_BUFFER_T_len;
1324 memcpy(msg_token->value, res.msg_token.GSS_BUFFER_T_val,
1333 clnt_freeres(clnt, xdr_gss_sign_res, (caddr_t)&res);
1334 return (res.status);
1369 gss_verify_res res;
1393 memset(&res, 0, sizeof (res));
1394 if (gss_verify_1(&arg, &res, clnt) != RPC_SUCCESS) {
1412 *minor_status = res.minor_status;
1415 *qop_state = res.qop_state;
1419 return (res.status);
1458 gss_seal_res res;
1486 memset(&res, 0, sizeof (res));
1487 if (gss_seal_1(&arg, &res, clnt) != RPC_SUCCESS) {
1507 *minor_status = res.minor_status;
1510 *conf_state = res.conf_state;
1514 res.output_message_buffer.GSS_BUFFER_T_len;
1519 res.output_message_buffer.GSS_BUFFER_T_val,
1528 clnt_freeres(clnt, xdr_gss_seal_res, (caddr_t)&res);
1529 return (res.status);
1568 gss_unseal_res res;
1592 memset(&res, 0, sizeof (res));
1593 if (gss_unseal_1(&arg, &res, clnt) != RPC_SUCCESS) {
1615 *minor_status = res.minor_status;
1619 res.output_message_buffer.GSS_BUFFER_T_len;
1624 res.output_message_buffer.GSS_BUFFER_T_val,
1629 *conf_state = res.conf_state;
1632 *qop_state = res.qop_state;
1639 clnt_freeres(clnt, xdr_gss_unseal_res, (caddr_t)&res);
1640 return (res.status);
1676 gss_display_status_res res;
1708 memset(&res, 0, sizeof (res));
1709 if (gss_display_status_1(&arg, &res, clnt) != RPC_SUCCESS) {
1723 *minor_status = res.minor_status;
1727 if (res.status == GSS_S_COMPLETE) {
1729 *message_context = res.message_context;
1732 (size_t)res.status_string.GSS_BUFFER_T_len;
1736 res.status_string.GSS_BUFFER_T_val,
1741 clnt_freeres(clnt, xdr_gss_display_status_res, (caddr_t)&res);
1742 return (res.status);
1755 gss_indicate_mechs_res res;
1765 memset(&res, 0, sizeof (res));
1766 if (gss_indicate_mechs_1(&arg, &res, clnt) != RPC_SUCCESS) {
1784 *minor_status = res.minor_status;
1788 (*mech_set)->count = res.mech_set.GSS_OID_SET_len;
1793 res.mech_set.GSS_OID_SET_val[i].GSS_OID_len;
1797 res.mech_set.GSS_OID_SET_val[i].GSS_OID_val,
1807 clnt_freeres(clnt, xdr_gss_indicate_mechs_res, (caddr_t)&res);
1808 return (res.status);
1836 gss_inquire_cred_res res;
1858 memset(&res, 0, sizeof (res));
1859 if (gss_inquire_cred_1(&arg, &res, clnt) != RPC_SUCCESS) {
1883 *minor_status = res.minor_status;
1888 external_name.length = res.name.GSS_BUFFER_T_len;
1889 external_name.value = res.name.GSS_BUFFER_T_val;
1900 name_type->length = res.name_type.GSS_OID_len;
1902 memcpy(name_type->elements, res.name_type.GSS_OID_val,
1912 (caddr_t)&res);
1918 *lifetime = res.lifetime;
1921 *cred_usage = res.cred_usage;
1926 if (res.mechanisms.GSS_OID_SET_len != 0) {
1928 (int)res.mechanisms.GSS_OID_SET_len;
1934 res.mechanisms.GSS_OID_SET_val[i].GSS_OID_len;
1938 res.mechanisms.GSS_OID_SET_val[i].GSS_OID_val,
1950 clnt_freeres(clnt, xdr_gss_inquire_cred_res, (caddr_t)&res);
1951 return (res.status);
1999 gss_inquire_cred_by_mech_res res;
2027 memset(&res, 0, sizeof (res));
2028 if (gss_inquire_cred_by_mech_1(&arg, &res, clnt) != RPC_SUCCESS) {
2043 *minor_status = res.minor_status;
2052 clnt_freeres(clnt, xdr_gss_inquire_cred_by_mech_res, (caddr_t)&res);
2053 return (res.status);
2089 gsscred_expname_to_unix_cred_res res;
2119 memset(&res, 0, sizeof (res));
2121 if (gsscred_expname_to_unix_cred_1(&args, &res, clnt) != RPC_SUCCESS)
2127 if (res.major == GSS_S_COMPLETE)
2129 *uidOut = res.uid;
2131 *gidOut = res.gid;
2134 *gids = res.gids.GSSCRED_GIDS_val;
2135 *gidsLen = res.gids.GSSCRED_GIDS_len;
2136 res.gids.GSSCRED_GIDS_val = NULL;
2137 res.gids.GSSCRED_GIDS_len = 0;
2142 clnt_freeres(clnt, xdr_gsscred_expname_to_unix_cred_res, (caddr_t)&res);
2144 return (res.major);
2159 gsscred_name_to_unix_cred_res res;
2204 memset(&res, 0, sizeof (res));
2205 if (gsscred_name_to_unix_cred_1(&args, &res, clnt) != RPC_SUCCESS)
2213 if (res.major == GSS_S_COMPLETE)
2215 *uidOut = res.uid;
2217 *gidOut = res.gid;
2220 *gids = res.gids.GSSCRED_GIDS_val;
2221 *gidsLen = res.gids.GSSCRED_GIDS_len;
2222 res.gids.GSSCRED_GIDS_val = NULL;
2223 res.gids.GSSCRED_GIDS_len = 0;
2228 clnt_freeres(clnt, xdr_gsscred_name_to_unix_cred_res, (caddr_t)&res);
2230 return (res.major);
2242 gss_get_group_info_res res;
2262 memset(&res, 0, sizeof (res));
2263 if (gss_get_group_info_1(&args, &res, clnt) != RPC_SUCCESS)
2269 if (res.major == GSS_S_COMPLETE)
2271 *gidOut = res.gid;
2272 *gids = res.gids.GSSCRED_GIDS_val;
2273 *gidsLen = res.gids.GSSCRED_GIDS_len;
2274 res.gids.GSSCRED_GIDS_val = NULL;
2275 res.gids.GSSCRED_GIDS_len = 0;
2280 return (res.major);
2295 gss_export_sec_context_res res;
2313 memset(&res, 0, sizeof (res));
2314 if (gss_export_sec_context_1(&arg, &res, clnt) != RPC_SUCCESS) {
2334 *minor_status = res.minor_status;
2336 if (res.context_handle.GSS_CTX_ID_T_len == 0)
2340 *((gssd_ctx_id_t *)res.context_handle.GSS_CTX_ID_T_val);
2342 if (output_token != NULL && res.output_token.GSS_BUFFER_T_val != NULL) {
2343 output_token->length = res.output_token.GSS_BUFFER_T_len;
2347 res.output_token.GSS_BUFFER_T_val,
2356 clnt_freeres(clnt, xdr_gss_export_sec_context_res, (caddr_t)&res);
2357 return (res.status);
2403 gss_import_sec_context_res res;
2423 memset(&res, 0, sizeof (res));
2424 if (gss_import_sec_context_1(&arg, &res, clnt) != RPC_SUCCESS) {
2442 *minor_status = res.minor_status;
2444 if (res.context_handle.GSS_CTX_ID_T_len == 0)
2448 *((gss_ctx_id_t *)res.context_handle.GSS_CTX_ID_T_val);
2456 clnt_freeres(clnt, xdr_gss_import_sec_context_res, (caddr_t)&res);
2457 return (res.status);