]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
use predefined Microsoft PEN
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 Mar 2012 18:23:35 +0000 (19:23 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 Mar 2012 18:23:35 +0000 (19:23 +0100)
src/libradius/radius_socket.c

index 70500f5560f8bd0fa29d9a665f73fe7e8f6ccad5..6313595be1d5042a105a2e4bd93955378fc0aa19 100644 (file)
 #include <errno.h>
 #include <unistd.h>
 
+#include <pen/pen.h>
 #include <debug.h>
 
-/**
- * Vendor-Id of Microsoft specific attributes
- */
-#define VENDOR_ID_MICROSOFT 311
-
 /**
  * Microsoft specific vendor attributes
  */
@@ -308,7 +304,7 @@ METHOD(radius_socket_t, decrypt_msk, chunk_t,
                        data.len > sizeof(*mppe_key))
                {
                        mppe_key = (void*)data.ptr;
-                       if (ntohl(mppe_key->id) == VENDOR_ID_MICROSOFT &&
+                       if (ntohl(mppe_key->id) == PEN_MICROSOFT &&
                                mppe_key->length == data.len - sizeof(mppe_key->id))
                        {
                                data = chunk_create(mppe_key->key, data.len - sizeof(*mppe_key));