summaryrefslogtreecommitdiff
path: root/include/ouroboros/cacep.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ouroboros/cacep.h')
-rw-r--r--include/ouroboros/cacep.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/include/ouroboros/cacep.h b/include/ouroboros/cacep.h
index ae615e6e..950f3cf7 100644
--- a/include/ouroboros/cacep.h
+++ b/include/ouroboros/cacep.h
@@ -1,10 +1,10 @@
/*
* Ouroboros - Copyright (C) 2016 - 2017
*
- * The Common Application Connection Establishment Phase
+ * The Common Application Connection Establishment Protocol
*
- * Sander Vrijders <sander.vrijders@intec.ugent.be>
- * Dimitri Staessens <dimitri.staessens@intec.ugent.be>
+ * Dimitri Staessens <dimitri.staessens@ugent.be>
+ * Sander Vrijders <sander.vrijders@ugent.be>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -25,23 +25,25 @@
#define OUROBOROS_CACEP_H
#include <stdint.h>
-#include <unistd.h>
-struct cacep;
-
-struct cacep_info {
- char * name;
- uint64_t addr;
+enum proto_concrete_syntax {
+ PROTO_GPB = 0,
+ PROTO_ASN_1,
+ PROTO_FIXED
};
-struct cacep * cacep_create(int fd,
- const char * name,
- uint64_t address);
-
-int cacep_destroy(struct cacep * instance);
+struct conn_info {
+ char ae_name[64];
+ char protocol[64];
+ uint32_t pref_version;
+ enum proto_concrete_syntax pref_syntax;
+ uint64_t addr;
+};
-struct cacep_info * cacep_auth(struct cacep * instance);
+int cacep_snd(int fd,
+ const struct conn_info * in);
-struct cacep_info * cacep_auth_wait(struct cacep * instance);
+int cacep_rcv(int fd,
+ struct conn_info * out);
#endif /* OUROBOROS_CACEP_H */