summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ssl: correct since version on amqp_set_ssl_engine and ↵v0.11-releaseAlan Antonuk2021-03-311-2/+2
| | | | | | amqp_ssl_socket_set_key_engine APIs Signed-off-by: GitHub <noreply@github.com>
* ssl: Support password protected keysFake2021-03-302-0/+21
|
* ssl: remove reference to FIPS_set_modeAlan Antonuk2021-03-041-4/+0
| | | | | | | | | | | | This was cargo-culted from the OpenSSL wiki for uninitializing OpenSSL. This API has been removed v3.x and newer of OpenSSL, additionally rabbitmq-c doesn't use FIPS mode, so this is likely a no-op even using older OpenSSL. Fixes #654 Fixes #627 Signed-off-by: GitHub <noreply@github.com>
* ci: only run on a pull-request to master or a push to masterAlan Antonuk2021-02-221-1/+8
| | | | Signed-off-by: GitHub <noreply@github.com>
* ci: remove appveyor configurationAlan Antonuk2021-02-221-30/+0
| | | | Signed-off-by: GitHub <noreply@github.com>
* ci: Add win32 build to github actionsAlan Antonuk2021-02-211-0/+22
| | | | Signed-off-by: GitHub <noreply@github.com>
* ci: run presubmits on PRs as well as pushesAlan Antonuk2021-02-171-1/+1
| | | | Signed-off-by: GitHub <noreply@github.com>
* ci: Add MacOS github action configAlan Antonuk2020-12-292-16/+24
| | | | Replaces what was turned down in travis-ci.
* ci: delete travis configAlan Antonuk2020-12-241-89/+0
| | | | Github Actions have been configured to replace travis-ci for CI.
* ci: add clang-formatAlan Antonuk2020-12-243-1/+4
|
* Format sources using clang-format-10Alan Antonuk2020-12-247-31/+33
| | | | This should allow the check-format step to work on Github Actions.
* ci: add clang static-analyzer gh actions presubmitAlan Antonuk2020-12-242-2/+6
|
* ci: add github actions configAlan Antonuk2020-12-242-1/+31
| | | | Adds a github actions config that builds using cmake.
* Add .venv directory to .gitignore file.Alan Antonuk2020-12-221-0/+1
| | | | This directory seems to be created by vscode.
* Use cmake TIMESTAMP functionBernhard M. Wiedemann2020-12-221-1/+2
| | | | | | | | | | to allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. Also use UTC to be independent of timezone.
* docs: fix simple typo, throughly -> thoroughlyTim Gates2020-10-181-1/+1
| | | | | | There is a small typo in librabbitmq/amqp.h. Should read `thoroughly` rather than `throughly`.
* ci: use pre-installed OpenSSL on appveyorAlan Antonuk2020-10-141-13/+1
| | | The current setup is broken, this should fix it, and *ideally* make the CI runs a bit faster.
* tool: fix issue parsing hostname in --server flagAlan Antonuk2020-08-091-0/+1
| | | | | | | | Set both the host and port when a ':' isn't found in in the --server flag. The attempted fix in #622 was not complete as the host was not properly set. Fixes #621
* tool: set port when not specified in --server flagAlan Antonuk2020-08-061-0/+7
| | | | | | | Set the port to 5672 and 5671 in SSL mode in the tools when the --server flag is used, but does not specify a port. Fixes: #621
* Support openssl engine settingHan Mai2020-06-255-5/+118
|
* ci: remove install popt on osxAlan Antonuk2020-06-251-1/+0
| | | | popt is already in the default install and causes the build to fail.
* lib: correct amqp_time_from_now behavior at {0, 0}Alan Antonuk2020-06-213-15/+4
| | | | | | | | | | | | Change behavior of amqp_time_from_now to set to the current timestamp when a struct timeval of {0, 0} is passed in instead of 0. This better aligns with how one would expect the function to work. As a byproduct this corrects an issue where amqp_consume_message would not return AMQP_STATUS_HEARTBEAT_TIMEOUT when a tv of {0, 0} and the heartbeat interval had passed. Fixes #557 in a more concise way.
* Allow use of pthreads with WindowsZane van Iperen2020-06-211-14/+3
|
* Add vcpkg installation instructionswangli282020-06-211-0/+15
|
* Add rabbitmq-c-config.cmake generationEric Huff2020-05-313-2/+45
| | | | | | Generating a -config.cmake or Config.cmake lets rabbitmq-c be discoverable via cmake's `find_package`, and allows easier use in the vcpkg ecosystem.
* Updating how openssl is configuredMichael D. Stemle, Jr2020-04-191-3/+1
| | | | | Per guidance from the openssl project, this seems like it might be the more correct way to configure openssl with the default configuration files. #603
* Add option to run system tests (disabled by default).Simon Lepasteur2020-03-125-5/+10
| | | | | | | | | System tests require a RabbitMQ or other AMQP server to be running on `localhost` at TCP port number 5672 and therefore fails if no such server is running on the build machine. This is surprising for everyone running the standard `make test` to ensure the library is built correctly.
* Fix incorrect private lib field in librabbitmq.pcAndriy Gelman2020-02-201-2/+5
| | | | | | | | | Fixes #599 Private lib entries are currently separated by semicolon. Replace semicolon by space and add -l prefix to libs. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
* Fix mem leak in examplesAndriy Gelman2020-01-312-0/+4
| | | | Frees heap allocated memory in queuename.bytes on exit.
* Fix repeated word and spelling in api docAndriy Gelman2020-01-291-1/+1
|
* win32: define AMQP_UNUSED for win32Alan Antonuk2019-12-291-1/+1
| | | | | | does not provide any sort of optimization help for win32. Fixes #591
* Fix unused parameter warning in amqp_time_tv_untilSteven Van Ingelgem2019-12-292-8/+11
| | | | | | 'in' parameter was not referenced in amqp_time_tv_until as described in the documentation. This brings the implementation inline with what is intended.
* Make all timeval's constantSteven Van Ingelgem2019-12-299-32/+33
| | | | Make all struct timeval parameters that can be a const, a const.
* win32: disable secure CRT warnings in OpenSSL codeAlan Antonuk2019-12-241-0/+4
| | | | | | | | These warnings have been disabled in other parts of the code and are generally harmless. Recent refactoring in the amqp_openssl.c file have caused these warnings to appear. Fixes: #588
* ssl: fix OpenSSL modes to correct non-blocking behaviorAlan Antonuk2019-12-111-0/+5
| | | | | | | | | | | | OpenSSL changed the default in v1.1.1 of SSL_MODE_AUTO_RETRY from off to on. Because rabbitmq-c uses non-blocking calls internally, this must be disabled. Additionally turn on SSL_MODE_ENABLE_PARTIAL_WRITE to allow SSL_write to return before a full frame is written. This is likely a latent bug that hasn't been found until recently. Fixes #586
* lib: fix openSSL symbol clash on win32 (#583)Zane van Iperen2019-12-082-1/+5
| | | Fix a compile error on win32 where OpenSSL and Win32 X509_* errors collide
* Bumping revision for developmentAlan Antonuk2019-12-012-3/+3
|
* Preparation for v0.10.0 releasev0.10.0Alan Antonuk2019-12-013-4/+19
|
* lib: check frame_size is >= INT32_MAXAlan Antonuk2019-11-041-3/+12
| | | | | | | | | | | | When parsing a frame header, validate that the frame_size is less than or equal to INT32_MAX. Given frame_max is limited between 0 and INT32_MAX in amqp_login and friends, this does not change the API. This prevents a potential buffer overflow when a malicious client sends a frame_size that is close to UINT32_MAX, in which causes an overflow when computing state->target_size resulting in a small value there. A buffer is then allocated with the small amount, then memcopy copies the frame_size writing to memory beyond the end of the buffer.
* ssl: Add amqp_ssl_socket_get_context()Zane van Iperen2019-05-142-0/+20
|
* ci: Bump Travis dist to Xenial as Trusty is now EOLZane van Iperen2019-05-131-21/+18
|
* Make cmake build reproduciblymarinamoore2018-10-241-1/+1
|
* Install manpages into DATAROOTDIRAlexander Kapshuna2018-10-191-1/+1
|
* Provide downloadable DLLs from appveyorJean-Baptiste Nahan2018-09-081-0/+8
| | | | Exposes DLLs generated by the build in appveyor to be downloaded.
* Set AMQP_DEFAULT_MAX_CHANNELS to 2047Alan Antonuk2018-09-081-2/+5
| | | | | | | | | RabbitMQ set a new default limit of 2048 channels to prevent buggy clients from consuming too many broker resources with open channels. This change matches the default set in the Java client. See: https://github.com/rabbitmq/rabbitmq-server/issues/1593 Fixes: #513
* OpenSSL should ignore missing config fileAlan Antonuk2018-09-081-2/+3
| | | | | | | When initializing OpenSSL in v1.1.0 or later, tell OpenSSL to ignore missing openssl.cnf. Fixes #523
* Fix instructions for default buildRoss Cousens2018-07-151-1/+1
| | | The order of arguments were incorrect, --build must directly specify the directory afterwards.
* Bumping revision for developmentAlan Antonuk2018-05-082-3/+3
|
* Preparation for v0.9.0 release.v0.9.0-masterAlan Antonuk2018-05-083-6/+40
|
* Lib: Present "exchange_exchange_bindings" capability to serverJesus Fernandez Manzano2018-05-071-1/+3
|