summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-02-24 10:39:53 +0000
committerSander Vrijders <[email protected]>2017-02-24 10:39:53 +0000
commit75cf809a95b75f09ff805b3872dcb71b80fef586 (patch)
treed8ba1df7003cff248be613425da0bb26e2865303 /include
parent8907220599bec8067c1701c3d8bd19f9bcb19275 (diff)
parent48599a14144725dedc45f7558d814950791d069d (diff)
downloadouroboros-75cf809a95b75f09ff805b3872dcb71b80fef586.tar.gz
ouroboros-75cf809a95b75f09ff805b3872dcb71b80fef586.zip
Merged in dstaesse/ouroboros/be-cacep (pull request #391)
lib: Revise CACEP API
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/cacep.h21
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 */