Commit Graph

483 Commits

Author SHA1 Message Date
Jan Hutter 2c22024976 added new fields 2005-11-22 15:40:11 +00:00
Jan Hutter 2d9486ae4b changed way to get transforms 2005-11-22 15:39:56 +00:00
Jan Hutter cef4bce94e changed encoding rules to support type IKE_SPI 2005-11-22 15:39:29 +00:00
Jan Hutter 2b1b484687 added encoding type IKE_SPI 2005-11-22 15:39:06 +00:00
Jan Hutter b4e3d1dd07 -starte to implement function to set secrets 2005-11-22 15:38:41 +00:00
Jan Hutter 5f18100e14 - added function to retrieve responder spi 2005-11-22 15:38:22 +00:00
Jan Hutter fb71af18d4 added field type IKE_SPI 2005-11-22 15:37:52 +00:00
Jan Hutter 219814737f - added get_responder_spi function 2005-11-22 15:37:32 +00:00
Martin Willi 1ba8ec9d4c - added md5 test 2005-11-22 15:35:49 +00:00
Martin Willi 62adf1e0e8 - fixed some minor comment issues 2005-11-22 15:34:10 +00:00
Martin Willi 74ced9e249 - prf_hmac_sha1 is now a generig prf_hmac
- supports md5
2005-11-22 15:33:08 +00:00
Martin Willi c4253ff5cc - added min/max macros 2005-11-22 15:02:54 +00:00
Martin Willi bfa4b2180b - implemented md5 hasher
- tested
2005-11-22 14:46:35 +00:00
Martin Willi 6c105d1c89 - fixed freeing bug 2005-11-22 14:44:47 +00:00
Martin Willi 5e280720e3 - prf_plus test 2005-11-22 13:42:49 +00:00
Jan Hutter b6b836517c - memory leak fixed 2005-11-22 12:36:27 +00:00
Martin Willi ec89d4374d - dummy test 2005-11-22 12:32:03 +00:00
Martin Willi ab6908f116 - implemented, untested 2005-11-22 12:30:31 +00:00
Jan Hutter 6aa61b01d2 - documented 2005-11-22 12:29:39 +00:00
Martin Willi 1318dd4e36 - added ability to append data 2005-11-22 12:00:46 +00:00
Martin Willi a70d953d58 - added test for appending hmac functionality 2005-11-22 11:59:46 +00:00
Jan Hutter cb80a27e8a changed constructor 2005-11-22 11:58:36 +00:00
Jan Hutter dd4e8c65e4 - fully implemented 2005-11-22 11:58:17 +00:00
Jan Hutter 19fb5a0ef1 - implemented until state change 2005-11-22 11:57:44 +00:00
Jan Hutter 3525276c80 - partly implemented 2005-11-22 11:57:22 +00:00
Jan Hutter a6e7920e53 - implemented most parts 2005-11-22 11:56:51 +00:00
Jan Hutter 06d2a398e2 - added new logging context for configuration manager 2005-11-22 11:55:57 +00:00
Jan Hutter 323ff573d2 - partly documented 2005-11-22 11:55:17 +00:00
Jan Hutter 723b666452 -destroy function moved in file :-) 2005-11-22 11:54:58 +00:00
Jan Hutter 74d8414cc8 2005-11-22 11:54:29 +00:00
Jan Hutter b2c259bac5 nonce is now copied when setting or getting 2005-11-22 11:54:14 +00:00
Jan Hutter fa147f1bd7 fixed error in mapping of prf algorithms 2005-11-22 11:53:50 +00:00
Jan Hutter 83cad34b94 - fixed segmentation fault when destroying ike_sa entries 2005-11-22 11:53:26 +00:00
Jan Hutter 4502839210 - added logging when destroying 2005-11-22 11:53:00 +00:00
Jan Hutter 9326235ba1 - added logging when destroying 2005-11-22 11:52:40 +00:00
Jan Hutter ffc5fd73e5 - added logging when destroying 2005-11-22 11:51:22 +00:00
Jan Hutter ca03b73be9 - two daemon logger were created -> fixed
- bug in freeing of globals fixed
2005-11-22 11:51:01 +00:00
Martin Willi c163397e7e - readded 2005-11-22 09:50:48 +00:00
Jan Hutter 6d7dba5793 - fuck 2005-11-22 09:50:28 +00:00
Martin Willi 61b748c80f - implemented
- not tested!
2005-11-22 09:43:32 +00:00
Martin Willi a217b51d6d - removed key from constructor
- added set_key method
2005-11-22 09:27:41 +00:00
Martin Willi 722000481b - added hmac test 2005-11-22 09:10:38 +00:00
Martin Willi a122b80221 - renamed constant 2005-11-22 09:10:07 +00:00
Martin Willi 7c2fd1cf83 - definition of interface for singer and crypter
- not documented
2005-11-22 08:10:43 +00:00
Martin Willi 002c583e26 - removed key from constructor
- added set_key
2005-11-22 07:59:00 +00:00
Jan Hutter 4aab514953 2005-11-22 07:55:15 +00:00
Martin Willi bcb176f985 - moved to hmac 2005-11-22 07:54:09 +00:00
Martin Willi 2f85618126 - fixed memleak in sha1 2005-11-22 07:50:19 +00:00
Martin Willi 781fadcc33 - implementation supporting SHA1
- UNtested
2005-11-22 07:45:49 +00:00
Jan Hutter d532165026 - chunt guet 2005-11-21 18:24:36 +00:00
Martin Willi 3e13b35a49 - doc
- reseting when result fetched
2005-11-21 18:07:10 +00:00
Martin Willi 3e075ba1ed - added sha1 tester 2005-11-21 18:02:50 +00:00
Martin Willi 784e236839 - implementation of hasher_sha1
- tested
2005-11-21 18:01:20 +00:00
Jan Hutter 0666a152c2 - still one memory leak and segmentation fault 2005-11-21 17:53:42 +00:00
Jan Hutter 55f90b5d51 - allready partly working 2005-11-21 17:50:56 +00:00
Jan Hutter 8323a9c120 current state 2005-11-21 16:41:24 +00:00
Martin Willi f0d14d2c56 - skeletons for:
- prf
	- prf_hmac_sha1
	- hasher
	- hasher_sha1
