mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-20 06:30:42 +03:00
Cedar: introduce options API in Proto
PROTO_OPTION is a structure that describes an option (who would've guessed?). It's designed in a way that allows it to occupy as low memory as possible, while providing great flexibility. The idea is similar to the one implemented in LIST for trivial types, with the difference that PROTO_OPTION doesn't require casting due to the use of union.
This commit is contained in:
@ -123,8 +123,9 @@ struct SSTP_SERVER
|
||||
|
||||
//// Function prototype
|
||||
const PROTO_IMPL *SstpGetProtoImpl();
|
||||
const PROTO_OPTION *SstpOptions();
|
||||
const char *SstpName();
|
||||
bool SstpInit(void **param, struct CEDAR *cedar, INTERRUPT_MANAGER *im, SOCK_EVENT *se, const char *cipher, const char *hostname);
|
||||
bool SstpInit(void **param, const LIST *options, CEDAR *cedar, INTERRUPT_MANAGER *im, SOCK_EVENT *se, const char *cipher, const char *hostname);
|
||||
void SstpFree(void *param);
|
||||
bool SstpProcessData(void *param, TCP_RAW_DATA *in, FIFO *out);
|
||||
|
||||
|
Reference in New Issue
Block a user