diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-04-30 23:23:41 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-04-30 23:23:41 -0800 |
| commit | d824cb828d265911dc594712748c2f28066af8e3 (patch) | |
| tree | b61db66a41d10094271fba4d4310ac577d3dc677 | |
| parent | 70f179cd12ab6f1e563af1cefa355a48dd978a15 (diff) | |
| download | tinytac-d824cb828d265911dc594712748c2f28066af8e3.tar.gz tinytac-d824cb828d265911dc594712748c2f28066af8e3.tar.bz2 tinytac-d824cb828d265911dc594712748c2f28066af8e3.tar.xz tinytac-d824cb828d265911dc594712748c2f28066af8e3.zip | |
libtinytac: removing unused struct definitions
| -rw-r--r-- | lib/libtinytac/lproto.h | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/lib/libtinytac/lproto.h b/lib/libtinytac/lproto.h index d24029e..40bb739 100644 --- a/lib/libtinytac/lproto.h +++ b/lib/libtinytac/lproto.h | |||
| @@ -67,106 +67,6 @@ | |||
| 67 | ////////////////// | 67 | ////////////////// |
| 68 | #pragma mark - Data Types | 68 | #pragma mark - Data Types |
| 69 | 69 | ||
| 70 | // RFC 8907 Section 4.1. The TACACS+ Packet Header | ||
| 71 | typedef struct tinytac_header | ||
| 72 | { | ||
| 73 | uint8_t pckt_version; // 4 bits major and 4 bits minor | ||
| 74 | uint8_t pckt_type; | ||
| 75 | uint8_t pckt_seq_no; | ||
| 76 | uint8_t pckt_flags; | ||
| 77 | uint32_t pckt_session_id; | ||
| 78 | uint32_t pckt_length; | ||
| 79 | uint8_t pckt_body[]; | ||
| 80 | } tinyrad_header_t; | ||
| 81 | |||
| 82 | |||
| 83 | // RFC 8907 Section 5.1. The Authentication START Packet Body | ||
| 84 | typedef struct tinytac_packet_authen_start | ||
| 85 | { | ||
| 86 | uint8_t bdy_action; | ||
| 87 | uint8_t bdy_priv_lvl; | ||
| 88 | uint8_t bdy_authen_type; | ||
| 89 | uint8_t bdy_authen_service; | ||
| 90 | uint8_t bdy_user_len; | ||
| 91 | uint8_t bdy_port_len; | ||
| 92 | uint8_t bdy_rem_addr_len; | ||
| 93 | uint8_t bdy_data_len; | ||
| 94 | uint8_t bdy_bytes[]; | ||
| 95 | } tinyrad_authen_start_t; | ||
| 96 | |||
| 97 | |||
| 98 | // RFC 8907 Section 5.2. The Authentication REPLY Packet Body | ||
| 99 | typedef struct tinytac_packet_authen_reply | ||
| 100 | { | ||
| 101 | uint8_t bdy_status; | ||
| 102 | uint8_t bdy_flags; | ||
| 103 | uint16_t bdy_server_msg_len; | ||
| 104 | uint16_t bdy_data_len; | ||
| 105 | uint8_t bdy_bytes[]; | ||
| 106 | } tinyrad_authen_reply_t; | ||
| 107 | |||
| 108 | |||
| 109 | // RFC 8907 Section 5.3. The Authentication CONTINUE Packet Body | ||
| 110 | typedef struct tinytac_packet_authen_continue | ||
| 111 | { | ||
| 112 | uint16_t bdy_user_msg_len; | ||
| 113 | uint16_t bdy_data_len; | ||
| 114 | uint8_t bdy_flags; | ||
| 115 | uint8_t bdy_bytes[]; | ||
| 116 | } tinyrad_authen_contiue_t; | ||
| 117 | |||
| 118 | |||
| 119 | // RFC 8907 Section 6.1. The Authorization REQUEST Packet Body | ||
| 120 | typedef struct tinytac_packet_author_request | ||
| 121 | { | ||
| 122 | uint8_t bdy_authen_method; | ||
| 123 | uint8_t bdy_priv_lvl; | ||
| 124 | uint8_t bdy_authen_type; | ||
| 125 | uint8_t bdy_authen_service; | ||
| 126 | uint8_t bdy_user_len; | ||
| 127 | uint8_t bdy_port_len; | ||
| 128 | uint8_t bdy_rem_addr_len; | ||
| 129 | uint8_t bdy_arg_cnt; | ||
| 130 | uint8_t bdy_bytes[]; | ||
| 131 | } tinyrad_author_request_t; | ||
| 132 | |||
| 133 | |||
| 134 | // RFC 8907 Section 6.2. The Authorization REPLY Packet Body | ||
| 135 | typedef struct tinytac_packet_author_reply | ||
| 136 | { | ||
| 137 | uint8_t bdy_status; | ||
| 138 | uint8_t bdy_arg_cnt; | ||
| 139 | uint16_t bdy_server_msg_len; | ||
| 140 | uint16_t bdy_data_len; | ||
| 141 | uint8_t bdy_bytes[]; | ||
| 142 | } tinyrad_author_reply_t; | ||
| 143 | |||
| 144 | |||
| 145 | // RFC 8907 Section 7.1. The Account REQUEST Packet Body | ||
| 146 | typedef struct tinytac_packet_acct_reqeust | ||
| 147 | { | ||
| 148 | uint8_t bdy_flags; | ||
| 149 | uint8_t bdy_authen_method; | ||
| 150 | uint8_t bdy_priv_lvl; | ||
| 151 | uint8_t bdy_authen_type; | ||
| 152 | uint8_t bdy_authen_service; | ||
| 153 | uint8_t bdy_user_len; | ||
| 154 | uint8_t bdy_port_len; | ||
| 155 | uint8_t bdy_rem_addr_len; | ||
| 156 | uint8_t bdy_arg_cnt; | ||
| 157 | uint8_t bdy_bytes[]; | ||
| 158 | } tinyrad_acct_request_t; | ||
| 159 | |||
| 160 | |||
| 161 | // RFC 8907 Section 7.2. The Accounting REPLY Packet Body | ||
| 162 | typedef struct tinytac_packet_acct_reply | ||
| 163 | { | ||
| 164 | uint16_t bdy_server_msg_len; | ||
| 165 | uint16_t bdy_data_len; | ||
| 166 | uint8_t bdy_status; | ||
| 167 | uint8_t bdy_bytes[]; | ||
| 168 | } tinyrad_acct_reply_t; | ||
| 169 | |||
| 170 | 70 | ||
| 171 | ////////////////// | 71 | ////////////////// |
| 172 | // // | 72 | // // |
| @@ -175,10 +75,5 @@ typedef struct tinytac_packet_acct_reply | |||
| 175 | ////////////////// | 75 | ////////////////// |
| 176 | #pragma mark - Prototypes | 76 | #pragma mark - Prototypes |
| 177 | 77 | ||
| 178 | //-------------------// | ||
| 179 | // object prototypes // | ||
| 180 | //-------------------// | ||
| 181 | #pragma mark object prototypes | ||
| 182 | |||
| 183 | 78 | ||
| 184 | #endif /* end of header */ | 79 | #endif /* end of header */ |
