blob: b5e9173af6db6982c8c620e09dc6a3f33c834034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "incs.h"
/*
* request/response association
*/
void test05(void)
{
RADIUS_PACKET *req0, *req1, *resp;
req0 = radius_new_request_packet(RADIUS_CODE_ACCESS_REQUEST);
req1 = radius_new_request_packet(RADIUS_CODE_ACCESS_REQUEST);
CHECK(radius_get_request_packet(req0) == NULL);
CHECK(radius_get_request_packet(req1) == NULL);
resp = radius_new_response_packet(RADIUS_CODE_ACCESS_ACCEPT, req0);
CHECK(radius_get_request_packet(resp) == req0);
radius_set_request_packet(resp, req1);
CHECK(radius_get_request_packet(resp) == req1);
}
ADD_TEST(test05)
|