summaryrefslogtreecommitdiff
path: root/lib/include/radsec
diff options
context:
space:
mode:
Diffstat (limited to 'lib/include/radsec')
-rw-r--r--lib/include/radsec/radsec.h8
-rw-r--r--lib/include/radsec/request.h11
2 files changed, 11 insertions, 8 deletions
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h
index d398e8d..b89d47c 100644
--- a/lib/include/radsec/radsec.h
+++ b/lib/include/radsec/radsec.h
@@ -125,10 +125,10 @@ 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);
struct radius_packet *rs_packet_frpkt(struct rs_packet *pkt);
-int rs_packet_create_auth_request(struct rs_connection *conn,
- struct rs_packet **pkt,
- const char *user_name,
- const char *user_pw);
+int rs_packet_create_authn_request(struct rs_connection *conn,
+ struct rs_packet **pkt,
+ const char *user_name,
+ const char *user_pw);
/* Attribute. */
/* FIXME: Replace (or complement) with a wrapper for paircreate(). */
diff --git a/lib/include/radsec/request.h b/lib/include/radsec/request.h
index ca7b688..4a540bd 100644
--- a/lib/include/radsec/request.h
+++ b/lib/include/radsec/request.h
@@ -6,10 +6,13 @@ struct rs_request;
extern "C" {
#endif
-int rs_request_create(struct rs_connection *conn,
- struct rs_request **req_out,
- const char *user_name,
- const char *user_pw);
+int rs_request_create(struct rs_connection *conn, struct rs_request **req_out);
+void rs_request_add_reqpkt(struct rs_request *req, struct rs_packet *reqpkt);
+
+int rs_request_create_authn(struct rs_connection *conn,
+ struct rs_request **req_out,
+ const char *user_name,
+ const char *user_pw);
int rs_request_send(struct rs_request *request, struct rs_packet **resp_msg);
void rs_request_destroy(struct rs_request *request);