|
Functions |
| uint16_t | GenerateErrorData (uint8_t **data, uint16_t *dlen, struct ParseMsgResult *res) |
| | Get an error and generate correspondig error data.
|
| void | MergeParseMsgResults (struct ParseMsgResult *result, struct ParseMsgResult *result2) |
| | Merges two ParseMsgResult structs.
|
| void | FreeCertList (struct CertList *l) |
| ParseMsgResult * | ParseMsg (const struct ikev2_ctx *i2, struct IKEv2Session *session, uint8_t *p) |
| | Parses a message and returns result.
|
| Proposal * | CloneProposal (struct Proposal *prop, struct Proposal *ref) |
| | Clone proposal prop with first transform of each type, which is also in ref.
|
| int | IKEv2IBuild_SA_Init (const struct ikev2_ctx *i2, uint8_t **out, uint32_t *olen, struct IKEv2Session *session, uint16_t DHGroup) |
| | Create an IKEv2 SA_INIT msg for initiator.
|
| int | IKEv2RBuild_SA_Init (const struct ikev2_ctx *i2, uint8_t *oldMsg, uint8_t **out, uint32_t *olen, struct Proposal *selTrans, struct IKEv2Session *session, BIGNUM *pubk) |
| | Create an IKEv2 SA_INIT msg for responder.
|
| int | IKEv2IBuild_Auth (const struct ikev2_ctx *i2, uint8_t **out, uint32_t *olen, struct IKEv2Session *session) |
| | Create an IKEv2 AUTH msg for initiator.
|
| int | IKEv2RBuild_Auth (const struct ikev2_ctx *i2, uint8_t **out, uint32_t *olen, uint8_t *in, struct IKEv2Session *session) |
| | Create an IKEv2 AUTH msg for responder.
|
| int | IKEv2BuildErrorMsg (uint8_t **out, uint32_t *olen, struct IKEv2Session *session, struct ParseMsgResult *res) |
| | Build IKEv2 message with error notification.
|
| int | IKEv2BuildErrorResponseMsg (uint8_t **out, uint32_t *olen, uint8_t *in, struct ParseMsgResult *res, struct IKEv2Session *session, int enc) |
| | Build a response to a msg containing an error notification.
|
| int | IKEv2Build_Informational (uint8_t **out, uint32_t *olen, struct IKEv2Session *session, uint8_t first, uint8_t *payloads, uint32_t plsize) |
| | Create an IKEv2 informational message.
|
| int | IKEv2RespondInformational (uint8_t **out, uint32_t *olen, uint8_t *inf) |
| | Create a response to a IKEv2 informational message.
|
| int | IKEv2ICreateChildSA (const struct ikev2_ctx *i2, uint8_t **out, uint32_t *olen, struct IKEv2Session *session, int DHGroup) |
| | Create an IKEv2 CREATE_CHILD_SA initiator message for rekeying.
|
| int | IKEv2RCreateChildSA (uint8_t *oldMsg, uint8_t **out, uint32_t *olen, struct IKEv2Session *session, struct Proposal *selTrans, int DHGroup) |
| | Create an IKEv2 CREATE_CHILD_SA responder message for rekeying.
|
| void | FreeMsgResult (struct ParseMsgResult *res) |
| ParseMsgResult * | ParseSAInitMsg (const struct ikev2_ctx *i2, struct IKEv2Session *session, uint8_t *p) |
| | Parses a SA_INIT message and returns result.
|
| ParseMsgResult * | ParseAuthMsg (const struct ikev2_ctx *i2, struct IKEv2Session *session, uint8_t *p) |
| | Parses a AUTH message and returns result.
|
| ParseMsgResult * | ParseInformationalMsg (const struct ikev2_ctx *i2, struct IKEv2Session *session, uint8_t *p) |
| | Parses an informational message and returns result.
|
| ParseMsgResult * | ParseChildSAMsg (const struct ikev2_ctx *i2, struct IKEv2Session *session, uint8_t *p) |
| | Parses a CREATE_CHILD_SA message for rekeying and returns result.
|