]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove request->async->process
authorAlan T. DeKok <aland@freeradius.org>
Thu, 22 Jun 2023 13:57:10 +0000 (09:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 22 Jun 2023 13:57:10 +0000 (09:57 -0400)
it hasn't been used for a while

src/lib/io/listen.h
src/lib/io/worker.c
src/lib/server/auth.c
src/lib/server/request.h

index 2daf4432de3f80330e2797e03321dc3eeeb798d9..610d3846bb35b5cc620f9319eae8d1fc42b6a2e7 100644 (file)
@@ -51,9 +51,6 @@ struct fr_listen {
  *     Minimal data structure to use the new code.
  */
 struct fr_async_s {
-       module_method_t         process;                //!< The current state function.
-       void                    *process_inst;          //!< Instance data for the current state machine.
-
        fr_time_t               recv_time;
        fr_event_list_t         *el;
 
index cc132f7becc945772b6f07b524c7574901a24ccf..99afd0272ba1acbeff7ed007fc5d5adcd1505f74 100644 (file)
@@ -711,7 +711,6 @@ static void worker_send_reply(fr_worker_t *worker, request_t *request, bool send
 
 #ifndef NDEBUG
        request->async->el = NULL;
-       request->async->process = NULL;
        request->async->channel = NULL;
        request->async->packet_ctx = NULL;
        request->async->listen = NULL;
index 7b2bb174ef437b59b2a86364c38da2103f642525..4a5c48eb18fbb2f1ca9ee03b47bff7c72d64682c 100644 (file)
@@ -47,11 +47,17 @@ RCSID("$Id$")
  */
 unlang_action_t rad_virtual_server(rlm_rcode_t *p_result, request_t *request)
 {
-       rlm_rcode_t final;
-
-       RDEBUG("Virtual server %s received request", cf_section_name2(unlang_call_current(request)));
+       RDEBUG("Virtual server %s received request NOT IMPLEMENTED", cf_section_name2(unlang_call_current(request)));
        log_request_pair_list(L_DBG_LVL_1, request, NULL, &request->request_pairs, NULL);
 
+       /*
+        *      Just push the virtual server onto the stack?
+        *
+        *      Except that the caller expects this function to be run
+        *      _synchronously_, and all of that needs to be fixed.
+        */
+       RETURN_MODULE_FAIL;
+
 #if 0
        {
                fr_pair_t *username, *parent_username = NULL;
@@ -155,7 +161,6 @@ unlang_action_t rad_virtual_server(rlm_rcode_t *p_result, request_t *request)
                        }
                }
        }
-#endif
 
        if (!request->async) {
 #ifdef STATIC_ANALYZER
@@ -185,6 +190,7 @@ unlang_action_t rad_virtual_server(rlm_rcode_t *p_result, request_t *request)
        }
 
        RETURN_MODULE_OK;
+#endif
 }
 
 /*
index 65b6cb23ead38ca32cb76133a9e410ea2e666371..e7352a6e12a14362aac4f2eb8754af5805985a2b 100644 (file)
@@ -75,9 +75,6 @@ typedef enum request_state_t {
        REQUEST_OTHER_4,
 } request_state_t;
 
-typedef        void (*fr_request_process_t)(request_t *, fr_signal_t); //!< Function handler for requests.
-typedef        rlm_rcode_t (*RAD_REQUEST_FUNP)(request_t *);
-
 extern HIDDEN fr_dict_attr_t const *request_attr_root;
 extern fr_dict_attr_t const *request_attr_request;
 extern fr_dict_attr_t const *request_attr_reply;