| 2059 | } |
| 2060 | |
| 2061 | int _dm_get_message_response(struct dm_cond *cond, char **rpl_avps) |
| 2062 | { |
| 2063 | int rc; |
| 2064 | |
| 2065 | LM_DBG("reply received, Result-Code: %d (%s)\n", cond->rpl.rc, |
| 2066 | cond->rpl.is_error ? "FAILURE" : "SUCCESS"); |
| 2067 | rc = (cond->rpl.is_error ? -1 : 0); |
| 2068 | |
| 2069 | if (rpl_avps) { |
| 2070 | *rpl_avps = cJSON_PrintUnformatted(cond->rpl.json); |
| 2071 | LM_DBG("AVPs: %s\n", *rpl_avps); |
| 2072 | } |
| 2073 | return rc; |
| 2074 | } |
| 2075 | |
| 2076 | int _dm_send_message(aaa_conn *_, aaa_message *msg, struct dm_cond **reply_cond) |
| 2077 | { |
no test coverage detected