Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make exceptions easier to translate to error codes | Jack Lloyd | 2018-11-23 | 2 | -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 request | Jack Lloyd | 2017-12-17 | 1 | -0/+8 |
| | |||||
* | Expose timeouts to the HTTP API | Jack Lloyd | 2017-12-17 | 2 | -11/+26 |
| | |||||
* | Add timeouts to Asio sockets | Jack Lloyd | 2017-12-17 | 5 | -368/+17 |
| | |||||
* | Additional final annotations | Jack Lloyd | 2017-10-15 | 1 | -1/+1 |
| | |||||
* | Address various GCC warnings | Jack Lloyd | 2017-10-06 | 1 | -1/+1 |
| | | | | | Things like -Wconversion and -Wuseless-cast that are noisy and not on by default. | ||||
* | Simplify header includes in socket.cpp | Jack Lloyd | 2017-10-03 | 1 | -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.cpp | Simon Warta | 2017-10-03 | 1 | -0/+2 |
| | | | | cast_uint8_ptr_to_char is required by Winsock_Socket | ||||
* | Move socket implementation into module http_util | Simon Warta | 2017-10-03 | 4 | -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 Lloyd | 2017-10-03 | 1 | -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 functions | Jack Lloyd | 2017-09-30 | 1 | -5/+6 |
| | | | | Flagged by Sonar and quite reasonable | ||||
* | Apply final annotations to the library also | Jack Lloyd | 2017-09-22 | 1 | -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 cleanups | Jack Lloyd | 2017-09-21 | 1 | -1/+0 |
| | |||||
* | Header file cleanups | Jack Lloyd | 2017-09-21 | 1 | -0/+1 |
| | | | | Some help from include-what-you-use | ||||
* | Change header guard format to BOTAN_FOO_H_ | Jack Lloyd | 2017-09-20 | 1 | -2/+2 |
| | | | | | | ISO C++ reserves names with double underscores in them Closes #512 | ||||
* | Add API stability annotations. | Jack Lloyd | 2017-09-19 | 1 | -7/+7 |
| | | | | | Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols. | ||||
* | Script the Windows CI build | Jack Lloyd | 2017-09-08 | 1 | -4/+0 |
| | |||||
* | Refactor network code used in http_util | Jack Lloyd | 2017-09-03 | 1 | -138/+18 |
| | | | | Move the actual socket stuff to os_utils.cpp | ||||
* | Use anonymous namespace to fix static build | René Korthaus | 2017-08-04 | 1 | -0/+4 |
| | |||||
* | Add support for Windows sockets to http_util | René Korthaus | 2017-08-04 | 2 | -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 Warta | 2017-04-02 | 1 | -1/+3 |
| | |||||
* | Convert to using standard uintN_t integer types | Jack Lloyd | 2016-12-18 | 2 | -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_in | louiz’ | 2016-12-08 | 1 | -0/+1 |
| | |||||
* | MSVC doesnt support #warning | Jack Lloyd | 2016-11-23 | 1 | -1/+1 |
| | |||||
* | Somewhat better errors in HTTP | Jack Lloyd | 2016-11-23 | 1 | -5/+9 |
| | |||||
* | Remove remaining old style casts. | Jack Lloyd | 2016-11-09 | 1 | -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 sockets | Jack Lloyd | 2016-10-30 | 2 | -32/+101 |
| | |||||
* | Abstract out mutex type. Make threads optional. | Jack Lloyd | 2016-10-12 | 2 | -9/+0 |
| | |||||
* | String comparision fixes | Daniel Neus | 2016-01-04 | 1 | -2/+2 |
| | | | | fix PVS-Studio perfomance warnings | ||||
* | some trivial compiler/PVS-Studio warning fixes | Daniel Neus | 2015-12-22 | 1 | -1/+0 |
| | |||||
* | Disable asio serial port support to avoid Darwin braindamage. GH #350 | Jack Lloyd | 2015-12-11 | 1 | -1/+9 |
| | |||||
* | Missing adds | Jack Lloyd | 2015-12-11 | 1 | -0/+1 |
| | |||||
* | Reroot the exception hierarchy into a toplevel Exception class | Jack Lloyd | 2015-12-11 | 2 | -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 Warta | 2015-06-23 | 1 | -3/+3 |
| | |||||
* | Ensure all files have copyright and license info. | lloyd | 2015-01-10 | 2 | -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 #17 | lloyd | 2014-05-01 | 1 | -0/+2 |
| | |||||
* | Check Content-Length of HTTP responses | lloyd | 2014-04-05 | 1 | -1/+10 |
| | |||||
* | Move lib into src | lloyd | 2014-01-10 | 3 | -0/+318 |