aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Moved utils.[ch] to utils folderTobias Brunner2012-10-241-699/+0
|
* Moved enum_name_t to utils folderTobias Brunner2012-10-241-1/+1
|
* Use a helper function to add milliseconds to timeval structsTobias Brunner2012-10-181-0/+16
|
* Make streq() and strcaseeq() static inline functions so they can be used as ↵Tobias Brunner2012-09-211-25/+31
| | | | callbacks
* Pass opaque data to printf hooks and print_in_hook()Martin Willi2012-07-131-3/+3
|
* Defined a macro to replace strerror(3) with calls to thread-safe wrapperTobias Brunner2012-06-281-0/+5
|
* Thread-safe wrapper around strerror(3)/strerror_r(3) addedTobias Brunner2012-06-281-2/+13
|
* Implement strdupnull() macro as static inline function.Tobias Brunner2012-06-111-1/+4
| | | | This avoids compiler warnings if the argument is a const char*.
* Make function pointer defined with METHOD() macro non-constMartin Willi2012-05-141-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 happyMartin Willi2012-05-141-3/+2
|
* Merge branch 'ikev1'Martin Willi2012-05-021-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-masterMartin Willi2012-03-201-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 filesMartin Willi2012-03-201-0/+0
| | |
| | * Remove unused status typeMartin Willi2012-03-201-5/+0
| | |
| | * Added status code to status_tClavister OpenSource2012-03-201-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 Willi2012-03-201-0/+14
| | | | | | | | | | | | available
| | * fixed copy-and-paste errorAndreas Steffen2012-03-201-1/+1
| | |
| | * extended bio_reader and bio_writer to handle u_int64_tAndreas Steffen2012-03-201-0/+42
| | |
| | * Revert "IKEv1 XAuth: Added new MIGRATE status type to status_t."Clavister OpenSource2012-03-201-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 OpenSource2012-03-201-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 Brunner2012-03-271-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 Brunner2011-12-231-0/+26
| | | | | | | | Using a GCC atomic builtin if available or a global mutex otherwise.
* | fixed copy-and-paste errorAndreas Steffen2011-12-041-1/+1
| |
* | extended bio_reader and bio_writer to handle u_int64_tAndreas Steffen2011-11-281-0/+42
|/
* Added a replacement for closefrom (available on *BSD).Tobias Brunner2011-10-131-1/+10
|
* Return allocated variable in INIT()Martin Willi2011-09-121-2/+3
|
* Fix memwipe() of leading unaligned bytesMartin Willi2011-05-241-5/+8
|
* Added a memwipe() function to safely overwrite sensitive memoryMartin Willi2011-05-091-0/+45
|
* Added a null-safe strdup variantMartin Willi2011-01-051-0/+5
|
* Added a strncaseeq variant to the string comparison macrosMartin Willi2011-01-051-1/+6
|
* Migrated psk/pubkey_authenticators to INIT/METHOD macrosMartin Willi2011-01-051-0/+5
|
* Added helper macros to define portable bitfields with gccMartin Willi2010-08-191-0/+22
|
* Adding the OpenSSL plugin to the Android build.Tobias Brunner2010-03-081-1/+1
|
* Adding a helper function that translates single characters in a string.Tobias Brunner2010-03-081-0/+8
|
* Add braces around empty body in if statementMartin Willi2010-03-031-1/+1
|
* Use "static const", some GCCs don't like "const static"Martin Willi2010-03-031-2/+2
|
* Fixing some includes by replacing <> with "".Tobias Brunner2010-03-021-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 interfacesMartin Willi2010-01-211-1/+11
|
* Cast unaligned memcpy() args to char*, avoids over-optimization on ARMMartin Willi2010-01-111-4/+10
| | | | See http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3934.html
* Fixed untoh32 functionMartin Willi2009-12-231-1/+1
|
* Added a METHOD() macro to define methods with both public and private signaturesMartin Willi2009-12-171-0/+13
|
* Added a INIT() macro to initialize class instancesMartin Willi2009-12-171-0/+6
|
* Added htoun16/32 and untoh16/32 to read/write unaligned network order integersMartin Willi2009-12-151-0/+54
|
* define TIME_32_BITS_SIGNED_MAX in utils.hAndreas Steffen2009-11-081-0/+5
|
* replaces four spaces by tabs, where appropriateMartin Willi2009-09-041-3/+3
|
* removed trailing spaces ([[:space:]]+$)Martin Willi2009-09-041-17/+17
|
* Added side effect free min and max macros.Tobias Brunner2009-09-011-2/+9
|
* implemented a monotonic timestamping function, unaffected from system time ↵Martin Willi2009-08-311-2/+15
| | | | changes
* Defined some missing fixed-width int types on OpenSolaris.Tobias Brunner2009-08-141-0/+13
|
* use SS_RC_FIRST and SS_RC_LASTAndreas Steffen2009-08-061-0/+3
|