| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Don't inherit file descriptor to child process | Tatsuhiro Tsujikawa | 2016-02-08 | 1 | -2/+20 |
| | | | | | | | For non-Mingw32 build, set FD_CLOEXEC to file descriptors which live beyond function scope. For Mingw32 build, just pass false to bInheritHandles parameter of CreateProcessW. | ||||
| * | mingw: Add formatLastError as wrapper function for FormatMessage | Tatsuhiro Tsujikawa | 2016-01-28 | 1 | -0/+18 |
| | | |||||
| * | Refactor HttpRequest | Tatsuhiro Tsujikawa | 2016-01-10 | 1 | -0/+5 |
| | | | | | | This also makes comparison performed when replacing builtin header field with user-defined one case-insensitive. | ||||
| * | Refactor SocketCore::getPeerInfo, getAddrInfo to return Endpoint object | Tatsuhiro Tsujikawa | 2016-01-09 | 1 | -3/+3 |
| | | |||||
| * | make clang-format using clang-format-3.6 | Tatsuhiro Tsujikawa | 2015-12-27 | 1 | -590/+627 |
| | | |||||
| * | Make clang (OSX) happy again | Nils Maier | 2015-06-24 | 1 | -0/+1 |
| | | |||||
| * | Fix compile warning with Mingw64 x86 build | Tatsuhiro Tsujikawa | 2015-06-21 | 1 | -1/+2 |
| | | |||||
| * | Use user-defined literal for k, m, and g (powers of 1024) | Tatsuhiro Tsujikawa | 2015-06-21 | 1 | -10/+10 |
| | | |||||
| * | Make config and cache files conform to XDG | Vasilij Schneidermann | 2015-06-02 | 1 | -0/+31 |
| | | | | | | | | See http://standards.freedesktop.org/basedir-spec/latest/ for further details. This implementation decides the default based on whether a file exists at the legacy location, if it doesn't, it picks the XDG-conforming location instead. | ||||
| * | Mingw: Use _wgetenv to get user's home directory | Tatsuhiro Tsujikawa | 2015-02-21 | 1 | -13/+32 |
| | | | | | Fixes GH-342 | ||||
| * | Fix compile error without SSL/TLS enabled | Tatsuhiro Tsujikawa | 2015-02-01 | 1 | -0/+2 |
| | | |||||
| * | Revise getRandom facilities | Nils Maier | 2015-01-20 | 1 | -37/+2 |
| | | | | | | | | | | | | | | | Use one of the following to provide random bytes: - Windows CryptGenRandom - Linux getrandom (syscall interface to urandom, without nasty corner cases such as file descriptor exhaustion or re-linked /dev/urandom) - std::device_random (C++ random device, which usually will be urandom) This also equalizes util::getRandom and SimpleRandomizer (the former will now use the latter) instead of having essentially two different PRNG interfaces with potentially different quality. Closes GH-320 | ||||
| * | Add --min-tls-version option | Tatsuhiro Tsujikawa | 2014-12-06 | 1 | -0/+17 |
| | | | | | | The --min-tls-version option specifies minimum SSL/TLS version to enable. Possible Values: SSLv3, TLSv1, TLSv1.1, TLSv1.2 Default: TLSv1 | ||||
| * | util::parseIntSegments: Return SegList<int> | Tatsuhiro Tsujikawa | 2014-06-04 | 1 | -1/+3 |
| | | |||||
| * | Support PREF_DIR change for Metalink files | Tatsuhiro Tsujikawa | 2014-06-04 | 1 | -0/+7 |
| | | | | | | Reworked previous commit adeead6f0396e2f8551d1182972e277728fd6c8b, and now support changing PREF_DIR for Metalink downloads. | ||||
| * | Fix unused function warning about generateRandomDataUrandom in mingw-w64 | Nils Maier | 2014-05-08 | 1 | -0/+2 |
| | | |||||
| * | Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, always | Nils Maier | 2014-04-17 | 1 | -8/+2 |
| | | |||||
| * | Fix bad fork() return value handling | Tatsuhiro Tsujikawa | 2013-12-06 | 1 | -1/+1 |
| | | |||||
| * | Code cleanup | Tatsuhiro Tsujikawa | 2013-11-01 | 1 | -2/+2 |
| | | |||||
| * | Remove nativeToUtf8 and utf8ToNative | Tatsuhiro Tsujikawa | 2013-11-01 | 1 | -47/+4 |
| | | | | | | They are now not needed since we use Windows specific command-line argument converter. | ||||
| * | util.cc: Remove uselss inline static | Tatsuhiro Tsujikawa | 2013-09-30 | 1 | -2/+0 |
| | | |||||
| * | util::percentEncodeMini: Fix regression bug removed unsignedness | Tatsuhiro Tsujikawa | 2013-09-30 | 1 | -4/+6 |
| | | | | | | srange-based for around std::string is convenient but several functions depend unsigned char for correctness and readability. | ||||
| * | Include prefs.h instead of typedef PrefPtr everywhere | Tatsuhiro Tsujikawa | 2013-09-26 | 1 | -1/+0 |
| | | |||||
| * | Make generateRandomBytes less biased. | Nils Maier | 2013-09-24 | 1 | -3/+1 |
| | | |||||
| * | More auto-converts by cpp11-migrate | Nils Maier | 2013-09-20 | 1 | -3/+2 |
| | | |||||
| * | Introduce PrefPtr typedef | Nils Maier | 2013-09-19 | 1 | -2/+2 |
| | | |||||
| * | More code cleanups | Nils Maier | 2013-09-19 | 1 | -95/+102 |
| | | |||||
| * | util::htmlEscape: Optimize a bit | Tatsuhiro Tsujikawa | 2013-08-29 | 1 | -24/+23 |
| | | | | | | | | | | The cause of slowness of the first implementation is the memory allocation overhead and appending character by character. In this implementation, the output buffer is reserved the same size of input. This is reasonable because most likely no replacement happens in practice. And the unmodified region is copied using iterator range to speed up a bit. | ||||
| * | Fast-path for percentEncodeMini(string&) | Nils Maier | 2013-08-24 | 1 | -8/+17 |
| | | |||||
| * | Optimize htmlEscape implementation a bit | Nils Maier | 2013-08-24 | 1 | -17/+24 |
| | | |||||
| * | Add fast-path to percentEncode(string&) | Nils Maier | 2013-08-24 | 1 | -0/+4 |
| | | |||||
| * | Convert to autos and ranged loops | Nils Maier | 2013-08-21 | 1 | -4/+2 |
| | | |||||
| * | Convert most 0/NULL pointers to nullptr | Nils Maier | 2013-08-20 | 1 | -8/+8 |
| | | | | | Courtesy of llvm cpp11-migrate 3.3 | ||||
| * | Define a type for signal handlers | Nils Maier | 2013-08-18 | 1 | -3/+3 |
| | | |||||
| * | Win: Use SetConsoleCtrlHandler for SIGINT/SIGTERM | Nils Maier | 2013-08-18 | 1 | -0/+76 |
| | | |||||
| * | Use std::unique_ptr instead of array_ptr | Tatsuhiro Tsujikawa | 2013-07-03 | 1 | -26/+23 |
| | | |||||
| * | Use std::unique_ptr for MessageDigest | Tatsuhiro Tsujikawa | 2013-07-03 | 1 | -1/+2 |
| | | |||||
| * | Return std::unique_ptr member as const ref | Tatsuhiro Tsujikawa | 2013-06-26 | 1 | -1/+1 |
| | | | | | | Returning raw pointer has a risk that it may be stolen by std::shared_ptr in accident. | ||||
| * | Rewrite util::divide | Tatsuhiro Tsujikawa | 2013-06-25 | 1 | -2/+1 |
| | | |||||
| * | toUpper, toLower: Let compiler copy src | Tatsuhiro Tsujikawa | 2013-06-24 | 1 | -8/+7 |
| | | |||||
| * | Remove vbegin and vend in favor of std::begin and std::end | Tatsuhiro Tsujikawa | 2013-06-24 | 1 | -7/+9 |
| | | |||||
| * | Use std::unique_ptr instead of std::shared_ptr | Tatsuhiro Tsujikawa | 2013-06-22 | 1 | -1/+1 |
| | | |||||
| * | Require -std=c++11 and use std::shared_ptr instead of SharedHandle | Tatsuhiro Tsujikawa | 2013-06-22 | 1 | -10/+10 |
| | | |||||
| * | OSX (now) needs signal.h for sigaction | Nils Maier | 2013-05-17 | 1 | -4/+3 |
| | | |||||
| * | util.cc: Include only signal.h for opensolaris build | Tatsuhiro Tsujikawa | 2013-03-17 | 1 | -0/+7 |
| | | |||||
| * | Check for sys/signal.h and/or signal.h | Nils Maier | 2013-03-02 | 1 | -1/+8 |
| | | | | | | | | mingw-w64 does not actually have sys/signal.h, while OSX currently has a broken signal.h Better check the presence of both and use sys/signal.h if present, else signal.h | ||||
| * | Fix bustage on OSX with ./configure CC=cc CXX=c++ (clang) | Nils Maier | 2013-03-01 | 1 | -1/+1 |
| | | |||||
| * | Set sa_mask when setting signal handler | Tatsuhiro Tsujikawa | 2013-02-14 | 1 | -2/+3 |
| | | |||||
| * | Use _exit() instead of exit() where appropriate | Tatsuhiro Tsujikawa | 2013-02-14 | 1 | -1/+1 |
| | | |||||
| * | Accept k and m as well as K and M in util::getRealSize() | Tatsuhiro Tsujikawa | 2013-01-15 | 1 | -3/+8 |
| | | |||||
