aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 15:26:57 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 15:26:57 (GMT)
commit1489e11a9442929c96a00c0090c8912577fd2315 (patch)
tree338684790c87ef9d8155315525bef6ac0408b27c /src/radius/radius.h
parentaa235d2ef75d7f20d19b8ec5416cd63222e4d64e (diff)
downloadhostap-1489e11a9442929c96a00c0090c8912577fd2315.zip
hostap-1489e11a9442929c96a00c0090c8912577fd2315.tar.gz
hostap-1489e11a9442929c96a00c0090c8912577fd2315.tar.bz2
Make struct radius_msg private to radius.c
This is internal data structure for RADIUS message handling and external code should not touch it directly.
Diffstat (limited to 'src/radius/radius.h')
-rw-r--r--src/radius/radius.h36
1 files changed, 3 insertions, 33 deletions
diff --git a/src/radius/radius.h b/src/radius/radius.h
index c4c80be..a3cdac0 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -173,39 +173,7 @@ struct radius_ms_mppe_keys {
};
-/**
- * struct radius_msg - RADIUS message structure for new and parsed messages
- */
-struct radius_msg {
- /**
- * buf - Allocated buffer for RADIUS message
- */
- struct wpabuf *buf;
-
- /**
- * hdr - Pointer to the RADIUS header in buf
- */
- struct radius_hdr *hdr;
-
- /**
- * attr_pos - Array of indexes to attributes
- *
- * The values are number of bytes from buf to the beginning of
- * struct radius_attr_hdr.
- */
- size_t *attr_pos;
-
- /**
- * attr_size - Total size of the attribute pointer array
- */
- size_t attr_size;
-
- /**
- * attr_used - Total number of attributes in the array
- */
- size_t attr_used;
-};
-
+struct radius_msg;
/* Default size to be allocated for new RADIUS messages */
#define RADIUS_DEFAULT_MSG_SIZE 1024
@@ -220,6 +188,8 @@ struct radius_msg {
/* MAC address ASCII format for non-802.1X use */
#define RADIUS_ADDR_FORMAT "%02x%02x%02x%02x%02x%02x"
+struct radius_hdr * radius_msg_get_hdr(struct radius_msg *msg);
+struct wpabuf * radius_msg_get_buf(struct radius_msg *msg);
struct radius_msg * radius_msg_new(u8 code, u8 identifier);
void radius_msg_free(struct radius_msg *msg);
void radius_msg_dump(struct radius_msg *msg);