summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-01 13:53:34 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-01 13:53:34 +0100
commit809dbe710fe6aa1a7d7369e1ad78ea916e2b874f (patch)
tree3eaded6820144070dff8ac7f9e8440aab0ff2fa7 /lib
parentda2100919c081204ae2fe48e8e3c156bf717d353 (diff)
Error handling cleanup 2.
RSE_NOSYS doesn't need a string.
Diffstat (limited to 'lib')
-rw-r--r--lib/conn.c15
-rw-r--r--lib/packet.c3
-rw-r--r--lib/radsec.c3
3 files changed, 9 insertions, 12 deletions
diff --git a/lib/conn.c b/lib/conn.c
index 924c225..904596b 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -103,8 +103,7 @@ int
rs_conn_add_listener (struct rs_connection *conn, rs_conn_type_t type,
const char *hostname, int port)
{
- return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__,
- "%s: NYI", __func__);
+ return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, NULL);
}
@@ -142,14 +141,16 @@ rs_conn_destroy (struct rs_connection *conn)
if (conn->evb)
event_base_free (conn->evb);
+ /* TODO: free tls_ctx */
+ /* TODO: free tls_ssl */
+
return 0;
}
int
rs_conn_set_eventbase (struct rs_connection *conn, struct event_base *eb)
{
- return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__,
- "%s: NYI", __func__);
+ return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, NULL);
}
void
@@ -178,16 +179,14 @@ rs_conn_get_callbacks(struct rs_connection *conn)
int
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__);
+ return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, NULL);
}
int
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__);
+ return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, NULL);
}
int rs_conn_fd (struct rs_connection *conn)
diff --git a/lib/packet.c b/lib/packet.c
index 7b8d1cc..6760cee 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -496,8 +496,7 @@ _init_bev (struct rs_connection *conn, struct rs_peer *peer)
break;
case RS_CONN_TYPE_DTLS:
- return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__,
- "%s: NYI", __func__);
+ return rs_err_conn_push_fl (conn, RSE_NOSYS, __FILE__, __LINE__, NULL);
#endif /* RS_ENABLE_TLS */
default:
diff --git a/lib/radsec.c b/lib/radsec.c
index 45c4f42..6cc9fe4 100644
--- a/lib/radsec.c
+++ b/lib/radsec.c
@@ -149,6 +149,5 @@ void rs_context_destroy(struct rs_context *ctx)
int rs_context_set_alloc_scheme(struct rs_context *ctx,
struct rs_alloc_scheme *scheme)
{
- return rs_err_ctx_push_fl (ctx, RSE_NOSYS, __FILE__, __LINE__,
- "%s: NYI", __func__);
+ return rs_err_ctx_push_fl (ctx, RSE_NOSYS, __FILE__, __LINE__, NULL);
}