aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved utils.[ch] to utils folderTobias Brunner2012-10-241-570/+0
|
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Moved enum_name_t to utils folderTobias Brunner2012-10-241-1/+0
|
* Moved data structures to new collections subfolderTobias Brunner2012-10-241-1/+1
|
* Pass opaque data to printf hooks and print_in_hook()Martin Willi2012-07-131-8/+8
|
* Defined a macro to replace strerror(3) with calls to thread-safe wrapperTobias Brunner2012-06-281-0/+2
|
* Thread-safe wrapper around strerror(3)/strerror_r(3) addedTobias Brunner2012-06-281-2/+79
|
* Don't cast second argument of mem_printf_hook (%b) to size_t.Tobias Brunner2012-03-271-2/+2
| | | | | | | | | | | | | 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/+22
| | | | Using a GCC atomic builtin if available or a global mutex otherwise.
* Unused variable removed.Tobias Brunner2011-10-131-1/+1
|
* Make sure /proc/$$/fd exists.Tobias Brunner2011-10-131-1/+1
| | | | This avoids the error message generated by enumerator_create_directory().
* Only close open file descriptors on Linux.Tobias Brunner2011-10-131-1/+26
|
* Added a replacement for closefrom (available on *BSD).Tobias Brunner2011-10-131-1/+20
|
* Properly print time differences.Tobias Brunner2011-06-071-2/+4
| | | | time_t is not necessarily of type int.
* Added a memwipe() function to safely overwrite sensitive memoryMartin Willi2011-05-091-0/+8
|
* Use a boolean expression for refcount check, fixes refcounting if bool is a ↵Martin Willi2011-03-091-1/+1
| | | | signed char
* Migrated psk/pubkey_authenticators to INIT/METHOD macrosMartin Willi2011-01-051-0/+8
|
* Fixed status_t enum names definitionMartin Willi2010-10-041-1/+1
|
* Adding DBG_LIB to all calls of libstrongswan's version of DBG*.Tobias Brunner2010-04-061-2/+2
|
* 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/+22
|
* The return value of snprintf is int not size_t.Tobias Brunner2010-03-031-1/+1
|
* Fixing some includes by replacing <> with "".Tobias Brunner2010-03-021-2/+2
| | | | 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.
* Use pthread_cond_timedwait_monotonic on Android.Tobias Brunner2009-12-231-2/+4
|
* Fix word alignement in memxor() on 64-bit architecturesMartin Willi2009-11-121-1/+1
|
* replaces four spaces by tabs, where appropriateMartin Willi2009-09-041-1/+1
|
* removed trailing spaces ([[:space:]]+$)Martin Willi2009-09-041-15/+15
|
* use monotonic time source in convar->timed_wait, and in the scheduler using itMartin Willi2009-08-311-3/+6
|
* implemented a monotonic timestamping function, unaffected from system time ↵Martin Willi2009-08-311-0/+33
| | | | changes
* cast pointers to uintptr_t for alignement checkMartin Willi2009-07-151-2/+3
|
* memxor does not access unaligned words anymore, but still uses words if possibleMartin Willi2009-07-081-9/+32
|
* removing svn keyword $Id$ from all filesTobias Brunner2009-04-301-2/+0
|
* merging changes from portability branch back to trunkTobias Brunner2009-04-301-0/+1
| | | | | important change for developers: %Y replaces %D to print identities!
* added return_true/false() dummy functionsMartin Willi2009-04-241-0/+16
|
* printf hooks refactored to increase portability (i.e. support for platforms ↵Tobias Brunner2009-03-121-127/+23
| | | | without glibc-compatible customizable printf - the Vstr string library is currently required on such platforms).
* added memstr and extract_token_str helper functionsTobias Brunner2008-12-031-0/+17
|
* ref_get()/ref_put() use atomic gcc operations if supported, thanks to Thomas ↵Martin Willi2008-12-021-13/+7
| | | | Jarosch for the patch
* added time.h include for struct tmMartin Willi2008-12-021-0/+1
|
* memxor() tweaks, as it is heavily used in xcbcMartin Willi2008-11-261-2/+10
|
* mkdir_p: utility function to create a directory and all required parent ↵Tobias Brunner2008-08-281-0/+51
| | | | directories
* extended credential_set_t interface by a cache_cert() methodMartin Willi2008-04-171-0/+7
| | | | allows persistent or in-memory caching of fetched certificates
* fixed CRL check return value on revoked certificatesMartin Willi2008-03-191-0/+8
| | | | | fixed possible refcounting bugs generic return_null() implementation
* merged the modularization branch (credentials) back to trunkMartin Willi2008-03-131-0/+327