| 538 | } |
| 539 | |
| 540 | int bind_auth(auth_api_t* api) |
| 541 | { |
| 542 | if (!api) { |
| 543 | LM_ERR("invalid parameter value\n"); |
| 544 | return -1; |
| 545 | } |
| 546 | |
| 547 | api->pre_auth = pre_auth; |
| 548 | api->post_auth = post_auth; |
| 549 | api->calc_HA1 = auth_calc_HA1; |
| 550 | api->check_response = check_response; |
| 551 | api->build_auth_hf = build_auth_hf; |
| 552 | api->build_auth_info_hf = build_auth_info_hf; |
| 553 | api->send_resp = send_resp; |
| 554 | |
| 555 | get_rpid_avp( &api->rpid_avp, &api->rpid_avp_type ); |
| 556 | |
| 557 | return 0; |
| 558 | } |
no test coverage detected