merged EAP framework from branch into trunk
includes a lot of other modifications
This commit is contained in:
@@ -43,6 +43,7 @@ ENUM(status_names, SUCCESS, DESTROY_ME,
|
||||
"VERIFY_ERROR",
|
||||
"INVALID_STATE",
|
||||
"DESTROY_ME",
|
||||
"NEED_MORE",
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -58,6 +59,18 @@ void *clalloc(void * pointer, size_t size)
|
||||
return (data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Described in header.
|
||||
*/
|
||||
void memxor(u_int8_t dest[], u_int8_t src[], size_t n)
|
||||
{
|
||||
size_t i;
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
dest[i] ^= src[i];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* We use a single mutex for all refcount variables. This
|
||||
* is not optimal for performance, but the critical section
|
||||
|
||||
Reference in New Issue
Block a user