- * Before sending an Access-Reject, call the modules in the
- * Post-Auth-Type REJECT stanza.
- */
-static int rad_postauth_reject(REQUEST *request)
-{
- int result;
- VALUE_PAIR *tmp;
- DICT_VALUE *dval;
-
- dval = dict_valbyname(PW_POST_AUTH_TYPE, "REJECT");
- if (dval) {
- /* Overwrite the Post-Auth-Type with the value REJECT */
- pairdelete(&request->config_items, PW_POST_AUTH_TYPE);
- tmp = paircreate(PW_POST_AUTH_TYPE, PW_TYPE_INTEGER);
- tmp->lvalue = dval->value;
- pairadd(&request->config_items, tmp);
- result = rad_postauth(request);
- } else {
- /* No REJECT stanza */
- result = RLM_MODULE_OK;
- }
- return result;
-}
-
-/*