| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This also restructures the SSL code to use the modern OpenSSL equivalent
of these functions simplifying internal code to be more readable.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
| |
OpenSSL v1.1.1 is the minimum version that rabbitmq-c supports and the
API that it's programmed against.
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Set the compatibility and current version strings on Mach-O (Apple)
platforms. The compatibility version remains the same as the SOVERSION,
the current version is SOVERSION.AGE.REVISION, which matches the
previous libtool semantics for this.
Fixes #758
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
| |
This corrects what was done in 903b6b5 to correctly limit array
recursion in addition recursion within a table.
Fixes: https://crbug.com/oss-fuzz/56949
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Limit depth of table and arrays when decoding to 100. This is done to
prevent stack overflows from potentially adversial input. 100 is picked
as its high enough that its unlikely that a valid input would be that
big.
Fixes: https://crbug.com/oss-fuzz/56296
Fixes: https://crbug.com/oss-fuzz/56204
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
| |
Make amqp_ssl_socket_set_key_buffer return AMQP_STATUS_OK on success. It
currently returns the status of the underlying OpenSSL call, which isn't
correct.
Fixes: alanxz/rabbitmq-c#723
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
|
|
|
| |
Starting with OpenSSL v1.1.0, library init/uninit is automatically
handled by the library. This removes unnecessary code from rabbitmq-c
and marks the initialization functions as deprecated.
Fixed: alanxz/rabbitmq-c#737
Signed-off-by: GitHub <noreply@github.com>
|
|
|
|
|
|
|
| |
This workaround was needed for OpenSSL v1.1.0 and older. rabbitmq-c
requires v1.1.1 or newer, so this workaround can be removed.
Signed-off-by: GitHub <noreply@github.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|