use predefined Microsoft PEN
This commit is contained in:
@@ -18,13 +18,9 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <pen/pen.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/**
|
|
||||||
* Vendor-Id of Microsoft specific attributes
|
|
||||||
*/
|
|
||||||
#define VENDOR_ID_MICROSOFT 311
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Microsoft specific vendor attributes
|
* Microsoft specific vendor attributes
|
||||||
*/
|
*/
|
||||||
@@ -308,7 +304,7 @@ METHOD(radius_socket_t, decrypt_msk, chunk_t,
|
|||||||
data.len > sizeof(*mppe_key))
|
data.len > sizeof(*mppe_key))
|
||||||
{
|
{
|
||||||
mppe_key = (void*)data.ptr;
|
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))
|
mppe_key->length == data.len - sizeof(mppe_key->id))
|
||||||
{
|
{
|
||||||
data = chunk_create(mppe_key->key, data.len - sizeof(*mppe_key));
|
data = chunk_create(mppe_key->key, data.len - sizeof(*mppe_key));
|
||||||
|
|||||||
Reference in New Issue
Block a user