aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/http_util
Commit message (Collapse)AuthorAgeFilesLines
* Make exceptions easier to translate to error codesJack Lloyd2018-11-232-13/+16
| | | | | | | | | | | Avoid throwing base Botan::Exception type, as it is difficult to determine what the error is in that case. Add Exception::error_code and Exception::error_type which allows (for error code) more information about the error and (for error type) allows knowing the error type without requiring a sequence of catches. See GH #1742
* Add an overall timeout to the HTTP requestJack Lloyd2017-12-171-0/+8
|
* Expose timeouts to the HTTP APIJack Lloyd2017-12-172-11/+26
|
* Add timeouts to Asio socketsJack Lloyd2017-12-175-368/+17
|
* Additional final annotationsJack Lloyd2017-10-151-1/+1
|
* Address various GCC warningsJack Lloyd2017-10-061-1/+1
| | | | | Things like -Wconversion and -Wuseless-cast that are noisy and not on by default.
* Simplify header includes in socket.cppJack Lloyd2017-10-031-9/+3
| | | | | | This got a little contorted in os_utils.cpp because of need to support Boost asio along with system dependent interfaces. Here it's simple: Boost or Unix or Winsock.
* Add missing include mem_ops.h in socket.cppSimon Warta2017-10-031-0/+2
| | | | cast_uint8_ptr_to_char is required by Winsock_Socket
* Move socket implementation into module http_utilSimon Warta2017-10-034-1/+365
| | | | | This removes the requirement of linking socket libraries for applications that do not use http_util
* Add wrappers for reinterpret_cast between char* and uint8_t*Jack Lloyd2017-10-031-6/+6
| | | | | | | Generally speaking reinterpret_cast is sketchy stuff. But the special case of char*/uint8_t* is both common and safe. By isolating those, the remaining (likely sketchy) cases are easier to grep for.
* Use class instead of struct for objects with member functionsJack Lloyd2017-09-301-5/+6
| | | | Flagged by Sonar and quite reasonable
* Apply final annotations to the library alsoJack Lloyd2017-09-221-1/+1
| | | | | Done by a perl script which converted all classes to final, followed by selective reversion where it caused compilation failures.
* More include header cleanupsJack Lloyd2017-09-211-1/+0
|
* Header file cleanupsJack Lloyd2017-09-211-0/+1
| | | | Some help from include-what-you-use
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Add API stability annotations.Jack Lloyd2017-09-191-7/+7
| | | | | Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols.
* Script the Windows CI buildJack Lloyd2017-09-081-4/+0
|
* Refactor network code used in http_utilJack Lloyd2017-09-031-138/+18
| | | | Move the actual socket stuff to os_utils.cpp
* Use anonymous namespace to fix static buildRené Korthaus2017-08-041-0/+4
|
* Add support for Windows sockets to http_utilRené Korthaus2017-08-042-1/+50
| | | | | | Based on the work by @slicer4ever, adds support for Windows sockets to http_util. As a bonus, we get Windows support for tls_client and tls_server CLI.
* Remove "Dirty hack" for multiple defines in lex_me_harder()Simon Warta2017-04-021-1/+3
|
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-182-13/+13
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Add missing netinet includes for sockaddr_inlouiz’2016-12-081-0/+1
|
* MSVC doesnt support #warningJack Lloyd2016-11-231-1/+1
|
* Somewhat better errors in HTTPJack Lloyd2016-11-231-5/+9
|
* Remove remaining old style casts.Jack Lloyd2016-11-091-1/+1
| | | | | | Still not a hard error even in maintainer mode because sometimes system headers pull in C style casts via macros (eg MAP_FAILED). But, it not being a hard error makes it easy to backslide.
* HTTP for plain socketsJack Lloyd2016-10-302-32/+101
|
* Abstract out mutex type. Make threads optional.Jack Lloyd2016-10-122-9/+0
|
* String comparision fixesDaniel Neus2016-01-041-2/+2
| | | | fix PVS-Studio perfomance warnings
* some trivial compiler/PVS-Studio warning fixesDaniel Neus2015-12-221-1/+0
|
* Disable asio serial port support to avoid Darwin braindamage. GH #350Jack Lloyd2015-12-111-1/+9
|
* Missing addsJack Lloyd2015-12-111-0/+1
|
* Reroot the exception hierarchy into a toplevel Exception classJack Lloyd2015-12-112-9/+9
| | | | | | | | As the alternatives are unfortunate for applications trying to catch all library errors, and it seems deriving from std::runtime_error causes problems with MSVC DLLs (GH #340) Effectively reverts 2837e915d82e43
* lib/utils: Convert &vec[0] to vec.data()Simon Warta2015-06-231-3/+3
|
* Ensure all files have copyright and license info.lloyd2015-01-102-2/+2
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add default constructors to work around VC2013 issue. Github #17lloyd2014-05-011-0/+2
|
* Check Content-Length of HTTP responseslloyd2014-04-051-1/+10
|
* Move lib into srclloyd2014-01-103-0/+318