Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Lib: correct types in ENFORCE_STATE macro.win32_warn2 | Alan Antonuk | 2016-04-09 | 1 | -9/+9 |
| | |||||
* | Fix: small warning fixes. | Alan Antonuk | 2016-04-09 | 4 | -6/+8 |
| | |||||
* | Test: correct overflow in constant. | Alan Antonuk | 2016-04-09 | 1 | -1/+1 |
| | |||||
* | Test: use correct printf for unsigned. | Alan Antonuk | 2016-04-09 | 1 | -1/+1 |
| | |||||
* | Lib: remove unreachable return statements | Alan Antonuk | 2016-04-09 | 3 | -4/+2 |
| | |||||
* | Lib: correct format string in amqp[s]_consumer.c | Alan Antonuk | 2016-04-09 | 2 | -2/+2 |
| | |||||
* | Lib: correct sign conversion issue in amqp_url.c | Alan Antonuk | 2016-04-09 | 1 | -2/+3 |
| | |||||
* | Lib: add bounds check on amqp_login inputs | Alan Antonuk | 2016-04-09 | 1 | -13/+35 |
| | | | | | Check bounds on channel_max, frame_max, and heartbeat arguments to amqp_login* functions. | ||||
* | Lib: check out of range args in amqp_*_close() fn. | Alan Antonuk | 2016-04-09 | 1 | -2/+10 |
| | | | | | Check for code parameter being between 0 -> UINT16_MAX in amqp_connection_close() and amqp_channel_close() functions. | ||||
* | Lib: add amqp_rpc_reply_error convenience function | Alan Antonuk | 2016-04-09 | 1 | -0/+7 |
| | | | | | Add internal function to construct amqp_rpc_reply_t that are library errors. | ||||
* | Lib: correct input type to ioctlsocket on win32 | Alan Antonuk | 2016-04-09 | 1 | -1/+1 |
| | |||||
* | Lib: fix shadowed variable in wait_frame_inner | Alan Antonuk | 2016-04-09 | 1 | -2/+0 |
| | |||||
* | Lib: use for(;;) for infinite loop | Alan Antonuk | 2016-04-09 | 8 | -9/+9 |
| | |||||
* | Examples: fix incorrect shadowing of loop variable | Alan Antonuk | 2016-04-09 | 1 | -3/+3 |
| | |||||
* | Examples: use correct format specifier for uint16_t | Alan Antonuk | 2016-04-09 | 1 | -2/+2 |
| | |||||
* | Lib: add missing type info on win32 in socket_init | Alan Antonuk | 2016-04-09 | 1 | -1/+1 |
| | |||||
* | CMake: Remove install_pdb macro. | Alan Antonuk | 2016-04-09 | 2 | -49/+0 |
| | |||||
* | Win32: embed debug info in static-library | Alan Antonuk | 2016-04-09 | 1 | -2/+6 |
| | | | | | Use /Z7 with MSVC to embed debug information in the static library instead of generating a .pdb file. | ||||
* | CI: bump OpenSSL version to 1.0.2g. | Alan Antonuk | 2016-03-07 | 1 | -1/+1 |
| | |||||
* | Examples: add verify opts to SSL connect_timeout | Alan Antonuk | 2016-03-07 | 1 | -24/+28 |
| | | | | Add verifypeer, verifyhostname options to amqps_connect_timeout example. | ||||
* | Examples: add flags to enable verification. | Alan Antonuk | 2016-03-07 | 8 | -56/+156 |
| | | | | | | | Add verifypeer flag to enable verification of broker's certificate, and verifyhostname flag to enable verification of broker's hostname. Fixes #194 | ||||
* | Documentation of amqp_basic_publish references wrong AMQP methodpr340 | sigiesec | 2016-02-02 | 1 | -2/+2 |
| | | | | | | | The documentation of amqp_basic_publish incorrectly states that the broker will respond with a basic.reject method in case of failures when the mandatory or immediate flags are set. Actually, this is the basic.return method. | ||||
* | CI: bump to latest version of OpenSSL on appveyor | Alan Antonuk | 2016-01-28 | 1 | -1/+1 |
| | |||||
* | CI: add clang-analyzer build on travis.scan-build | Alan Antonuk | 2016-01-13 | 2 | -1/+20 |
| | |||||
* | Lib: don't use TCP_NOPUSH under cygwincygwin_nopush | Alan Antonuk | 2016-01-12 | 1 | -1/+3 |
| | | | | | | | Cygwin defines TCP_NOPUSH, but fails with an error when you try to use it. Disable it on Cygwin. Fixes #335 | ||||
* | CI: build only 1 matrix slot on coverity branch | Alan Antonuk | 2015-12-25 | 1 | -2/+12 |
| | | | | | | Coverity has a limited number of scans that can be submitted per-week. Preserve the limited number of scans that are done by only building one of the lines of the build matrix on travis. | ||||
* | CI: fix build_commands in travis coverity config | Alan Antonuk | 2015-12-25 | 1 | -2/+2 |
| | |||||
* | Remove obsolete mingw build scripts | Alan Antonuk | 2015-12-25 | 3 | -287/+0 |
| | |||||
* | Lib: amqp_frame_to_bytes: use temp bytes_t | Alan Antonuk | 2015-12-25 | 1 | -4/+8 |
| | | | | | | | Use temporary amqp_bytes_t to encode properties instead of using the encoded input parameter. Coverity CID: 1345884 | ||||
* | Coverity: update model to include more abort funcs | Alan Antonuk | 2015-12-25 | 1 | -12/+12 |
| | |||||
* | Adding build/ in .gitignorepr333 | Sébastien Santoro | 2015-12-12 | 1 | -0/+1 |
| | |||||
* | CI: bump OpenSSL version in appveyor build. | Alan Antonuk | 2015-12-08 | 1 | -1/+1 |
| | |||||
* | Lib: fix incorrect hostname check return value | Alan Antonuk | 2015-11-30 | 1 | -33/+14 |
| | | | | | | | | amqp_ssl_socket_verify_hostname returns 1 on success, 0 on not found, and -1 on error. Refactor this code to be less error-prone and not use magic numbers in return values. Fixes #330 | ||||
* | CI: Cache OpenSSL binary on AppVeyor | Alan Antonuk | 2015-11-30 | 1 | -2/+16 |
| | |||||
* | CMake: remove unused Find{cyassl,Polarssl} files. | Alan Antonuk | 2015-11-29 | 2 | -46/+0 |
| | |||||
* | Lib: fix size_t conversion issues in openssl.c | Alan Antonuk | 2015-11-29 | 1 | -7/+24 |
| | |||||
* | Win32: fix missing definition of malloc warning. | Alan Antonuk | 2015-11-29 | 1 | -0/+2 |
| | |||||
* | CI: treat warnings as errors with travis build. | Alan Antonuk | 2015-11-29 | 1 | -4/+3 |
| | |||||
* | CMake: rework symbol checking to work with -Werror | Alan Antonuk | 2015-11-29 | 1 | -37/+37 |
| | | | | | Rework checking for existence of getaddrinfo, socket, poll and select so that it works when -DCMAKE_C_FLAGS="-Werror" is passed to CMake. | ||||
* | CI: ignore output of brew update in travis build.quiet_brew | Alan Antonuk | 2015-11-29 | 1 | -1/+2 |
| | |||||
* | Lib: use amqp_cstring_bytes to construct string | Alan Antonuk | 2015-11-29 | 1 | -4/+2 |
| | | | | | Use amqp_cstring_bytes to construct string instead of doing it manually as this is error-prone. | ||||
* | Lib: memset based on size of argument. | Alan Antonuk | 2015-11-28 | 1 | -5/+5 |
| | |||||
* | CI: limit clone depth on appveyor | Alan Antonuk | 2015-11-27 | 1 | -0/+3 |
| | |||||
* | CI: Enable OpenSSL for appveyor builds. | Alan Antonuk | 2015-11-27 | 1 | -1/+7 |
| | |||||
* | Lib: correctly check SSL connection | Insu Yun | 2015-11-27 | 1 | -0/+10 |
| | | | | | | | | | | | According to "https://www.openssl.org/docs/manmaster/ssl/SSL_get_verify_result.html", to verify SSL connection result, SSL_get_verify_result() needs to be called with SSL_get_peer_certificate(). In default mode, which verify_peer and verify_hostname are activated, then there is no problem because in verify_hostname, the existence of certificate is confirmed. However, it is possible that the user want to verify_peer, but not verify_host. In such case, it is not working as they wanted. Because with invalid certificate, the attacker can bypass certificate validity check. | ||||
* | Lib: don't pass NULL to memcpy in amqp_table.cscan-build-fixes | Alan Antonuk | 2015-11-10 | 1 | -5/+13 |
| | | | | Issue surfaced by clang static-analyzer v3.5. | ||||
* | Lib: use amqp_hostcheck correctly | Alan Antonuk | 2015-11-10 | 1 | -2/+2 |
| | | | | | Use amqp_hostcheck instead of strcasecmp, and pass in the correct arguments in the right order in both SAN and CN codepaths. | ||||
* | Lib: use vetted hostname validation algorithmssl_leak | Alan Antonuk | 2015-11-08 | 1 | -91/+5 |
| | | | | | | | Use vetted hostname validation code which should fix some of the issues with memory leaks from incorrect use of the OpenSSL API. Fixes #325 | ||||
* | Lib: clarify return value of amqp_hostcheck | Alan Antonuk | 2015-11-08 | 2 | -17/+22 |
| | | | | Use enum to specify values returned from amqp_hostcheck. | ||||
* | Lib: Add robust OpenSSL hostname validation. | Alan Antonuk | 2015-11-08 | 4 | -1/+231 |
| | | | | | | Use vetted code from https://wiki.openssl.org/index.php/Hostname_validation and https://github.com/iSECPartners/ssl-conservatory to do hostname validation of SSL certs when using OpenSSL. |