From 33d85eb74c4c7b71886e2ba0c2451d4526d412dd Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 5 Oct 2010 22:09:15 +0200 Subject: Add rs_conn_fd(). --- lib/radsec.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/radsec.c') diff --git a/lib/radsec.c b/lib/radsec.c index 4e3c6ba..c6f9876 100644 --- a/lib/radsec.c +++ b/lib/radsec.c @@ -267,3 +267,10 @@ rs_conn_get_current_server(struct rs_connection *conn, const char *name, return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, "%s: NYI", __func__); } + +int rs_conn_fd(struct rs_connection *conn) +{ + assert (conn); + assert (conn->active_peer); + return conn->active_peer->fd; +} -- cgit v1.1