Commit Graph
61 Commits
Author SHA1 Message Date
Thomas Klute 4e51cf895e conftest: Make outgoing sequence number set by reset_seq configurable
This is useful for certain test cases. Passing the sequence number to
the callback requires a new struct that contains both the number and the
xfrm_usersa_id. The new configuration parameter is called oseq in
accordance with the kernel name, see the comment in the reset_cb
callback function for details.
2013-01-08 11:10:13 +01:00
Tobias Brunner 6da1ada3b3 Missed one in 3dcffed6 2012-09-28 20:50:09 +02:00
Tobias Brunner 3dcffed682 The this->data member is never NULL 2012-09-28 17:09:16 +02:00
Tobias Brunner 4c57c63062 Added possibility to register custom proposal keywords
Keyword lookup and registration are handled via the new lib->proposal object.
2012-09-13 15:44:46 +02:00
Tobias Brunner 995875210a Removed len argument from proposal_get_token()
Also use enumerators instead of lexparser.h to parse proposal strings.
2012-09-13 15:44:01 +02:00
Martin Willi a6733d8e85 Remove unused replay variable in conftests seq number reset hook 2012-07-16 14:53:37 +02:00
Martin Willi bb1e0c59e1 Add a return value to keymat_v2_t.get_auth_octets() 2012-07-16 14:53:34 +02:00
Martin Willi 5aef6bd0f3 Accept NULL auth_cfg_t passed to credential_manager_t.get_private() 2012-03-20 17:31:39 +01:00
Martin Willi 47b8f6ef4b Invoke bus_t.message hook twice, once plain and parsed, once encoded and encrypted 2012-03-20 17:31:37 +01:00
Martin Willi 15a682f4c2 Separated libcharon/sa directory with ikev1 and ikev2 subfolders 2012-03-20 17:31:26 +01:00
Martin Willi 9ad5b8fa95 Cleanup CERT payload constructors 2012-03-20 17:31:13 +01:00
Martin Willi e174e0d445 Added not-yet used sa_payload parameters used in IKEv1 2012-03-20 17:30:52 +01:00
Tobias Brunner d6cec44b24 Fixed conftests after extending CERT payload. 2012-03-20 17:30:50 +01:00
Tobias Brunner a0563846b0 Moved version specific keymat functions to specific interfaces. 2012-03-20 17:30:45 +01:00
Martin Willi c311d22d0f Don't clone chunk in message.get_packet_data 2012-03-20 17:30:44 +01:00
Martin Willi 04ee2b7fed Added IKEv1 support to notify payload 2012-03-20 17:30:43 +01:00
Martin Willi 38fb67fbf1 Add a payload.get_header_length() method, remove header length definitions 2012-03-20 17:30:42 +01:00
Martin Willi e9b55b8325 Simplify signature of get_encoding_rules(), make all rules static 2012-03-20 17:30:42 +01:00
Tobias Brunner 4ed52db2bb Allow creation of message_t objects for IKEv1 packets. 2012-03-20 17:30:40 +01:00
Martin Willi b0b9d18593 Extend sa_payload for IKEv1 support 2012-03-20 17:30:40 +01:00
Martin Willi 2a277867be Show full blown traffic selector in log_ts hook 2011-04-14 09:21:58 +02:00
Tobias Brunner 84545f6e7c Some typos fixed. 2011-02-07 11:39:41 +01:00
Martin Willi 5b0e6c593a Added option to use a different key when rebuilding AUTH 2011-01-05 16:46:07 +01:00
Martin Willi 0beb1d6fbb Added a hook to reset ESP sequence numbers 2011-01-05 16:46:00 +01:00
Martin Willi c7f7a0ba06 Use strncaseeq instead of strncasecmp 2011-01-05 16:45:59 +01:00
Martin Willi 9992cb1c10 Generate payload to rebuild_auth, works with injected unknown payloads 2011-01-05 16:45:55 +01:00
Martin Willi 5c95bf7b93 Move rebuild_auth functionality to a standalone hook
This reverts commit 3c12b239fd55aa36c59eb60224d27af8b8d915d1.
2011-01-05 16:45:54 +01:00
Martin Willi 586070d2ce Implemented hook to log traffic selectors 2011-01-05 16:45:53 +01:00
Martin Willi 6bd3a1c220 The set_reserved() hook rebuilds AUTH if it mangles ID payload fields 2011-01-05 16:45:53 +01:00
Martin Willi 5f15faebc8 Include the used reserved bytes from ID payloads in AUTH calculation 2011-01-05 16:45:53 +01:00
Martin Willi b5bbc9506c Extended set_reserved hook to mangle sa_payload substructures 2011-01-05 16:45:52 +01:00
Martin Willi a6da3795d6 The set_ike_version hook supports version flag mangling 2011-01-05 16:45:52 +01:00
Martin Willi 357e960e40 Implemented hook to toggle initiator flag in IKE header 2011-01-05 16:45:52 +01:00
Martin Willi 446a4537e5 Implemented a hook to set reserved bits 2011-01-05 16:45:51 +01:00
Martin Willi 15a612efb2 Use payload_get_field() to look up payload fields 2011-01-05 16:45:51 +01:00
Martin Willi f5705d0fa6 Use standard ID getter in log_id hook 2011-01-05 16:45:50 +01:00
Martin Willi 64293410b7 Implemented a hook to toggle the IKE message request flag 2011-01-05 16:45:50 +01:00
Martin Willi 19a18de98a Implemented hook to modify IKE header SPIs 2011-01-05 16:45:50 +01:00
Martin Willi f2116c6de7 Show SPI in proposal logging hook 2011-01-05 16:45:48 +01:00
Martin Willi 42133e33bd Implemented a hook to inject custom proposals 2011-01-05 16:45:48 +01:00
Martin Willi 5d82b2d321 Remove unused variable 2011-01-05 16:45:48 +01:00
Martin Willi 7ab6429b3c Added hook to log ID payload type and data 2011-01-05 16:45:47 +01:00
Martin Willi c6f2bac1b8 Added hook to log received KE group 2011-01-05 16:45:47 +01:00
Martin Willi 6dd6b0ef95 Added a hook to modify proposal numbers 2011-01-05 16:45:47 +01:00
Martin Willi 5dca645d46 Added a hook to print received proposals, including number 2011-01-05 16:45:47 +01:00
Martin Willi b080f393ce Added a hook to alter the payload length field of arbitrary payloads 2011-01-05 16:45:47 +01:00
Martin Willi 00d8b9a638 Implemented a hook that recreates a valid incoming IKE_AUTH response, even if AUTH_FAILED 2011-01-05 16:45:46 +01:00
Martin Willi a0a760795e Added hook to set arbitrary IKE major/minor versions in message headers 2011-01-05 16:45:45 +01:00
Martin Willi e330360f77 Added a force_hookie hook that requests a COOKIE independent of our COOKIE mechanism 2011-01-05 16:45:45 +01:00
Martin Willi 1f42c80942 The add_payload hook supports replacing existing payloads of the same type 2011-01-05 16:45:45 +01:00