summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore14
-rw-r--r--lib/include/radsec/radsec.h4
-rw-r--r--lib/packet.c3
3 files changed, 17 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 51ba377..d06b205 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,18 @@
.gitignore
-.~
+*.*~*
TAGS
lib/doc
*.o
*.gch
+.deps
+.libs
+o/
+autom4te.cache
+config.log
+config.h*
+config.status
+configure
+aclocal.m4
+*.lo
+obs/
+
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h
index dd784cc..8e97072 100644
--- a/lib/include/radsec/radsec.h
+++ b/lib/include/radsec/radsec.h
@@ -112,8 +112,8 @@ void rs_server_set_tries(struct rs_peer *server, int tries);
/* Packet. */
int rs_packet_create_acc_request(struct rs_connection *conn,
struct rs_packet **pkt,
- const char *user_name,
- const char *user_pw);
+ const char *user_name, /* FIXME: remove? */
+ const char *user_pw); /* FIXME: remove? */
void rs_packet_destroy(struct rs_packet *pkt);
void rs_packet_add_attr(struct rs_packet *pkt, struct rs_attr *attr);
int rs_packet_send(struct rs_packet *pkt, void *data);
diff --git a/lib/packet.c b/lib/packet.c
index 7872a5a..cdd094a 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -203,7 +203,7 @@ _read_cb (struct bufferevent *bev, void *ctx)
return;
}
- /* decode and decrypt */
+ /* Decode and decrypt. */
if (rad_decode (pkt->rpkt, pkt->original->rpkt,
pkt->conn->active_peer->secret))
{
@@ -486,6 +486,7 @@ rs_packet_destroy(struct rs_packet *pkt)
{
if (pkt)
{
+ // TODO: free all attributes
rad_free (&pkt->rpkt);
rs_free (pkt->conn->ctx, pkt);
}