]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
eap: Make sure eap_type_t is large enough to hold vendor-specific types
authorTobias Brunner <tobias@strongswan.org>
Thu, 21 Jul 2022 11:37:01 +0000 (13:37 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Sep 2022 11:53:44 +0000 (13:53 +0200)
Unless compiled with `-fshort-enumes` that's usually the case already.

src/libstrongswan/eap/eap.h

index b11bcb69a57c5d68f6c77a93bbd48560822e4970..f836a462f0ca99a112493d3aa792c6a902817831 100644 (file)
@@ -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,
 };
 
 /**