Mercurial > hg > freeDiameter
changeset 421:4cb54e85fc71
Remove all references to fd_cnx_getendpoints
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 26 Jul 2010 11:18:03 +0900 |
parents | c8a61dabea55 |
children | 7e0757b01ecb |
files | freeDiameter/cnxctx.c freeDiameter/tests/testcnx.c |
diffstat | 2 files changed, 0 insertions(+), 50 deletions(-) [+] |
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c Mon Jul 19 16:46:33 2010 +0900 +++ b/freeDiameter/cnxctx.c Mon Jul 26 11:18:03 2010 +0900 @@ -71,7 +71,6 @@ * - fd_cnx_getid : retrieve a descriptive string for the connection (for debug) * - fd_cnx_getremoteid : identification of the remote peer (IP address or fqdn) * - fd_cnx_getcred : get the remote peer TLS credentials, after handshake - * - fd_cnx_getendpoints : get the endpoints (IP) of the connection * * 4) End * - fd_cnx_destroy
--- a/freeDiameter/tests/testcnx.c Mon Jul 19 16:46:33 2010 +0900 +++ b/freeDiameter/tests/testcnx.c Mon Jul 26 11:18:03 2010 +0900 @@ -1441,30 +1441,6 @@ CHECK( 1, (cert_list_size > 0) ? 1 : 0 ); /* We could also verify that the cert_list really contains the client_cert and ca certificates */ - #if 0 /* The following are broken since we filter local addresses */ - /* fd_cnx_getendpoints */ - fd_list_init(&local, NULL); - fd_list_init(&remote, NULL); - - /* Check the function provides the LL endpoint(s) */ - CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) ); - CHECK( 0, fd_ep_filter( &local, EP_FL_LL ) ); - CHECK( 0, fd_ep_filter( &remote, EP_FL_LL ) ); - CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 ); - CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 ); - CHECK( 0, fd_ep_filter( &local, 0 ) ); - CHECK( 0, fd_ep_filter( &remote, 0 ) ); - - /* Check the function provides 1 primary endpoint */ - CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) ); - CHECK( 0, fd_ep_filter( &local, EP_FL_PRIMARY ) ); - CHECK( 0, fd_ep_filter( &remote, EP_FL_PRIMARY ) ); - CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 ); - CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 ); - CHECK( &local, local.next->next ); - CHECK( &remote, remote.next->next ); - #endif - /* fd_cnx_getremoteid */ str = fd_cnx_getremoteid(server_side); CHECK( 1, str ? 1 : 0 ); @@ -1557,31 +1533,6 @@ CHECK( 1, (cert_list_size > 0) ? 1 : 0 ); /* We could also verify that the cert_list really contains the client_cert and ca certificates */ - - #if 0 /* The following are broken since we filter local addresses */ - /* fd_cnx_getendpoints */ - fd_list_init(&local, NULL); - fd_list_init(&remote, NULL); - - /* Check the function provides the LL endpoint(s) */ - CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) ); - CHECK( 0, fd_ep_filter( &local, EP_FL_LL ) ); - CHECK( 0, fd_ep_filter( &remote, EP_FL_LL ) ); - CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 ); - CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 ); - CHECK( 0, fd_ep_filter( &local, 0 ) ); - CHECK( 0, fd_ep_filter( &remote, 0 ) ); - - /* Check the function provides 1 primary endpoint */ - CHECK( 0, fd_cnx_getendpoints(server_side, &local, &remote) ); - CHECK( 0, fd_ep_filter( &local, EP_FL_PRIMARY ) ); - CHECK( 0, fd_ep_filter( &remote, EP_FL_PRIMARY ) ); - CHECK( 0, FD_IS_LIST_EMPTY(&local) ? 1 : 0 ); - CHECK( 0, FD_IS_LIST_EMPTY(&remote) ? 1 : 0 ); - CHECK( &local, local.next->next ); - CHECK( &remote, remote.next->next ); - #endif - /* fd_cnx_getremoteid */ str = fd_cnx_getremoteid(server_side); CHECK( 1, str ? 1 : 0 );