From a62d1d54c6de73949a5200ae4e76485603ec4185 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 11 Jun 2024 15:12:58 -0400 Subject: remove unused structures --- src/radius.h | 60 +++++------------------------------------------------------- 1 file changed, 5 insertions(+), 55 deletions(-) diff --git a/src/radius.h b/src/radius.h index 2ee11dc..0fd2731 100644 --- a/src/radius.h +++ b/src/radius.h @@ -119,7 +119,11 @@ typedef struct pw_auth_hdr { #define PW_NAS_PORT_TYPE 61 /* integer */ #define PW_PORT_LIMIT 62 /* integer */ #define PW_LOGIN_LAT_PORT 63 /* string */ -#define PW_PROMPT 64 /* integer */ +#define PW_PROMPT 76 /* integer */ + +#define PW_MESSAGE_AUTHENTICATOR 80 /* octets */ + +#define PW_MANAGEMENT_PRIVILEGE_LEVEL 136 /* integer */ #define PW_NAS_IPV6_ADDRESS 95 /* octets */ @@ -175,58 +179,4 @@ typedef struct pw_auth_hdr { #define PW_STATUS_STOP 2 #define PW_STATUS_ALIVE 3 -/* Default Database File Names */ - -#define RADIUS_DIR "/etc/raddb" -#define RADACCT_DIR "/usr/adm/radacct" - -#define RADIUS_DICTIONARY "dictionary" -#define RADIUS_CLIENTS "clients" -#define RADIUS_USERS "users" -#define RADIUS_HOLD "holdusers" -#define RADIUS_LOG "logfile" - -/* Server data structures */ - -typedef struct dict_attr { - char name[32]; - int value; - int type; - struct dict_attr *next; -} DICT_ATTR; - -typedef struct dict_value { - char attrname[32]; - char name[32]; - int value; - struct dict_value *next; -} DICT_VALUE; - -typedef struct value_pair { - char name[32]; - int attribute; - int type; - uint32_t lvalue; - char strvalue[AUTH_STRING_LEN]; - struct value_pair *next; -} VALUE_PAIR; - -typedef struct auth_req { - uint32_t ipaddr; - uint16_t udp_port; - uint8_t id; - uint8_t code; - uint8_t vector[16]; - uint8_t secret[16]; - VALUE_PAIR *request; - int child_pid; /* Process ID of child */ - uint32_t timestamp; - struct auth_req *next; /* Next active request */ -} AUTH_REQ; - -#define SECONDS_PER_DAY 86400 -#define MAX_REQUEST_TIME 30 -#define CLEANUP_DELAY 5 -#define MAX_REQUESTS 100 - #endif /* RADIUS_H */ -- cgit v1.2.3