Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Make number of concurrently handled stroke messages configurable. | Tobias Brunner | 2011-12-29 | 1 | -2/+9 | |
| | | ||||||
* | | Limit the number of concurrently handled stroke messages. | Tobias Brunner | 2011-12-29 | 1 | -18/+104 | |
| | | | | | | | | This avoids clogging the thread pool with potentially blocking jobs. | |||||
* | | register aik certificate via ipsec attest | Andreas Steffen | 2011-12-25 | 4 | -10/+54 | |
| | | ||||||
* | | Be less verbose about TLS extensions | Martin Willi | 2011-12-24 | 1 | -1/+1 | |
| | | ||||||
* | | In TLS 1.2, PRF and HASH function use at least SHA-256, not the MAC hash ↵ | Martin Willi | 2011-12-24 | 1 | -20/+20 | |
| | | | | | | | | function | |||||
* | | Added a getter for the tls_socket file descriptor | Martin Willi | 2011-12-24 | 2 | -0/+14 | |
| | | ||||||
* | | Allow callers to force ASN.1 date encoding as GENERALIZEDTIME. | Tobias Brunner | 2011-12-23 | 6 | -14/+16 | |
| | | ||||||
* | | Avoid integer overflow when parsing ASN.1 dates. | Tobias Brunner | 2011-12-23 | 1 | -2/+2 | |
| | | | | | | | | This only works properly if sizeof(time_t) > 4. | |||||
* | | pki: Avoid integer overflow when calculating certificate lifetimes. | Tobias Brunner | 2011-12-23 | 3 | -3/+3 | |
| | | | | | | | | This only works properly if sizeof(time_t) > 4. | |||||
* | | Properly ASN.1 encode dates in certificates depending on the year. | Tobias Brunner | 2011-12-23 | 6 | -16/+21 | |
| | | ||||||
* | | pluto: Fixed expiration date test. | Tobias Brunner | 2011-12-23 | 1 | -2/+1 | |
| | | ||||||
* | | Fix deadlock in trap_manager_t during acquire. | Tobias Brunner | 2011-12-23 | 1 | -28/+43 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes a TOCTOU issue regarding the use of entry_t.pending. The deadlock was caused because the rwlock was being locked while waiting for an IKE_SA. Triggering the deadlock was a bit tricky, here is the description by Thomas Egerer (the reporter of this issue): " The deadlock occurs when the following happens (in the given order): a) an IKE_SA is built and a thread is processing the IKE_AUTH request, which can take a bit longer when a smartcard is involved. This causes the ike_sa_manager to lock a particular IKE_SA exclusively. b) an acquire is triggered which causes the rwlock in the trap_manager to be read-locked, the subsequent call to ike_sa_manager->checkout_by_config has to wait until a) unlocks it's ike_sa. c) a child_cfg contained in the peer_cfg belonging to the ike_sa a) has locked is routed causes the child_configs contained in the peer config to be locked by c) while the actual routing code within trap_manager tries to writelock it's rwlock. That's about it. As soon as a) finishes authentication of the peer and tries to find a matching child sa it will try to lock the child configs of the peer config which is not possible since it has been locked by c). Thread | Resource locked | Resource desired -------+--------------------------------+-------------------------------- (a) | ike_sa in ike_sa_manager | child_cfgs of peer_cfg | | (b) | rwlock in trap-manager (read) | ike_sa in ike_sa_manager | | (c) | child_cfgs of peer_cfg | rwlock in trap-manager (write) " With this patch thread (b) now does not hold the lock while waiting for the IKE_SA. Thus (c) can get the write lock, and (a) can subsequently lock the mutex in the peer_cfg which then finally allows (b) to checkout the IKE_SA. | |||||
* | | Added atomic compare and swap operations. | Tobias Brunner | 2011-12-23 | 2 | -0/+48 | |
| | | | | | | | | Using a GCC atomic builtin if available or a global mutex otherwise. | |||||
* | | Fixed flush() method of trap_manager_t. | Tobias Brunner | 2011-12-23 | 1 | -3/+9 | |
| | | | | | | | | | | A segmentation fault could have happened during destruction of the trap manager after calling flush(). | |||||
* | | additional state waiting for the EvidenceFinal attribute response | Andreas Steffen | 2011-12-20 | 2 | -0/+8 | |
| | | ||||||
* | | moved send_message() in front of recommendation evaluation | Andreas Steffen | 2011-12-18 | 4 | -20/+21 | |
| | | ||||||
* | | added case IMV_ATTESTATION_STATE_END | Andreas Steffen | 2011-12-18 | 2 | -5/+3 | |
| | | ||||||
* | | TrouSerS expects a bitmask field length of at least 3 bytes | Sansar Choinyambuu | 2011-12-18 | 1 | -1/+5 | |
| | | ||||||
* | | build PA-TNC message only if there are PA-TNC attributes to send | Andreas Steffen | 2011-12-18 | 3 | -20/+43 | |
| | | ||||||
* | | destroy attributes, too | Andreas Steffen | 2011-12-18 | 1 | -1/+1 | |
| | | ||||||
* | | added reference counts to all PA-TNC attribute classes | Andreas Steffen | 2011-12-18 | 19 | -56/+405 | |
| | | ||||||
* | | reworded comments and debug output | Andreas Steffen | 2011-12-18 | 1 | -13/+20 | |
| | | ||||||
* | | Prepend Debian string to Debian version | Andreas Steffen | 2011-12-18 | 1 | -7/+19 | |
| | | ||||||
* | | removed unused variable | Andreas Steffen | 2011-12-16 | 1 | -1/+0 | |
| | | ||||||
* | | moved management of additional IMC/IMV IDs to agent | Andreas Steffen | 2011-12-16 | 7 | -83/+146 | |
| | | ||||||
* | | Also log PGP parsing in ASN log group. | Tobias Brunner | 2011-12-16 | 2 | -19/+19 | |
| | | ||||||
* | | Log messages for PKCS1 and PEM parsing in ASN log group. | Tobias Brunner | 2011-12-16 | 2 | -11/+11 | |
| | | ||||||
* | | Log most X.509 related messages in new ASN log group. | Tobias Brunner | 2011-12-16 | 5 | -57/+57 | |
| | | ||||||
* | | Log ASN.1 parsing in new ASN debug group. | Tobias Brunner | 2011-12-16 | 2 | -26/+26 | |
| | | ||||||
* | | Added ASN debug group to log low-level encoding/decoding (ASN.1, X.509). | Tobias Brunner | 2011-12-16 | 4 | -2/+7 | |
| | | | | | | | | | | This will allow us to remove quite some clutter from the LIB debug group for higher debug levels. | |||||
* | | Log native thread ID when a thread is created. | Tobias Brunner | 2011-12-16 | 1 | -1/+16 | |
| | | | | | | | | | | If possible gettid() is used, otherwise pthread_self() is logged (which is not completely portable, but seems to work on most supported platforms). | |||||
* | | Log worker thread ID with two digits. | Tobias Brunner | 2011-12-16 | 1 | -2/+2 | |
| | | ||||||
* | | fixed caption alignment | Andreas Steffen | 2011-12-16 | 1 | -1/+2 | |
| | | ||||||
* | | Revert "fixed caption alignment" | Andreas Steffen | 2011-12-16 | 2 | -6/+1 | |
| | | | | | | | | This reverts commit d463def798ed339b143ee9500c2781532394171e. | |||||
* | | fixed caption alignment | Andreas Steffen | 2011-12-16 | 2 | -1/+6 | |
| | | ||||||
* | | Make sure the certificate cache is flushed when plugins are unloaded. | Tobias Brunner | 2011-12-15 | 3 | -0/+6 | |
| | | | | | | | | | | This avoids segmentation faults when plugins implementing cert_t are already unloaded when the cache is flushed during destruction. | |||||
* | | Always unlock mutex for installed policies in kernel-netlink plugin. | Thomas Egerer | 2011-12-14 | 1 | -1/+5 | |
| | | ||||||
* | | Added missing libsimaka files to Android.mk. | Tobias Brunner | 2011-12-14 | 1 | -0/+2 | |
| | | ||||||
* | | Destroy mediation managers before unloading plugins. | Tobias Brunner | 2011-12-14 | 1 | -4/+4 | |
| | | ||||||
* | | upgraded Test IMC/IMV pair to fully support multple IMC IDs | Andreas Steffen | 2011-12-11 | 4 | -81/+144 | |
| | | ||||||
* | | added IETF standard error handling method | Andreas Steffen | 2011-12-11 | 8 | -185/+112 | |
| | | ||||||
* | | implemented IMC/IMV ReceiveMessageLong functions | Andreas Steffen | 2011-12-09 | 11 | -128/+467 | |
| | | ||||||
* | | added IMC/IMV support for send_message_long() and reserve_additional_id() ↵ | Andreas Steffen | 2011-12-09 | 14 | -31/+332 | |
| | | | | | | | | functions | |||||
* | | store the long and excl flags in the connection state | Andreas Steffen | 2011-12-09 | 10 | -1/+245 | |
| | | ||||||
* | | IMC/IMV gets v1.3 attributes from TNCC/TNCS | Andreas Steffen | 2011-12-09 | 2 | -12/+162 | |
| | | ||||||
* | | implemented ReportMessageTypesLong | Andreas Steffen | 2011-12-08 | 2 | -17/+91 | |
| | | ||||||
* | | implemented IF-IMC/IMV 1.3 attributes | Andreas Steffen | 2011-12-08 | 4 | -23/+229 | |
| | | ||||||
* | | added TNC_TNCC_GetAttribute() and TNC_TNCC_SetAttribute() functions | Andreas Steffen | 2011-12-08 | 4 | -14/+67 | |
| | | ||||||
* | | added TNC_IMC_ReceiveMessageLong() and TNC_IMV_ReceiveMessageLong() support | Andreas Steffen | 2011-12-08 | 10 | -69/+192 | |
| | | ||||||
* | | fixed typo in function name | Andreas Steffen | 2011-12-08 | 1 | -1/+1 | |
| | |