diff options
author | Alan T. DeKok <aland@freeradius.org> | 2024-06-11 15:12:58 -0400 |
---|---|---|
committer | Robert Gingras <rgingras@mieweb.com> | 2025-03-31 11:25:49 -0400 |
commit | a62d1d54c6de73949a5200ae4e76485603ec4185 (patch) | |
tree | 6c3ec6f989bb4414fb89bf77b654675f5f8f1a3c /src | |
parent | 00f4bac96a2b2531907182da2ecb49f2d6c712f6 (diff) | |
download | libpam-radius-auth-a62d1d54c6de73949a5200ae4e76485603ec4185.tar.gz libpam-radius-auth-a62d1d54c6de73949a5200ae4e76485603ec4185.zip |
remove unused structures
Diffstat (limited to 'src')
-rw-r--r-- | src/radius.h | 60 |
1 files 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 */ |