summaryrefslogtreecommitdiff
path: root/lib/libradsec-impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libradsec-impl.h')
-rw-r--r--lib/libradsec-impl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libradsec-impl.h b/lib/libradsec-impl.h
index 170e90c..939cdd9 100644
--- a/lib/libradsec-impl.h
+++ b/lib/libradsec-impl.h
@@ -4,6 +4,7 @@
/* See the file COPYING for licensing information. */
#include <freeradius/libradius.h>
+#include <event2/util.h>
/* Constants. */
#define RS_HEADER_LEN 4
@@ -68,7 +69,8 @@ struct rs_handle {
struct rs_peer {
struct rs_connection *conn;
- struct addrinfo *addr;
+ struct evutil_addrinfo *addr;
+ int s; /* Socket. */
char *secret;
int timeout; /* client only */
int tries; /* client only */
@@ -80,7 +82,7 @@ struct rs_connection {
enum rs_conn_type type;
struct rs_credentials transport_credentials;
struct rs_conn_callbacks callbacks;
- struct rs_peer peers;
+ struct rs_peer *peers;
struct rs_peer *active_peer;
struct rs_error *err;
};