Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Moved utils.[ch] to utils folder | Tobias Brunner | 2012-10-24 | 1 | -699/+0 |
| | |||||
* | Moved enum_name_t to utils folder | Tobias Brunner | 2012-10-24 | 1 | -1/+1 |
| | |||||
* | Use a helper function to add milliseconds to timeval structs | Tobias Brunner | 2012-10-18 | 1 | -0/+16 |
| | |||||
* | Make streq() and strcaseeq() static inline functions so they can be used as ↵ | Tobias Brunner | 2012-09-21 | 1 | -25/+31 |
| | | | | callbacks | ||||
* | Pass opaque data to printf hooks and print_in_hook() | Martin Willi | 2012-07-13 | 1 | -3/+3 |
| | |||||
* | Defined a macro to replace strerror(3) with calls to thread-safe wrapper | Tobias Brunner | 2012-06-28 | 1 | -0/+5 |
| | |||||
* | Thread-safe wrapper around strerror(3)/strerror_r(3) added | Tobias Brunner | 2012-06-28 | 1 | -2/+13 |
| | |||||
* | Implement strdupnull() macro as static inline function. | Tobias Brunner | 2012-06-11 | 1 | -1/+4 |
| | | | | This avoids compiler warnings if the argument is a const char*. | ||||
* | Make function pointer defined with METHOD() macro non-const | Martin Willi | 2012-05-14 | 1 | -2/+2 |
| | | | | | clang complains about it being const, and the object code generated from gcc is the same. | ||||
* | Remove unused return value of INIT(), making clang happy | Martin Willi | 2012-05-14 | 1 | -3/+2 |
| | |||||
* | Merge branch 'ikev1' | Martin Willi | 2012-05-02 | 1 | -0/+14 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.in man/ipsec.conf.5.in src/libcharon/encoding/generator.c src/libcharon/encoding/payloads/notify_payload.c src/libcharon/encoding/payloads/notify_payload.h src/libcharon/encoding/payloads/payload.c src/libcharon/network/receiver.c src/libcharon/sa/authenticator.c src/libcharon/sa/authenticator.h src/libcharon/sa/ikev2/tasks/ike_init.c src/libcharon/sa/task_manager.c src/libstrongswan/credentials/auth_cfg.c | ||||
| * | Merge branch 'ikev1-clean' into ikev1-master | Martin Willi | 2012-03-20 | 1 | -0/+14 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.in man/ipsec.conf.5.in src/libcharon/daemon.c src/libcharon/plugins/eap_ttls/eap_ttls_peer.c src/libcharon/plugins/eap_radius/eap_radius_accounting.c src/libcharon/plugins/eap_radius/eap_radius_forward.c src/libcharon/plugins/farp/farp_listener.c src/libcharon/sa/ike_sa.c src/libcharon/sa/keymat.c src/libcharon/sa/task_manager.c src/libcharon/sa/trap_manager.c src/libstrongswan/plugins/x509/x509_cert.c src/libstrongswan/utils.h Applied lost changes of moved files keymat.c and task_manager.c. Updated listener_t.message hook signature in new plugins. | ||||
| | * | Remove executable flag from source code files | Martin Willi | 2012-03-20 | 1 | -0/+0 |
| | | | |||||
| | * | Remove unused status type | Martin Willi | 2012-03-20 | 1 | -5/+0 |
| | | | |||||
| | * | Added status code to status_t | Clavister OpenSource | 2012-03-20 | 1 | -0/+5 |
| | | | | | | | | | | | | New status_t enum to allow packets to be sent to peer in task_manager->process | ||||
| | * | Implement htoun/untoh64 with potentially faster htobe64/be64toh macros, if ↵ | Martin Willi | 2012-03-20 | 1 | -0/+14 |
| | | | | | | | | | | | | available | ||||
| | * | fixed copy-and-paste error | Andreas Steffen | 2012-03-20 | 1 | -1/+1 |
| | | | |||||
| | * | extended bio_reader and bio_writer to handle u_int64_t | Andreas Steffen | 2012-03-20 | 1 | -0/+42 |
| | | | |||||
| | * | Revert "IKEv1 XAuth: Added new MIGRATE status type to status_t." | Clavister OpenSource | 2012-03-20 | 1 | -6/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b57df8310a867a0a65abf17279bf1b6e6bb2f5d3. Conflicts: src/libcharon/sa/task_manager_v1.c | ||||
| | * | IKEv1 XAuth: Added new MIGRATE status type to status_t. | Clavister OpenSource | 2012-03-20 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a task returns this status from a build or process method, it is a signal to the task manager that it should treat it as if the task returned SUCCESS. Additionally it will migrate all remaining tasks from the current queue to a different one, calling swap_initiator for each applicable task. Finally, the task manager will call "initiate", if applicable, to kick off tasks in the "queued_tasks" queue. Task queue relocation mapping: passive_tasks moves to queued_tasks (which is then fed to active by the initiate call). active_tasks moves to passive_tasks | ||||
* | | | Don't cast second argument of mem_printf_hook (%b) to size_t. | Tobias Brunner | 2012-03-27 | 1 | -1/+1 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | Also treat the given number as unsigned int. Due to the printf hook registration the second argument of mem_printf_hook (if called via printf etc.) is always of type int*. Casting this to a size_t pointer and then dereferencing that as int does not work on big endian machines if int is smaller than size_t (e.g. on ppc64). In order to make this change work if the argument is of a type larger than int, size_t for instance, the second argument for %b has to be casted to (u_)int. | ||||
* | | Added atomic compare and swap operations. | Tobias Brunner | 2011-12-23 | 1 | -0/+26 |
| | | | | | | | | Using a GCC atomic builtin if available or a global mutex otherwise. | ||||
* | | fixed copy-and-paste error | Andreas Steffen | 2011-12-04 | 1 | -1/+1 |
| | | |||||
* | | extended bio_reader and bio_writer to handle u_int64_t | Andreas Steffen | 2011-11-28 | 1 | -0/+42 |
|/ | |||||
* | Added a replacement for closefrom (available on *BSD). | Tobias Brunner | 2011-10-13 | 1 | -1/+10 |
| | |||||
* | Return allocated variable in INIT() | Martin Willi | 2011-09-12 | 1 | -2/+3 |
| | |||||
* | Fix memwipe() of leading unaligned bytes | Martin Willi | 2011-05-24 | 1 | -5/+8 |
| | |||||
* | Added a memwipe() function to safely overwrite sensitive memory | Martin Willi | 2011-05-09 | 1 | -0/+45 |
| | |||||
* | Added a null-safe strdup variant | Martin Willi | 2011-01-05 | 1 | -0/+5 |
| | |||||
* | Added a strncaseeq variant to the string comparison macros | Martin Willi | 2011-01-05 | 1 | -1/+6 |
| | |||||
* | Migrated psk/pubkey_authenticators to INIT/METHOD macros | Martin Willi | 2011-01-05 | 1 | -0/+5 |
| | |||||
* | Added helper macros to define portable bitfields with gcc | Martin Willi | 2010-08-19 | 1 | -0/+22 |
| | |||||
* | Adding the OpenSSL plugin to the Android build. | Tobias Brunner | 2010-03-08 | 1 | -1/+1 |
| | |||||
* | Adding a helper function that translates single characters in a string. | Tobias Brunner | 2010-03-08 | 1 | -0/+8 |
| | |||||
* | Add braces around empty body in if statement | Martin Willi | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Use "static const", some GCCs don't like "const static" | Martin Willi | 2010-03-03 | 1 | -2/+2 |
| | |||||
* | Fixing some includes by replacing <> with "". | Tobias Brunner | 2010-03-02 | 1 | -1/+1 |
| | | | | I changed only the includes needed to fix the build on Android, which has an utils.h system header file, but we should probably change all the local includes in libstrongswan to "" and relative paths. | ||||
* | Added a METHOD2() macro that implements a method for two different interfaces | Martin Willi | 2010-01-21 | 1 | -1/+11 |
| | |||||
* | Cast unaligned memcpy() args to char*, avoids over-optimization on ARM | Martin Willi | 2010-01-11 | 1 | -4/+10 |
| | | | | See http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3934.html | ||||
* | Fixed untoh32 function | Martin Willi | 2009-12-23 | 1 | -1/+1 |
| | |||||
* | Added a METHOD() macro to define methods with both public and private signatures | Martin Willi | 2009-12-17 | 1 | -0/+13 |
| | |||||
* | Added a INIT() macro to initialize class instances | Martin Willi | 2009-12-17 | 1 | -0/+6 |
| | |||||
* | Added htoun16/32 and untoh16/32 to read/write unaligned network order integers | Martin Willi | 2009-12-15 | 1 | -0/+54 |
| | |||||
* | define TIME_32_BITS_SIGNED_MAX in utils.h | Andreas Steffen | 2009-11-08 | 1 | -0/+5 |
| | |||||
* | replaces four spaces by tabs, where appropriate | Martin Willi | 2009-09-04 | 1 | -3/+3 |
| | |||||
* | removed trailing spaces ([[:space:]]+$) | Martin Willi | 2009-09-04 | 1 | -17/+17 |
| | |||||
* | Added side effect free min and max macros. | Tobias Brunner | 2009-09-01 | 1 | -2/+9 |
| | |||||
* | implemented a monotonic timestamping function, unaffected from system time ↵ | Martin Willi | 2009-08-31 | 1 | -2/+15 |
| | | | | changes | ||||
* | Defined some missing fixed-width int types on OpenSolaris. | Tobias Brunner | 2009-08-14 | 1 | -0/+13 |
| | |||||
* | use SS_RC_FIRST and SS_RC_LAST | Andreas Steffen | 2009-08-06 | 1 | -0/+3 |
| |