Commit Graph

332 Commits

Author SHA1 Message Date
Sansar Choinyambuu 46fd48797d Restore flag calculation 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu b460d5f5ce Reading and writing flags directly 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu f4cc834c45 SHA384 is set as strongest hashing algorithm 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 6434d41fa5 Added empty getter/setter for AIK 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 86f1cd15b8 Deleted switch statement for hashing algorithms, using the integer field directly for the query 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 2db719a509 Replaced reason strings with temporary ones for File Measurement Comparison 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 6d9e319dd7 Provide recommendation after all received attributes are handled 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 8ada2b68a3 Clone the path chunk before adding to measurements list 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu cd669535e6 Destroy meas_enumerator 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu f36ef96ed4 Added create_meas_enumerator function to pts_database object
Implemented handling part of File Measurement attributes reception
Ending the exchange and allowing access if all measurements match with database isolate if not
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 08a7bd530e Corrected output length for SHA256 algorithm 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu aab0c587db Deleted filter for measurement enumerator 2011-09-08 12:08:14 +02:00
Sansar Choinyambuu f2f18b4e2f The file and directory lists are queried from db
Request File Measurements sending and handling is implemented accordingly
Measuring the file and directories are tested
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu 85ab2fc2a3 Deleted unnecessary debug statement 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 403409cbda Corrected typo on product_file table 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 23f1509c4f chunk_clone after read_data 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu f3aeb40bf1 Removed unnecessary struct 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 14ed35c52e Corrected typo in query 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 20077abea2 Changes according to db implementation 2011-09-08 12:08:13 +02:00
Andreas Steffen fdfdae45de implemented access to PTS file measurement database 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 921b1022a5 Moved hashing functionalities to pts object 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu a1ff28f582 Moved structures related to File Measurement to pts.h 2011-09-08 12:08:13 +02:00
Andreas Steffen 8a59adad57 replaced unreliable tabs by spaces 2011-09-08 12:08:13 +02:00
Andreas Steffen 20c2bec0f3 added pts database interface 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 97112ec23a Implemented Error Codes Enumeration for PTS 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu bbe179e472 Proto Caps and Meas Algorithms
TPM Version Info (AIK as well) and Request File Meas
attributes are sent together in a single pa_tnc message
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 207c519bd3 Combined some attributes and got rid of many handshake_states 2011-09-08 12:08:13 +02:00
Sansar Choinyambuu 4259bd6fb4 Deleted intermediate handshake_state 2011-09-08 12:08:13 +02:00
Andreas Steffen a832232027 nothing to send with BeginHandshake 2011-09-08 12:08:12 +02:00
Andreas Steffen 8c4db12fa0 detect TPM presence on IMC 2011-09-08 12:08:12 +02:00
Andreas Steffen 01e069b675 moved proto_caps and meas_algo to pts object 2011-09-08 12:08:12 +02:00
Andreas Steffen 8a2482c7c2 moved TSS into pts object 2011-09-08 12:08:12 +02:00
Andreas Steffen 48f04107ea reformatted TPM Version Info output 2011-09-08 12:08:12 +02:00
Andreas Steffen 0e521df129 cleaned up variable names 2011-09-08 12:08:12 +02:00
Andreas Steffen 91057e2d39 imv-attestation needs trousers 2011-09-08 12:08:12 +02:00
Andreas Steffen b875bcf70e define tpm_version_info as a chunk 2011-09-08 12:08:12 +02:00
Andreas Steffen 54fb8162a4 log selected PTS measurement algorithm 2011-09-08 12:08:12 +02:00
Andreas Steffen 05f03238fa shortened function names and moved to pts subdirectory 2011-09-08 12:08:12 +02:00
Andreas Steffen ac520f2fdf log PA-TNC attribute names 2011-09-08 12:08:12 +02:00
Andreas Steffen f0255cd1c9 Attestation IMV starts sending PA-TNC messages 2011-09-08 12:08:12 +02:00
Andreas Steffen b391488c75 return result 2011-09-08 12:08:11 +02:00
Andreas Steffen 8c1fb416c7 link libtspi 2011-09-08 12:08:11 +02:00
Andreas Steffen 871045bae6 connection_id initialization got lost 2011-09-08 12:08:11 +02:00
Andreas Steffen ce8ad867c5 added newline 2011-09-08 12:08:11 +02:00
Andreas Steffen 64fe60534e remove unwanted insertion 2011-09-08 12:08:11 +02:00
Andreas Steffen 7de203bc3b get rid of intermediate handshake_state variable 2011-09-08 12:08:11 +02:00
Andreas Steffen 92582674c7 slightly modified IMC measurement algorithm selection 2011-09-08 12:08:11 +02:00
Andreas Steffen 10b7ff90e6 cosmetics 2011-09-08 12:08:11 +02:00
Sansar Choinyambuu c7787eac47 Implemented the ReceiveMessage function on imc/v 2011-09-08 12:08:11 +02:00
Sansar Choinyambuu 525d191a42 Implemented send_message of File Measurement PTS attribute on imc_attestation 2011-09-08 12:08:11 +02:00
Sansar Choinyambuu 4e691df55a moved file_meas_entry_t struct to header file 2011-09-08 12:08:11 +02:00
Sansar Choinyambuu 5137beada3 Restored the changes 2011-09-08 12:08:11 +02:00
Andreas Steffen c567b0595f combined request with tcg_pts_attr_proto_caps 2011-09-08 12:08:11 +02:00
Andreas Steffen f213998b26 Explain PTS measurement algorithm proposal 2011-09-08 12:08:11 +02:00
Andreas Steffen 5f840ef30d created PTS Functional Component Name header file 2011-09-08 12:08:11 +02:00
Andreas Steffen 2446ca0e47 shortened type name to pts_pcr_transform_t 2011-09-08 12:08:11 +02:00
Andreas Steffen 618d4e383d cosmetics 2011-09-08 12:08:10 +02:00
Andreas Steffen 0af0cc300d set_algorithms method not needed 2011-09-08 12:08:10 +02:00
Andreas Steffen 8db4159a44 use libstrongswan hasher 2011-09-08 12:08:10 +02:00
Andreas Steffen 43b172543e specify supported PTS measurement algorithms 2011-09-08 12:08:10 +02:00
Andreas Steffen c1a7cb1206 convert pts_meas_algo_t to hash_algorithm_type 2011-09-08 12:08:10 +02:00
Andreas Steffen 3f3664ec43 moved pts_meas_algorithms_t to own header file 2011-09-08 12:08:10 +02:00
Andreas Steffen a704fc5c27 refactored PTS measurement algorithms 2011-09-08 12:08:10 +02:00
Andreas Steffen ad4866e831 make imv_attestation plugin compile 2011-09-08 12:08:10 +02:00
Andreas Steffen 13e708b0b8 shortened some type names and enforced encoding rules 2011-09-08 12:08:10 +02:00
Andreas Steffen 5b7d55e097 automatically parse TCG PTS attributes 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 1dd8f9f6b1 Started implementing Notification Handshake and Send Message Functions 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 12c0a261cc Finalized State class implementations for Attestation IMV/C 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 887cd7d253 Corrected typo 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 4b43764ce3 Modified the handling switch for Attributes reception on Attestation IMV/C 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 32fef433c1 Implemented TCG PTS File Measurement attribute 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu e80cf188c1 Corrected wrong parameter name 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 01f29d5979 Implemented TCG PTS Simple Evidence Final and Request File Measurement attributes 2011-09-08 12:08:10 +02:00
Sansar Choinyambuu 86e7dcfc45 Implemented TCG PTS Simple Evidence Final and Request File Measurement attributes 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu 89f7bf2276 Changed the type of hash algorithm to the enum variable
Replaced the values of flag enum variables
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu adc954a77d Implemented TCG PTS Simple Component Evidence Attribute 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu 0105cc5c36 Use chunk_t.len instead of sizeof function
Bit 0 for the flag fields is the most significant field
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu d975e4a755 Changed the type of name field to corresponding enum type 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu f2b89288d0 Finalized the implementation of TCG PTS Request Functional Component Evidence Attribute 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu cbb7925245 Implemented TCG PTS Generate Attestation Evidence attribute
Added two new Attributes to sources in Makefile
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu befdbcb769 Draft version of TCG PTS Request Function Component Evidence Attribute 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu 78f1b194bb Commented compiler options Wall Werror for Makefile
Corrected bit 0 for AIK flags to be least significant bit
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu 1f3f3021d5 Debugged TCG PTS attributes implementations 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu 793d31279b Changes according to the new PTS Attributes addition 2011-09-08 12:08:09 +02:00
Sansar Choinyambuu 3b80bce8c1 Implemented TCG PTS Attributes 2011-09-08 12:08:09 +02:00
Andreas Steffen 0973ec9906 changed DBG_IMC to DBG_IMV 2011-09-08 12:08:09 +02:00
Andreas Steffen 09d5ce39f5 added support of INVALID_PARAMETER PA-Error 2011-09-08 12:08:09 +02:00
Andreas Steffen d74d3d3936 IMC/IMV directory change to imcvs 2011-09-08 12:08:09 +02:00
Andreas Steffen cbea1a31fb added missing endif in Makefile 2011-09-08 12:08:08 +02:00
Andreas Steffen fa6e6a29d8 corrected typo 2011-09-08 12:08:08 +02:00
Andreas Steffen d7bbd6f514 parameters of change_state() method changed 2011-09-08 12:08:08 +02:00
Andreas Steffen 442b264dcd Attestation IMC/IMV pair uses TCG_PTS subtype 2011-09-08 12:08:08 +02:00
Andreas Steffen 24a5af8e4e changed copyright to Sansar 2011-09-08 12:08:08 +02:00
Andreas Steffen e7e2bfbe7d prepare automatic parsing of TCG PTS attributes 2011-09-08 12:08:08 +02:00
Andreas Steffen 4a492a8d1f created empty imc_attestation and imv_attestation plugin hulls 2011-09-08 12:08:08 +02:00
Andreas Steffen 6224a34481 converted libimcv into a dynamic library 2011-08-14 09:27:43 +02:00
Andreas Steffen 0f182737b2 check if violating_ports have been assigned 2011-07-13 23:05:22 +02:00
Andreas Steffen 47f2da4ef9 support of error_offset in PA-TNC INVALID PARAMETER error messages 2011-07-13 22:18:32 +02:00
Andreas Steffen ba53c2ef0d add PID/Program Name to netstat output 2011-07-07 09:22:27 +02:00
Andreas Steffen 19db8e9eff install IMC and IMV dynamic libraries in imcvs directory 2011-07-06 21:53:40 +02:00
Andreas Steffen 9b2b434fe7 ignore ports of IPv4 and IPv6 loopback interfaces 2011-07-05 09:16:01 +02:00
Andreas Steffen 7fd120d5b6 fixed UTF-8 representation of polish reason string 2011-07-05 07:44:46 +02:00
Andreas Steffen e1976a7120 delete orphan file 2011-07-04 23:02:06 +02:00
Andreas Steffen e760e0ad23 fixed debug statement 2011-07-04 22:27:46 +02:00
Andreas Steffen d9cdab9249 added ITA Scanner IMC/IMV pair which detects open server ports on TNC clients 2011-07-04 21:40:25 +02:00
Andreas Steffen 956759533f added support if the IETF port filter attribute 2011-07-01 18:10:33 +02:00
Andreas Steffen 294c25fa60 again a bitwise or is required 2011-06-30 22:26:36 +02:00
Andreas Steffen b324976aa1 output all known PA-TNC subtype names 2011-06-24 17:31:47 +02:00
Andreas Steffen 7401269517 refactoring of change_state() 2011-06-23 19:52:30 +02:00
Andreas Steffen 315c554571 implemented server-initiated handshake retry in IMC/IMV Test pair 2011-06-23 15:23:53 +02:00
Andreas Steffen 96d0ff1237 implemented handshake retry on the client side 2011-06-15 13:09:41 +02:00
Andreas Steffen 0dbfdece4f send a reason string only if action recommendation is not allow 2011-06-14 15:45:34 +02:00
Andreas Steffen 08dc42b025 cosmetics 2011-06-14 14:26:05 +02:00
Andreas Steffen 12ac59a914 eat trailing space in preferred language string 2011-06-13 23:01:28 +02:00
Andreas Steffen 4c191ca6bb support multiple language preferences 2011-06-13 15:58:27 +02:00
Andreas Steffen 44bd40a101 implemented sending of reason strings 2011-06-13 15:31:34 +02:00
Andreas Steffen 0eb23d7be2 separated tncif_names from standard TCG TNC header files 2011-06-06 20:36:58 +02:00
Andreas Steffen d8f7f2f004 nearly completed PA-TNC error handling 2011-06-05 23:24:48 +02:00
Andreas Steffen c722ab035c cosmetics 2011-06-05 15:06:55 +02:00
Andreas Steffen 3cfd8393bf enum names for ietf_attr_t 2011-06-05 14:17:47 +02:00
Andreas Steffen 2f7f248f11 added a reference count for PA-TNC attributes 2011-06-03 16:39:27 +02:00
Andreas Steffen ad963975aa streamlined libimcv debug output 2011-06-02 12:19:03 +02:00
Andreas Steffen 6cfc8668c1 set configuration of imv_test with each TNC handshake 2011-06-02 11:37:27 +02:00
Andreas Steffen e1e6656094 configure IMC/IMV pairs as libimcv plugins 2011-06-02 10:24:31 +02:00
Andreas Steffen e01b02e17d configure libimcv debug output via strongswan.conf 2011-06-02 09:59:46 +02:00
Andreas Steffen d4c8fe3cb6 initialize libstrongswan in dynamic stand-alone libimcv-based libraries 2011-06-01 20:59:25 +02:00
Andreas Steffen 633720f99a started error handling of PA-TNC protocol 2011-06-01 16:33:44 +02:00
Andreas Steffen 7c4d4d209d make IMC/IMV pairs independent of libcharon 2011-06-01 16:33:44 +02:00
Andreas Steffen 3a47530e96 moved imc_test/imv_test plugins to libimcv 2011-06-01 07:55:07 +02:00
Andreas Steffen 7e432eff6b renamed tls_reader|writer to bio_* and moved to libstrongswan 2011-05-31 15:46:51 +02:00
Andreas Steffen 54b622c30b corrected debug class to IMV 2011-05-30 23:08:16 +02:00
Andreas Steffen 510f37abd4 implemented the RFC 5792 PA-TNC protocol and an example IMC/IMV pair 2011-05-30 21:30:09 +02:00