Commit Graph

483 Commits

Author SHA1 Message Date
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
Martin Willi 523526ec92 - implemented generate-method
- untested
2005-11-16 16:09:15 +00:00
Martin Willi 62c9615efc "" 2005-11-16 16:08:44 +00:00
Martin Willi 54d51d391e - renamed mappings 2005-11-16 16:08:18 +00:00
Martin Willi 90c50445db - packet uses host_t to store addresses now 2005-11-16 16:07:55 +00:00
Martin Willi 60a6167a06 - first (incomplete) implementation of initialize_connection 2005-11-16 16:05:46 +00:00
Martin Willi db04a1bc8f - spi_t is a u_int64_t now 2005-11-16 16:04:53 +00:00
Martin Willi 471ade02fc - role refactored to is_initiator-boolean
- spi_t is a u_int64_t now
2005-11-16 16:04:37 +00:00
Martin Willi e4a5b14f58 - renamed mappings 2005-11-16 16:03:51 +00:00
Jan Hutter de257bc0be - fixed bug of generator 2005-11-16 15:29:31 +00:00
Jan Hutter d5fc0f731d - tried to fix memory errors 2005-11-16 14:44:25 +00:00
Jan Hutter df917df71c - defined interface for each job and implemented incoming packet job and
initiate ike sa job
2005-11-16 14:43:13 +00:00
Jan Hutter 2b3183835a - job.h and job.c moved to directory jobs 2005-11-16 12:43:08 +00:00
Martin Willi 5dee5e68c5 - added mappings 2005-11-16 12:31:28 +00:00
Jan Hutter fe684f2a5e - logger manager is destroyed at end 2005-11-16 12:22:57 +00:00
Jan Hutter db7154547e - added number of working threads 2005-11-16 12:06:34 +00:00
Jan Hutter b52735dd5d - included globals.h 2005-11-16 12:05:49 +00:00
Jan Hutter 4cd9d1085f - fixed bug in naming of logger 2005-11-16 09:36:08 +00:00
Jan Hutter f4358cb24c - added context for DAEMON 2005-11-16 09:27:03 +00:00
Jan Hutter 7f3824c557 - randomizer_t written and tested 2005-11-16 08:36:31 +00:00
Jan Hutter d87cde0e07 - documentation of return values changed 2005-11-16 07:46:37 +00:00
Jan Hutter 9c6340cdc3 - added mappings for logger_context_t types
- added new logger_contex_t IKE_SA_MANAGER
2005-11-16 07:45:51 +00:00
Jan Hutter f0ddd8ae26 - refactored ike_sa_manager_t class 2005-11-16 07:45:05 +00:00
Jan Hutter 083254bb69 fixed bug in logger_manager 2005-11-16 07:01:08 +00:00
Martin Willi cb4f26c5fe - parsing notify messge
- tested
2005-11-15 16:18:02 +00:00
Jan Hutter 2a489f333d - nonce payload tested
- generator for nonce data written
2005-11-15 16:13:40 +00:00
Jan Hutter 8166bcec62 - notify payload written and tested 2005-11-15 15:58:03 +00:00
Martin Willi 22a5e2b8e8 - support for key exchange payload
- tested
2005-11-15 15:44:18 +00:00
Martin Willi 260f3338be - nonce payload added
- tested
2005-11-15 15:26:43 +00:00
Martin Willi e23b3bae41 - nonce payload added
- tested
2005-11-15 15:26:27 +00:00
Jan Hutter 2dcb14b0ae Added encoding_type_t NOTIFICATION_DATA 2005-11-15 15:20:26 +00:00
Martin Willi 1071642c17 - nonce payload defined 2005-11-15 15:05:42 +00:00
Jan Hutter a6966a4801 - error in documentation fixed 2005-11-15 15:03:45 +00:00
Jan Hutter 1ecaff3119 - wrote ke_payload class 2005-11-15 15:02:46 +00:00
Jan Hutter 113f461ebe - wrote payload sa_payload
- wrote additions in generator sa_payload 
- wrote test for sa_payload
2005-11-15 14:59:47 +00:00
Jan Hutter 0c5c09227b - introduced new encoding type KEY_EXCHANGE_DATA 2005-11-15 14:08:54 +00:00
Jan Hutter 8bf27ddf4e - generator refactored 2005-11-15 10:50:24 +00:00
Jan Hutter 7031a50b08 - generator refactored 2005-11-15 10:42:07 +00:00
Martin Willi 82392d172b - commented parser 2005-11-15 10:22:41 +00:00
Jan Hutter 7f613a4bb6 - SA Payload is generated 2005-11-15 09:40:58 +00:00
Jan Hutter 8bf217e876 fixed bug with new function set_next_type 2005-11-15 09:16:53 +00:00
Jan Hutter 32cbc7bc82 - introduced set_next_type call for payload_t objects 2005-11-15 09:14:45 +00:00
Jan Hutter 2b9dd4678d - test of header payload rewritten 2005-11-15 08:52:48 +00:00
Martin Willi 3f27c87c18 - needs update to getter and setter of ike_header 2005-11-15 08:12:28 +00:00
Martin Willi a9d0fa62c0 - moved ike_header fields to private
- added getter/setters
2005-11-15 08:09:58 +00:00
Martin Willi 6c55be346a - parser succesfully parses sa payload 2005-11-14 17:29:22 +00:00
Jan Hutter a14dffd1cc - proposal_substructure written and tested 2005-11-14 17:24:18 +00:00
Jan Hutter bcf0c3afd4 - generating of proposal substructure 2005-11-14 17:23:59 +00:00
Jan Hutter 800b308c2a test for proposal substructure written 2005-11-14 17:23:24 +00:00
Jan Hutter 67978e0b4f - proposal substructure written, but not tested 2005-11-14 16:03:44 +00:00
Jan Hutter b3fd2b7207 - compute_length written 2005-11-14 16:03:26 +00:00
Jan Hutter f3c01a28fe - transform_substructure fully implemented
- generator now generates ransform_substructure and containing attributes
- test for transform substructure written
2005-11-14 15:29:35 +00:00
Jan Hutter f561c205e8 - class transform_attribute fully tested and written
- generating of this type works!
2005-11-14 13:51:49 +00:00
Martin Willi 353c317a15 - some output improvements 2005-11-14 12:12:25 +00:00
Martin Willi 2f60d414e3 - including all running tests 2005-11-14 12:11:47 +00:00
Martin Willi b075b0451c - updated test for new parser 2005-11-14 12:10:52 +00:00
Martin Willi ba18b8aa18 - clean logging
- testet too-short-input errors
2005-11-14 12:10:05 +00:00
Martin Willi 517c1af09f - added encoding_type_t mappings 2005-11-14 12:09:01 +00:00
Jan Hutter b860cffd4f - defined all substructures for a SA payload 2005-11-14 12:04:06 +00:00
Martin Willi 346fd9f271 - fixed bug in mapping_find 2005-11-14 11:40:02 +00:00
Martin Willi 5af9fef305 - fixed output when an assert fails 2005-11-14 10:31:38 +00:00
Jan Hutter da42afc5ec Introduced payload types sa_payload and proposal_substructure 2005-11-14 10:14:22 +00:00
Jan Hutter 1b89ef112e LENGTH is not anymore available 2005-11-14 10:13:49 +00:00
Martin Willi 150ed20688 - added encoding_type_t_mappings 2005-11-14 10:00:16 +00:00
Jan Hutter 1509bd11e9 - introduced new field types 2005-11-14 09:54:59 +00:00
Martin Willi e92ba33ff5 - fixed parser to use new payload mechanisms 2005-11-14 09:43:18 +00:00
Jan Hutter 63b200abaa description changed 2005-11-14 09:05:15 +00:00
Jan Hutter 0063dae55a - payload ike_header cleaned
- header defines moved from message.h to ike_header.h
2005-11-14 09:00:33 +00:00
Jan Hutter 1e8bb886d1 - removed generator context object and implemented payload-interface in generator 2005-11-14 08:12:59 +00:00
Martin Willi cc0fbc3c24 - skeleton implementation of ike_header 2005-11-14 07:15:43 +00:00
Martin Willi c0211a292b - fixed bad SVN issues, should all work again now
- does not compile, need rewrite of parser and generator
2005-11-14 06:55:51 +00:00
Martin Willi 52f831011f 2005-11-11 16:26:55 +00:00
Martin Willi 7fe11db02a - fixed typo 2005-11-11 13:52:34 +00:00
Martin Willi 8887824292 - logger in utils
- allocator in utils
- tests.c -> testcases/testcases.c
2005-11-11 13:52:11 +00:00
Martin Willi b85d20d117 - moved queues into subfolder queues
- created subdirectory utils for linked_list_t and co.
2005-11-11 13:31:52 +00:00
Martin Willi 566bbcd122 - renamed logger_manager method get_logger to create_logger 2005-11-11 13:12:23 +00:00
Martin Willi 55497527ce - renamed tests to testcases 2005-11-11 13:05:19 +00:00
Martin Willi c795c4e5d7 - mapping for payload_type_t added 2005-11-11 12:27:53 +00:00
Martin Willi fcab0071fe - add a log for testing mapping-functionality 2005-11-11 12:27:06 +00:00
Jan Hutter cf274de285 - daemon name added to this header 2005-11-11 11:20:45 +00:00
Jan Hutter 96d72d323d - fixed bug in logger_t not storing the name of it 2005-11-11 11:20:22 +00:00
Jan Hutter ffd555f58e - wrote logger_manager 2005-11-11 10:29:32 +00:00
Martin Willi 0d3675a284 - documented
- fixed argument order for parse_payload
2005-11-11 08:04:51 +00:00
Martin Willi 11c7d2d257 - exclude non-*.c/*.h
- do not index tests subdir
2005-11-10 19:26:48 +00:00
Martin Willi 283ac6ef01 - added parser test case for ike_header 2005-11-10 19:25:47 +00:00
Martin Willi 3caf44673f - PARSE_ERROR status 2005-11-10 19:20:13 +00:00
Martin Willi 3d40ec7a68 - parser successfully parses an ike_header
- no doxygen yet
2005-11-10 19:19:56 +00:00
Martin Willi 27e308739b - ERROR loglevel 2005-11-10 19:19:20 +00:00
Martin Willi e11bc798fb - ike_header parsing test 2005-11-10 19:19:03 +00:00
Jan Hutter 525250c66a - wrote public functions to set and get important values of a message 2005-11-10 17:49:20 +00:00
Jan Hutter b7f1373006 added payload type for no payload 2005-11-10 17:48:53 +00:00
Jan Hutter 7c0dcf6316 - added OUT_OF_RES status_t 2005-11-10 17:48:19 +00:00
Jan Hutter 110dc83a3c generator now has its generator_context which is used to generate more
then one payload in sequence...
2005-11-10 17:17:46 +00:00
Jan Hutter c64d7032fe - started to implement message 2005-11-10 15:38:38 +00:00
Jan Hutter 3818e5c858 - wrote clone function for packed
- test for whole packet functionality
2005-11-10 15:38:12 +00:00
Jan Hutter 1473b8f6c9 - replaced long macros with functions 2005-11-10 15:28:47 +00:00
Martin Willi 0617722cae - updated comments
- revised get_count function
2005-11-10 15:06:52 +00:00
Jan Hutter 7330c172e1 - private function for every field type 2005-11-10 14:56:35 +00:00
Jan Hutter 55e3b3bda9 - added logger output 2005-11-10 14:22:41 +00:00
Jan Hutter 7d99566950 added global logger object 2005-11-10 14:22:18 +00:00
Jan Hutter dba9cf644c - included missing header file 2005-11-10 14:21:50 +00:00