aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-01-10 15:23:07 +0000
committerMichael Brown <mcb30@ipxe.org>2024-01-10 16:22:32 +0000
commit08fcb0e8fba4ef1dc770253bfbb330fa0c02e096 (patch)
tree8bdf5b3b0afd4360b015cea4459410ff0b38614c /src/include
parentc6226f104e22db7d19b4c983e962d84b5665c04b (diff)
downloadipxe-08fcb0e8fba4ef1dc770253bfbb330fa0c02e096.zip
ipxe-08fcb0e8fba4ef1dc770253bfbb330fa0c02e096.tar.gz
ipxe-08fcb0e8fba4ef1dc770253bfbb330fa0c02e096.tar.bz2
[eap] Add support for the MD5-Challenge authentication type
RFC 3748 states that support for MD5-Challenge is mandatory for EAP implementations. The MD5 and CHAP code is already included in the default build since it is required by iSCSI, and so this does not substantially increase the binary size. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/eap.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ipxe/eap.h b/src/include/ipxe/eap.h
index bbae517..cf1c7c0 100644
--- a/src/include/ipxe/eap.h
+++ b/src/include/ipxe/eap.h
@@ -49,6 +49,17 @@ struct eap_message {
/** EAP NAK */
#define EAP_TYPE_NAK 3
+/** EAP MD5 challenge request/response */
+#define EAP_TYPE_MD5 4
+
+/** EAP MD5 challenge request/response type data */
+struct eap_md5 {
+ /** Value length */
+ uint8_t len;
+ /** Value */
+ uint8_t value[0];
+} __attribute__ (( packed ));
+
/** EAP success */
#define EAP_CODE_SUCCESS 3