Changeset 421:4cb54e85fc71 in freeDiameter
- Timestamp:
- Jul 26, 2010, 11:18:03 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- freeDiameter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/cnxctx.c
r407 r421 72 72 * - fd_cnx_getremoteid : identification of the remote peer (IP address or fqdn) 73 73 * - fd_cnx_getcred : get the remote peer TLS credentials, after handshake 74 * - fd_cnx_getendpoints : get the endpoints (IP) of the connection75 74 * 76 75 * 4) End -
freeDiameter/tests/testcnx.c
r403 r421 1442 1442 /* We could also verify that the cert_list really contains the client_cert and ca certificates */ 1443 1443 1444 #if 0 /* The following are broken since we filter local addresses */1445 /* fd_cnx_getendpoints */1446 fd_list_init(&local, NULL);1447 fd_list_init(&remote, NULL);1448 1449 /* Check the function provides the LL endpoint(s) */1450 CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) );1451 CHECK( 0, fd_ep_filter( &local, EP_FL_LL ) );1452 CHECK( 0, fd_ep_filter( &remote, EP_FL_LL ) );1453 CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 );1454 CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 );1455 CHECK( 0, fd_ep_filter( &local, 0 ) );1456 CHECK( 0, fd_ep_filter( &remote, 0 ) );1457 1458 /* Check the function provides 1 primary endpoint */1459 CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) );1460 CHECK( 0, fd_ep_filter( &local, EP_FL_PRIMARY ) );1461 CHECK( 0, fd_ep_filter( &remote, EP_FL_PRIMARY ) );1462 CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 );1463 CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 );1464 CHECK( &local, local.next->next );1465 CHECK( &remote, remote.next->next );1466 #endif1467 1468 1444 /* fd_cnx_getremoteid */ 1469 1445 str = fd_cnx_getremoteid(server_side); … … 1558 1534 /* We could also verify that the cert_list really contains the client_cert and ca certificates */ 1559 1535 1560 1561 #if 0 /* The following are broken since we filter local addresses */1562 /* fd_cnx_getendpoints */1563 fd_list_init(&local, NULL);1564 fd_list_init(&remote, NULL);1565 1566 /* Check the function provides the LL endpoint(s) */1567 CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) );1568 CHECK( 0, fd_ep_filter( &local, EP_FL_LL ) );1569 CHECK( 0, fd_ep_filter( &remote, EP_FL_LL ) );1570 CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 );1571 CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 );1572 CHECK( 0, fd_ep_filter( &local, 0 ) );1573 CHECK( 0, fd_ep_filter( &remote, 0 ) );1574 1575 /* Check the function provides 1 primary endpoint */1576 CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) );1577 CHECK( 0, fd_ep_filter( &local, EP_FL_PRIMARY ) );1578 CHECK( 0, fd_ep_filter( &remote, EP_FL_PRIMARY ) );1579 CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 );1580 CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 );1581 CHECK( &local, local.next->next );1582 CHECK( &remote, remote.next->next );1583 #endif1584 1585 1536 /* fd_cnx_getremoteid */ 1586 1537 str = fd_cnx_getremoteid(server_side);
Note: See TracChangeset
for help on using the changeset viewer.