From cdeb724839c900f3023dfab0bdc539e3ce9be1df Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 21 Jul 2022 13:37:01 +0200 Subject: [PATCH] eap: Make sure eap_type_t is large enough to hold vendor-specific types Unless compiled with `-fshort-enumes` that's usually the case already. --- src/libstrongswan/eap/eap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstrongswan/eap/eap.h b/src/libstrongswan/eap/eap.h index b11bcb69a..f836a462f 100644 --- a/src/libstrongswan/eap/eap.h +++ b/src/libstrongswan/eap/eap.h @@ -75,6 +75,8 @@ enum eap_type_t { EAP_RADIUS = 256, /** not a method, select method dynamically based on client selection */ EAP_DYNAMIC = 257, + /** make sure the enum is large enough to hold vendor-specific types */ + EAP_UNASSIGNED = 0xffffffff, }; /**