diff options
author | Linus Nordberg <linus@nordu.net> | 2010-09-15 00:49:54 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-09-15 00:49:54 +0200 |
commit | 2c5c0696e3b1ebd25c8ba6615187edc02b96da4b (patch) | |
tree | 122abf4042c59b842d2325bffba4386377fe2b06 /lib/libradsec-base.h | |
parent | c0b178a6ed8d0f539aabf3548ac620bde37db905 (diff) |
Rename rs_config to rs_handle.
A configuration will be something else.
Diffstat (limited to 'lib/libradsec-base.h')
-rw-r--r-- | lib/libradsec-base.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libradsec-base.h b/lib/libradsec-base.h index 1c5fab7..e9714fe 100644 --- a/lib/libradsec-base.h +++ b/lib/libradsec-base.h @@ -18,7 +18,7 @@ @return A file descriptor or -1 if an error occurred, in which case errno is set appropriately. */ -int rs_connect(const struct rs_config *conf, +int rs_connect(const struct rs_handle *conf, const struct sockaddr *addr, socklen_t addrlen); @@ -28,7 +28,7 @@ int rs_connect(const struct rs_config *conf, @return 0 on success or -1 if an error occurred, in which case errno is set appropriately. */ -int rs_disconnect(const struct rs_config *conf, +int rs_disconnect(const struct rs_handle *conf, int fd); /** Allocate and initialize a packet from a buffer containing a RADIUS @@ -44,7 +44,7 @@ int rs_disconnect(const struct rs_config *conf, @return A pointer to a newly allocated packet or NULL on error. */ -struct rs_packet *rs_packet_new(const struct rs_config *ctx, +struct rs_packet *rs_packet_new(const struct rs_handle *ctx, const uint8_t buf[RS_HEADER_LEN], size_t *count); @@ -61,7 +61,7 @@ struct rs_packet *rs_packet_new(const struct rs_config *ctx, @return *packet or NULL on error. If NULL, the packet has been freed and *packet is no longer valid. */ -struct rs_packet *rs_packet_parse(const struct rs_config *ctx, +struct rs_packet *rs_packet_parse(const struct rs_handle *ctx, struct rs_packet **packet, const uint8_t *buf, size_t buflen); @@ -71,7 +71,7 @@ struct rs_packet *rs_packet_parse(const struct rs_config *ctx, @param ctx Context. @param packet Packet to free. */ -void rs_packet_free(const struct rs_config *ctx, +void rs_packet_free(const struct rs_handle *ctx, struct rs_packet **packet); /** Serialize a packet. |