diff options
author | Linus Nordberg <linus@nordu.net> | 2010-09-29 21:53:43 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-09-29 21:53:43 +0200 |
commit | 727af5678906c03eedff8d8262d39fad788973a6 (patch) | |
tree | f9192ecc6b6590d79c356106004f14f2f46b7c2d /lib/libradsec-impl.h | |
parent | de906e3721e19d9d8b2c61f834d8057bcce47af1 (diff) |
Refactoring in preparation for handling more cases than client sending one packet.
Diffstat (limited to 'lib/libradsec-impl.h')
-rw-r--r-- | lib/libradsec-impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libradsec-impl.h b/lib/libradsec-impl.h index e51c54c..a4ce7c2 100644 --- a/lib/libradsec-impl.h +++ b/lib/libradsec-impl.h @@ -71,6 +71,8 @@ struct rs_peer { struct rs_connection *conn; struct evutil_addrinfo *addr; int s; /* Socket. */ + char is_connecting; + char is_connected; char *secret; int timeout; /* client only */ int tries; /* client only */ @@ -80,6 +82,7 @@ struct rs_peer { struct rs_connection { struct rs_handle *ctx; struct event_base *evb; + struct bufferevent *bev; enum rs_conn_type type; struct rs_credentials transport_credentials; struct rs_conn_callbacks callbacks; @@ -98,9 +101,6 @@ struct rs_attr { VALUE_PAIR *vp; }; -/* Internal functions. */ -int rs_conn_open(struct rs_connection *conn); - /* Convenience macros. */ #define rs_calloc(h, nmemb, size) \ (h->alloc_scheme.calloc ? h->alloc_scheme.calloc : calloc)(nmemb, size) |