2005-11-21 16:26:36 +00:00
Martin Willi e0d6093976 - cleaned up logging 2005-11-21 15:34:44 +00:00
Martin Willi 61a401c8fb - added definition of ike_sa_state_m 2005-11-21 15:09:10 +00:00
Martin Willi 041716fb64 - renamed IKE_SA_INITIALIZED to IKE_SA_ESTABLISHED
- added states for ike_auth_requested and ike_sa_established
2005-11-21 15:03:44 +00:00
Jan Hutter a2a10f2562 2005-11-21 14:48:18 +00:00
Jan Hutter e4b809a3a3 - ike_sa more improved 2005-11-21 13:45:26 +00:00
Jan Hutter be23069176 - current payload type was read at wrong location 2005-11-21 13:45:07 +00:00
Jan Hutter af94e7968b - switching of initiator flag only on requests 2005-11-21 13:44:37 +00:00
Jan Hutter b945904088 - added clone functionality 2005-11-21 13:44:16 +00:00
Martin Willi 75ab06685f - cleaned up logging 2005-11-21 13:33:53 +00:00
Martin Willi 1603a8b233 - cleanup of logging 2005-11-21 12:32:00 +00:00
Martin Willi bb90a49b14 - fixed loglevel output bug 2005-11-21 12:06:01 +00:00
Martin Willi ca313de4f0 - cleanup of logging 2005-11-21 11:48:04 +00:00
Martin Willi 41fc4f74ec - added thread-id to log for some contexes
- cleaned up logger output
2005-11-21 11:47:46 +00:00
Martin Willi 3d04ddf39d - fixed logging 2005-11-21 11:47:06 +00:00
Martin Willi 885608ffa9 - fixed logging 2005-11-21 11:46:48 +00:00
Martin Willi d17b6ea6b8 - added logging 2005-11-21 11:45:56 +00:00
Martin Willi aa20c2ac49 - commented
- added some getters
2005-11-21 11:45:04 +00:00
Jan Hutter 0b2abb8c32 further implemented 2005-11-21 10:59:45 +00:00
Jan Hutter 24c2d259cb - coding rule fix :-) 2005-11-21 10:59:13 +00:00
Jan Hutter 31332efad6 - added cloning of already generated packet 2005-11-21 10:58:52 +00:00
Jan Hutter ca7afb904c nothing changed 2005-11-21 10:58:10 +00:00
Jan Hutter 465a52a20b - added logging of freeing operations 2005-11-21 09:21:34 +00:00
Jan Hutter abaa7fc7c7 -removed freeing of nonce data 2005-11-21 09:20:43 +00:00
Jan Hutter 697aa8f55d - checked functionality and inserted new logging parts 2005-11-21 08:46:32 +00:00
Jan Hutter 447380f42a - added protocol_id_t 2005-11-21 08:01:15 +00:00
Martin Willi daa1c00e9f - baschtel
- works initiating, results in shared secret
2005-11-18 16:29:14 +00:00
Jan Hutter 90ef6620a2 2005-11-18 15:10:19 +00:00
Jan Hutter 7e1c9f5dbd - process_configuration implemented 2005-11-18 14:56:34 +00:00
Martin Willi 6278a9ae73 - changed dh_group type to diffie_hellman_group_t 2005-11-18 14:43:06 +00:00
Martin Willi bb9d77ce22 - changed group_number type to diffie_hellman_group_t 2005-11-18 14:40:15 +00:00
Martin Willi 7b3d138919 - changed ike_sa_id interface
- definition of private ike_sa methods
2005-11-18 13:59:21 +00:00
Jan Hutter 4f2c92d8e2 2005-11-18 12:24:12 +00:00
Jan Hutter ca0af3e808 - memory leak fixed 2005-11-18 12:20:48 +00:00
Jan Hutter 1186f05017 - function to get dh_group_number added 2005-11-18 12:20:34 +00:00
Martin Willi 3a8f9f445c - added build_message to ike_sa
- removed is_initiator in message, flag is stored in ike_sa_id
2005-11-18 12:01:53 +00:00
Martin Willi 501a41b970 2005-11-18 10:31:56 +00:00
Jan Hutter 6f17c7d68e - implemented all diffie hellman groups
- diffie hellman tested
2005-11-18 10:18:45 +00:00
Jan Hutter 469ce15ad1 fixed segmentation fault bug 2005-11-18 10:18:14 +00:00
Jan Hutter f318c9c18a 2005-11-18 10:18:00 +00:00
Jan Hutter 99400f979e - wrote diffie_hellman_t but not tested 2005-11-18 08:19:12 +00:00
Martin Willi d768cb6790 - redefined logger levels 2005-11-18 07:07:32 +00:00
Jan Hutter 4750f6c667 - started to implement diffie hellman class 2005-11-17 17:22:08 +00:00
Martin Willi c1e9c3f697 "" 2005-11-17 14:28:07 +00:00
Martin Willi 6d63e6864e - fixed sizeof bug 2005-11-17 14:27:31 +00:00
Jan Hutter c5841ec587 -added processing of DELETE_IKE_SA job 2005-11-17 14:26:42 +00:00
Jan Hutter f1c55803dd -added handling of ike sas which has to be deleted 2005-11-17 14:26:21 +00:00
Jan Hutter 9264ec577e - added new job type delete_ike_sa_job_t 2005-11-17 14:25:46 +00:00
Jan Hutter 49a69999a2 2005-11-17 14:25:03 +00:00
Jan Hutter b643c81c63 - increased generator buffer 2005-11-17 13:47:49 +00:00
Jan Hutter f59ae2ea9a - critical bit was set 2005-11-17 13:36:20 +00:00
Jan Hutter c63dfce358 - fixed bug in nonce test 2005-11-17 13:35:38 +00:00
Martin Willi f0c83c23a3 - iterator insertion 2005-11-17 13:34:10 +00:00
Martin Willi 1a2e706bee - fixed bug 2005-11-17 13:31:45 +00:00
Martin Willi 294faf7bb7 - modified for new linked list 2005-11-17 13:30:32 +00:00
Martin Willi 9b4f5ef88a - added new managers 2005-11-17 13:27:12 +00:00
Jan Hutter 2e7bbf0e0b - checkin of IKE SA gets performed 2005-11-17 12:51:15 +00:00
Jan Hutter 2dbc31682c - added verify functionality 2005-11-17 12:50:54 +00:00
Jan Hutter 8b3bc23b1c jobs are getting destroyed by calling destroy_all 2005-11-17 12:50:13 +00:00
Jan Hutter f07a80d192 - added destroy_all to job_t 2005-11-17 12:49:56 +00:00
Jan Hutter e31eb71e1c - added verify function to all payload types 2005-11-17 12:49:35 +00:00
Martin Willi 9e64c7e03a - changed ports 2005-11-17 11:27:38 +00:00
Martin Willi 4edbe5554c - handles now INITIATE_IKE_SA jobs 2005-11-17 11:25:45 +00:00
Martin Willi 9a200d13ef - uses for some things config_manager 2005-11-17 11:25:19 +00:00
Martin Willi ede7caad81 - added global_configuration_manager 2005-11-17 11:24:03 +00:00
Jan Hutter 79d5c541b5 Set values for ike_sa states 2005-11-17 11:23:51 +00:00
Martin Willi fc36b7ad41 - renamed EVENT_THREAD to SCHEDULER_THREAD 2005-11-17 11:23:03 +00:00
Martin Willi 9abdf3b198 - fixed strlen bug 2005-11-17 11:22:16 +00:00
Jan Hutter 563081a36d - improved INCOMING MESSAGE handling 2005-11-17 11:21:01 +00:00
Jan Hutter 9d01db601e - fixed memory leak 2005-11-17 11:20:39 +00:00
Martin Willi f2bec7fe2a - added logger 2005-11-17 11:20:34 +00:00
Jan Hutter 43bfb8e25e - returned wrong payload type 2005-11-17 11:20:13 +00:00
Jan Hutter 93a9a115de - parse_body improved 2005-11-17 11:19:45 +00:00
Martin Willi f1a8e321e5 - added mappings for status_t 2005-11-17 09:05:55 +00:00
Jan Hutter 547172ff74 - check ike versions 2005-11-17 08:48:01 +00:00
Jan Hutter c4e75f5f1a - added logging of chunk_t's 2005-11-17 08:47:37 +00:00
Jan Hutter 6bf409865d started to implement process message 2005-11-17 08:47:11 +00:00
Jan Hutter 9da406cf36 - started to implement message type check 2005-11-17 08:46:05 +00:00
Jan Hutter 45b06d91ae - introduced new functions for version fetching 2005-11-17 08:45:40 +00:00
Jan Hutter d60a48f945 - added UDP socket 500 as default socket 2005-11-17 08:44:28 +00:00
Jan Hutter 28c734d72e - processing of incoming message in worker thread programmed 2005-11-16 17:20:03 +00:00
Martin Willi c923dc6126 "" 2005-11-16 17:16:35 +00:00
Martin Willi 70933df4b3 "" 2005-11-16 17:15:40 +00:00
Martin Willi fd86a5f63d - started implementation of a dummy config-manager 2005-11-16 17:15:05 +00:00
Jan Hutter 91443667d5 - spi_t replaced with u_int64_t 2005-11-16 16:50:13 +00:00
Martin Willi a5e8260abf - renamed mappings 2005-11-16 16:14:18 +00:00
Martin Willi b722736c2f - change cloning behavior, does not clone anymore 2005-11-16 16:14:00 +00:00
Martin Willi 14e635db50 - renamed mappings 2005-11-16 16:12:56 +00:00
Martin Willi 7eeeaf4e4f - added definitions from IKEv2 draft 2005-11-16 16:12:31 +00:00
Martin Willi 02d3cba7ce - added exchange types 2005-11-16 16:12:03 +00:00
Martin Willi 050ce09b6f - host_t for storing host address 2005-11-16 16:11:08 +00:00
Martin Willi 146e568fe7 - added methods which will allocate mem 2005-11-16 16:10:47 +00:00
Martin Willi a698ba19a4 - uses new packet with host_t now 2005-11-16 16:10:23 +00:00
Martin Willi 66e379a278 - updated tests to varius changes in modules 2005-11-16 16:09:55 +00:00