diff options
author | Linus Nordberg <linus@nordu.net> | 2010-10-10 11:47:43 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-10-10 11:47:43 +0200 |
commit | 5d1a02eb41025020b8c25ab927baca978fb733a9 (patch) | |
tree | 6f58f5792f06ea61ac817b3cdb601ee2220b847b /lib | |
parent | c4a0f86a63acd899dbf29c03100c4735011ceeac (diff) |
Rename rs_req_* --> rs_request_.
Contributed by Luke Howard.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/examples/client-blocking.c | 4 | ||||
-rw-r--r-- | lib/include/radsec/request.h | 6 | ||||
-rw-r--r-- | lib/request.c | 8 |
3 files changed, 11 insertions, 7 deletions
diff --git a/lib/examples/client-blocking.c b/lib/examples/client-blocking.c index bb9e653..66f4859 100644 --- a/lib/examples/client-blocking.c +++ b/lib/examples/client-blocking.c @@ -63,9 +63,9 @@ blocking_client (const char *av1, const char *av2) { struct rs_request *request; - if (rs_request_new (conn, &request)) + if (rs_request_create (conn, &request)) return rs_err_conn_pop (conn); - if (rs_req_send (request, req, &resp)) + if (rs_request_send (request, req, &resp)) return rs_err_conn_pop (conn); rs_request_destroy (request); } diff --git a/lib/include/radsec/request.h b/lib/include/radsec/request.h index 3827da5..939345e 100644 --- a/lib/include/radsec/request.h +++ b/lib/include/radsec/request.h @@ -2,6 +2,6 @@ struct rs_request; -int rs_req_create(struct rs_connection *conn, struct rs_request **req_out); -void rs_req_destroy(struct rs_request *request); -int rs_req_send(struct rs_request *request, struct rs_packet *req, struct rs_packet **resp); +int rs_request_create(struct rs_connection *conn, struct rs_request **req_out); +void rs_request_destroy(struct rs_request *request); +int rs_request_send(struct rs_request *request, struct rs_packet *req, struct rs_packet **resp); diff --git a/lib/request.c b/lib/request.c index 3d4b096..f0b15e0 100644 --- a/lib/request.c +++ b/lib/request.c @@ -1,14 +1,18 @@ /* See the file COPYING for licensing information. */ #include <time.h> +#include <assert.h> #include <event2/event.h> #include <radsec/radsec.h> #include <radsec/radsec-impl.h> #include <radsec/request.h> #include <radsec/request-impl.h> +static int +_rs_decrypt_mppe(struct rs_request *request, VALUE_PAIR *vp); + int -rs_req_create (struct rs_connection *conn, struct rs_request **req_out) +rs_request_create (struct rs_connection *conn, struct rs_request **req_out) { struct rs_request *req = rs_malloc (conn->ctx, sizeof(*req)); if (!req) @@ -20,7 +24,7 @@ rs_req_create (struct rs_connection *conn, struct rs_request **req_out) } void -rs_req_destroy(struct rs_request *request) +rs_request_destroy (struct rs_request *request) { rs_packet_destroy (request->req); rs_packet_destroy (request->resp); |