summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/conn.c6
-rw-r--r--lib/include/radsec/radsec.h10
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/conn.c b/lib/conn.c
index 784c316..3fb6a97 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -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);