From: Tobias Brunner Date: Thu, 21 Jul 2022 11:37:01 +0000 (+0200) Subject: eap: Make sure eap_type_t is large enough to hold vendor-specific types X-Git-Tag: 5.9.8rc1~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdeb724839c900f3023dfab0bdc539e3ce9be1df;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/libstrongswan/eap/eap.h b/src/libstrongswan/eap/eap.h index b11bcb69a5..f836a462f0 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, }; /**