diff options
author | Linus Nordberg <linus@nordu.net> | 2011-02-28 14:50:04 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-02-28 14:50:04 +0100 |
commit | de197899cbf0b2692cf433323e919b011723e705 (patch) | |
tree | 64845d28d9dcd5c8077e1f7e3b77f3f5964c6632 | |
parent | 682a426b16c8cc225ce952bf4aa1c7cc210dde71 (diff) |
Remove last trace of server and client in API.
-rw-r--r-- | lib/conn.c | 6 | ||||
-rw-r--r-- | lib/include/radsec/radsec.h | 10 |
2 files changed, 8 insertions, 8 deletions
@@ -184,15 +184,15 @@ rs_conn_get_callbacks(struct rs_connection *conn) } int -rs_conn_select_server (struct rs_connection *conn, const char *name) +rs_conn_select_peer (struct rs_connection *conn, const char *name) { return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, "%s: NYI", __func__); } int -rs_conn_get_current_server (struct rs_connection *conn, const char *name, - size_t buflen) +rs_conn_get_current_peer (struct rs_connection *conn, const char *name, + size_t buflen) { return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, "%s: NYI", __func__); diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h index b89d47c..125d5cd 100644 --- a/lib/include/radsec/radsec.h +++ b/lib/include/radsec/radsec.h @@ -102,16 +102,16 @@ void rs_conn_set_callbacks(struct rs_connection *conn, struct rs_conn_callbacks *cb); void rs_conn_del_callbacks(struct rs_connection *conn); struct rs_conn_callbacks *rs_conn_get_callbacks(struct rs_connection *conn); -int rs_conn_select_server(struct rs_connection *conn, const char *name); -int rs_conn_get_current_server(struct rs_connection *conn, - const char *name, - size_t buflen); +int rs_conn_select_peer(struct rs_connection *conn, const char *name); +int rs_conn_get_current_peer(struct rs_connection *conn, + const char *name, + size_t buflen); int rs_conn_receive_packet(struct rs_connection *conn, struct rs_packet *request, struct rs_packet **pkt_out); int rs_conn_fd(struct rs_connection *conn); -/* Peers. */ +/* Peer -- client and server. */ int rs_peer_create(struct rs_connection *conn, struct rs_peer **peer_out); int rs_peer_set_address(struct rs_peer *peer, const char *hostname, const char *service); |