diff options
author | dimitri staessens <[email protected]> | 2017-02-24 11:32:24 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-02-24 11:34:38 +0100 |
commit | 48599a14144725dedc45f7558d814950791d069d (patch) | |
tree | f169d40a128459419181cb2d83efe1916a67f5a1 /include | |
parent | 41704c2379eda1124c5fc94d5589be6951e5b7ee (diff) | |
download | ouroboros-48599a14144725dedc45f7558d814950791d069d.tar.gz ouroboros-48599a14144725dedc45f7558d814950791d069d.zip |
Revise CACEP API
The information passed to CACEP is split between the information about
the connection and the information to be used during the
authentication exchange.
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/cacep.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/ouroboros/cacep.h b/include/ouroboros/cacep.h index e0737c47..f155023e 100644 --- a/include/ouroboros/cacep.h +++ b/include/ouroboros/cacep.h @@ -32,7 +32,7 @@ enum proto_concrete_syntax { PROTO_FIXED }; -struct cacep_info { +struct conn_info{ struct { char * protocol; uint32_t pref_version; @@ -40,19 +40,20 @@ struct cacep_info { } proto; char * name; uint64_t addr; - void * data; }; -int cacep_info_init(struct cacep_info * info); +int conn_info_init(struct conn_info * info); -void cacep_info_fini(struct cacep_info * info); +void conn_info_fini(struct conn_info * info); -struct cacep_info * cacep_auth(int fd, - enum pol_cacep pc, - const struct cacep_info * info); +struct conn_info * cacep_auth(int fd, + enum pol_cacep pc, + const struct conn_info * info, + const void * auth); -struct cacep_info * cacep_auth_wait(int fd, - enum pol_cacep pc, - const struct cacep_info * info); +struct conn_info * cacep_auth_wait(int fd, + enum pol_cacep pc, + const struct conn_info * info, + const void * auth); #endif /* OUROBOROS_CACEP_H */ |