- /* Use the DH parameters from the original request */
- /* TBD -- this needs to be fixed when we handle more than one req per conn */
- tidc->client_dh = orig_req->tidc_dh;
-
- /* Save information about this request for the response */
- resp_cookie.tr = tr;
- resp_cookie.orig_req = orig_req;
-
- /* Set-up TID connection */
- /* TBD -- handle IPv6 Addresses */
- if (-1 == (fwd_req->conn = tidc_open_connection(tidc,
- inet_ntoa(aaa_servers->aaa_server_addr),
- &(fwd_req->gssctx)))) {
- fprintf(stderr, "tr_tids_req_handler: Error in tidc_open_connection.\n");
- tids_send_err_response(tids, orig_req, "Can't open connection to next hop TIDS");
- return -1;
- };
-
- /* Send a TID request */
- if (0 > (rc = tidc_fwd_request(tidc, fwd_req, &tr_tidc_resp_handler, (void *)&resp_cookie))) {
- fprintf(stderr, "Error from tidc_fwd_request, rc = %d.\n", rc);
- tids_send_err_response(tids, orig_req, "Can't forward request to next hop TIDS");
- return -1;