31#define ACC_MIN_MSG_LEN 64
32#define ACC_MAX_MSG_LEN 1280
50 const char *
msg,
bool base64);
struct buffer get_list_intersection(struct gc_arena *gc, const char *list1, const char *list2)
Calculates the intersection of two list that are both separated by : Items in the result will have th...
void receive_acc_message(struct context *c, const struct buffer *buffer)
This method parses an app custom control message and delivers it to the management interface.
char * parse_acc_parameters(const char *capabilities, const char *delim, int *max_acc_len, bool server, struct gc_arena *gc)
Parses an info message from the server that contains app custom control info information prior to the...
bool send_acc_message(struct context *c, struct tls_multi *tls_multi, struct tls_session *session, const char *protocol, bool fragment, const char *msg, bool base64)
void determine_common_acc_protocols(struct tls_multi *multi, struct tls_session *session)
Parses the IV_ACC of the peer and sets multi.acc_negotiated_protocols to the common protocols of serv...
acc_message_flag
Flags returned by the parse_acc_message_flags method.
@ ACC_MESSAGE_FLAGS_FRAGMENT
@ ACC_MESSAGE_FLAGS_BASE64
@ ACC_MESSAGE_FLAGS_ASCII
int parse_acc_message_flags(const char *flags, const char **err_reason, struct gc_arena *gc)
Parses the flags field of an app control message If there is an error parsing the flags field the met...
void notify_client_acc_protocols(struct tls_multi *multi)
Notifies a client via management interface of the negotiated app custom protocols.
Wrapper structure for dynamically allocated memory.
Contains all state information for one tunnel.
Structure for reassembling one incoming fragmented packet.
Garbage collection arena used to keep track of dynamically allocated memory.
Security parameter state for a single VPN tunnel.
Security parameter state of a single session within a VPN tunnel.