Navigation


Changeset 421:4cb54e85fc71 in freeDiameter


Ignore:
Timestamp:
Jul 26, 2010, 11:18:03 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Remove all references to fd_cnx_getendpoints

Location:
freeDiameter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/cnxctx.c

    r407 r421  
    7272 *    - fd_cnx_getremoteid : identification of the remote peer (IP address or fqdn)
    7373 *    - fd_cnx_getcred : get the remote peer TLS credentials, after handshake
    74  *    - fd_cnx_getendpoints : get the endpoints (IP) of the connection
    7574 *
    7675 * 4) End
  • freeDiameter/tests/testcnx.c

    r403 r421  
    14421442                /* We could also verify that the cert_list really contains the client_cert and ca certificates */
    14431443               
    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                 #endif
    1467                
    14681444                /* fd_cnx_getremoteid */
    14691445                str = fd_cnx_getremoteid(server_side);
     
    15581534                /* We could also verify that the cert_list really contains the client_cert and ca certificates */
    15591535               
    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                 #endif
    1584                
    15851536                /* fd_cnx_getremoteid */
    15861537                str = fd_cnx_getremoteid(server_side);
Note: See TracChangeset for help on using the changeset viewer.