| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
This should stop warnings about deprecated APIs. RabbitMQ-c will adopt
OpenSSL 3.x APIs in a future version.
Fixed: #729
Signed-off-by: GitHub <noreply@github.com>
|
| |
|
|
|
|
|
| |
Fixes: #708
Signed-off-by: GitHub <noreply@github.com>
|
| |
|
|
|
|
|
|
|
| |
This makes license detection machine-readable, and makes source files more concise and easier
to read and understand.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
| |
While this wasn't causing any errors, it did have the potential to cause
a bug if the error codes ever were positive.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
| |
Found using clang-tidy
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
| |
This will be replaced with some sort of shell script.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
| |
These have not been replaced with better alternatives.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
| |
Users using rabbitmq-c by using add_subdirectory on the project should
use the rabbitmq::rabbitmq or rabbitmq::rabbitmq-static targets to use
the rabbitmq-c library.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
| |
Use modern CMake idioms when defining rabbitmq and rabbitmq-static
library targets.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
| |
Then also remove unused -DWITH_SSL define when compiling the library.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
| |
This sets an rpath that makes it a bit more intuitive to use when the
library is moved after installation. This matches the behavior on MacOS
platform, which is why this is not changed for MacOS platforms.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To help package managers cmake install commands now specify a COMPONENT.
Components include:
- rabbitmq-c-runtime: libraries necessary for running programs linked
against rabbitmq-c.
- rabbitmq-c-development: static libraries, headers necessary for
building programs against rabbitmq-c
- rabbitmq-c-tools: CLI tools for interacting with RabbitMQ broker
- rabbitmq-c-tool-docs: man pages for CLI tools.
This also updates the tool install directory to use GnuInstallDirs-
compatible location
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
| |
This is dead code, obsoleted by #673 (setting minimum OpenSSL v1.1.1).
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
| |
Add support for TLSv1.3, and set the default supported versions to be
TLSv1.2 and TLSv1.3. TLSv1.0 and TLSv1.1 both have security flaws that
make them unsuitable as a default. If these versions are required, they
can be explictly set by users to use these older versions.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
v1.1.0 and older is no longer supported by OpenSSL
(https://www.openssl.org/policies/releasestrat.html). While there is
the possibility that someone is paying for support for v1.0.2, this
library is not regularly tested against these versions.
As a side-effect older workarounds for hostname verification can be
removed.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
| |
Use cmake's GenerateExportHeader to define AMQP_EXPORT & AMQP_DEPRECATED
over the one in amqp.h. This is likely to be more correct over time.
Note this requires bumping the minimum required version from v3.10 to
v3.12 to pick up support in CMake for C libraries.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move official rabbitmq-c includes under the rabbitmq-c, thus new
programs should use the following include paths:
amqp.h -> rabbitmq-c/amqp.h
amqp_tcp_socket.h -> rabbitmq-c/tcp_socket.h
amqp_ssl_socket .h-> rabbitmq-c/ssl_socket.h
amqp_framing.h -> rabbitmq-c/framing.h
Existing include files are left with a warning message and including
their new equivalents, so existing programs should compile without
modification.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
| |
This was needed for versions of MSVC older than VS 2010. Both MSVC and
the newest OS it runs on (Win 7) are no longer supported by Microsoft.
Thus its safe to drop support for this.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
| |
This also gets rid of a non-top-level project command that probably
shouldn't be used.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
| |
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
| |
amqp_ssl_socket_set_key_engine APIs (#662)
Signed-off-by: GitHub <noreply@github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
This should allow the check-format step to work on Github Actions.
|
|
|
|
|
|
| |
There is a small typo in librabbitmq/amqp.h.
Should read `thoroughly` rather than `throughly`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
does not provide any sort of optimization help for win32.
Fixes #591
|
|
|
|
|
|
| |
'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 struct timeval parameters that can be a const, a const.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
| |
Fix a compile error on win32 where OpenSSL and Win32 X509_* errors collide
|
| |
|
| |
|