| 1 | # Change Log |
| 2 | ## v0.17.0 - 2026-07-01 |
| 3 | |
| 4 | ### Security |
| 5 | - Fix size_t overflow in `amqp_decode_bytes` bounds check leading to out-of-bounds read (GHSA-jgjf-7fwf-f3c7, #888) |
| 6 | - Fix heap buffer overflow in `amqp_frame_to_bytes` for oversized body frames (GHSA-hfjv-vcp3-39wh, #892) |
| 7 | |
| 8 | ### Added |
| 9 | - `librabbitmq-tools` fall back to the `AMQP_URL` environment variable when no connection options are given on the command line (#887) |
| 10 | |
| 11 | ### Fixed |
| 12 | - Fix undefined behavior in `amqp_decode_properties` when decoding content-header property flags (#883, #885) |
| 13 | - Fix `ioctlsocket` type mismatch on Windows (#890) |
| 14 | - Document buffer lifetime requirement of `amqp_decode_table`'s encoded buffer to prevent use-after-free misuse (#895) |
| 15 | |
| 16 | ### Changed |
| 17 | - `librabbitmq-tools` now enable default SSL certificate verification paths unless `--no-default-cert-paths` is passed (fixes #868, #893) |
| 18 | - Building the tools now requires POPT v1.14 or newer (#889) |
| 19 | |
| 20 | ## v0.16.0 - 2026-06-08 |
| 21 | |
| 22 | ### Security |
| 23 | - Fix out-of-bounds read via undersized frames in `amqp_handle_input` (GHSA-9mmv-r8g3-qp46, #878) |
| 24 | - Fix client crash when server negotiates `frame_max` below the AMQP protocol minimum (GHSA-jh48-qjf5-fx5v) |
| 25 | |
| 26 | ### Added |
| 27 | - Add `amqp_bytes_from_buffer` macro to create `amqp_bytes_t` from an arbitrary byte buffer with explicit length (#856, #866) |
| 28 | |
| 29 | ### Fixed |
| 30 | - Fix NULL pointer dereferences on allocation failure in `tools/publish.c` (#860, #861) |
| 31 | - Fix NULL pointer dereference in `tools/consume.c` `stringify_bytes()` on allocation failure (#858) |
| 32 | - Fix file stream leak in `tools/common.c` `read_authfile()` (#859) |
| 33 | - Fix handling of absolute `CMAKE_INSTALL_INCLUDEDIR` in exported CMake targets (#849) |
| 34 | |
| 35 | ### Changed |
| 36 | - `amqp_literal_bytes` macro now uses an explicit `(void *)` cast (#853) |
| 37 | |
| 38 | ## v0.15.0 - 2024-11-19 |
| 39 | ## Fixed |
| 40 | - Warning on MacOS about incompatible function declaration |
| 41 | - Logic when decoding AMQP data after bad data may cause crash (#837) |
| 42 | - Use SSL_get1_peer_certificate when compiling against OpenSSL 3+ |
| 43 | |
| 44 | ## Changed |
| 45 | - Updates to various github actions. |
| 46 | |
| 47 | ## Added |
| 48 | - Add amqp_publisher_confirm_wait function (#841) |
| 49 | - Add amqp_literal_bytes macro (#844) |
| 50 | |
| 51 | ## v0.14.0 - 2024-03-18 |
| 52 | ## Fixed |
| 53 | - Fix potential stackoverflow in decoding table and array |
| 54 | - Fix issue with Mach-O version (#758) |
| 55 | - Make dependency on OpenSSL in rabbitmq-c.cmake match what is built (#725) |
| 56 | - Fix pkg-config generation when CMAKE_INSTALL_DIR is absolute (#733) |
| 57 | - Fix issue with amqp_basic_publish blocking in non-blocking mode (#780) |
| 58 | - Fix SSL hostname check (#784) |
| 59 | - Fix bug in amqp-consume documentation #791 |
| 60 | |
| 61 | ## Changed |
| 62 | - CMake minimum version is now 3.22 |
| 63 | - OpenSSL minimum version is now 1.1.1 |
| 64 | - Minimum TLS version supported is v1.2 (v1.3 is also supported). |
| 65 | - OpenSSL ENGINE APIs are conditionally enabled based on availability |
| 66 | |
| 67 | ## Added |
| 68 | - Add option to read username/password from file in tools (#781) |
| 69 | - Add amqp_ssl_socket_enable_default_verify_paths API to allow loading from default certification paths |
| 70 | - rabbitmq-c can be compiled against BoringSSL (#814) |
| 71 | |
| 72 | ## v0.13.0 - 2023-02-05 |
| 73 | ## Fixed |
| 74 | - Fixed missing option to not install static library (#665) |
| 75 | - Missing pkgconfig version in v0.12.0 output (#755, #751) |
| 76 | - Correct return value from amqp_ssl_socket_set_key_buffer (#723) |
| 77 | |
| 78 | ## Changed |
| 79 | - Remove OpenSSL code no longer needed when used with OpenSSL >= 1.1.0. (Fixed: #715, #737) |
| 80 | |
| 81 | ## Added |
| 82 | - Integration with OSS-Fuzz (#736) |
| 83 | |
| 84 | ## v0.12.0 - 2023-01-31 |
| 85 | ## Changed |
| 86 | - rabbitmq-c now compiles as C99 |
| 87 | - CMake 3.12 is new minimum required version |
| 88 | - CMake -DBUILD_TESTS renamed to -DBUILD_TESTING |
| 89 | - CMake -DBUILD_EXAMPLES now defaults to OFF |
| 90 | - CMake -DBUILD_TOOLS now defaults to OFF |
| 91 | - Unix library version now matches the release version, SONAME remains the same. |
| 92 | - Modernized CMake scripts to better adopt modern standards |
| 93 | - Public headers have moved to rabbitmq-c/ directory |
| 94 | - Dropped support for MSVC older than VS 2010 |
| 95 | - Dropped support for OpenSSL v1.1.0 and older |
| 96 | - Minimum SSL version set to TLSv1.2 |
| 97 | - Updated to RabbitMQ framing to v3.8.19 |
| 98 | |
| 99 | ## v0.11.0 - 2021-03-31 |
| 100 | ## Added: |
| 101 | - rabbitmq-c-config.cmake is now generated (#611) |
| 102 | - rabbitmq-c can be compiled on Win32 using pthreads (#613) |
| 103 | - Add amqp_set_ssl_engine API to allow setting OpenSSL engine (#618) |
| 104 | - Add amqp_ssl_socket_set_key_engine API to allow setting OpenSSL engine (#618) |
| 105 | - Add support use of password-protected SSL keys (#661) |
| 106 | |
| 107 | ## Changed |
| 108 | - Update OpenSSL library initialization to current best practices (#603) |
| 109 | - Updates to OpenSSL to support v3.0.0 (#654, 627) |
| 110 | |
| 111 | ## Fixed: |
| 112 | - OpenSSL symbol clash when compiling on Win32 (#583) |
| 113 | - Restore correct non-blocking behavior using OpenSSL v1.1.1 (#586) |
| 114 | - Disable harmless secure CRT compile warnings on Win32 (#588) |
| 115 | - Fix unused parameter warnings on Win32 (#591) |
| 116 | - Fix invalid format in generated pkg-config file (#599) |
| 117 | - Fix invalid AMQP_STATUS_HEARTBEAT_TIMEOUT (#557) |
| 118 | - Fix incorrect port when using --server flag in CLI tools |
| 119 | |
| 120 | ## v0.10.0 - 2019-12-01 |
| 121 | ## Added: |
| 122 | - amqp_ssl_socket_get_context can be used to get the current OpenSSL CTX* |
| 123 | associated with a connection. |
| 124 | |
| 125 | ## Changed: |
| 126 | - openssl: missing OpenSSL config is ignored as an OpenSSL init error (#523) |
| 127 | - AMQP_DEFAULT_MAX_CHANNELS is now set to 2047 to follow current default channel |
| 128 | limit in the RabbitMQ broker. (#513) |
| 129 | |
| 130 | ## Fixed: |
| 131 | - add additional input validation to prevent integer overflow when parsing a |
| 132 | frame header. This addresses CVE-2019-18609. |
| 133 | |
| 134 | |
| 135 | ## v0.9.0 - 2018-05-08 |
| 136 | ### Added: |
| 137 | - amqp-publish: added support for specifying headers via the -H flag |
| 138 | - Add support for specifying timeout for amqp_login calls via |
| 139 | amqp_set_handshake_timeout |
| 140 | - Add support for specifying timeouts in RPC-style AMQP methods via |
| 141 | amqp_set_rpc_timeout |
| 142 | - Add define for `AMQP_DEFAULT_VHOST` |
| 143 | - Support for SSL SNI |
| 144 | - Support for OpenSSL v1.1.0 |
| 145 | |
| 146 | ### Changed: |
| 147 | - rabbitmq-c now requires Windows Vista or better |
| 148 | - rabbitmq-c enables TCP keep-alive by default on platforms that support it |
| 149 | - dropped support for compiling rabbitmq-c without threading support |
| 150 | - OpenSSL is no longer un-intialized automatically by default. OpenSSL can be |
| 151 | explicitly initialized by calling amqp_initialize_ssl_library and |
| 152 | uninitialized by calling amqp_uninitialize_ssl_library. |
| 153 | |
| 154 | ### Fixed: |
| 155 | - Correct bugs in processing of --url flag in tools (#364). |
| 156 | - Improve documentation on AMQP_SASL_METHOD_EXTERNAL (#349) |
| 157 | - Improve support for compiling under mingw-w64 |
| 158 | - Better support for handing SIGPIPE on Linux over SSL (#401) |
| 159 | - Improve publish performance on Linux by not specifying MSG_MORE on last part |
| 160 | of message. |
| 161 | - Fix connection logic where multiple hostnames won't be tried if connection to |
| 162 | doesn't fail immediately (#430) |
| 163 | |
| 164 | ### Removed: |
| 165 | - autotools build system has been removed |
| 166 | - many duplicate amqps_* examples, they did not add a lot of value |
| 167 | |
| 168 | |
| 169 | ## v0.8.0 - 2016-04-09 |
| 170 | ### Added: |
| 171 | - SSL: peer certificate and hostname validation can now be controlled separately |
| 172 | using `amqp_ssl_socket_set_verify_peer` and |
| 173 | `amqp_ssl_socket_set_verify_hostname`. |
| 174 | - SSL: the desire SSL version range can now be specified using the |
| 175 | `amqp_ssl_socket_set_ssl_versions` function. |
| 176 | - Add flags to SSL examples on controlling hostname verification. |
| 177 | |
| 178 | ### Changed: |
| 179 | - SSL: SSLv2, and SSLv3 have been disabled by default. |
| 180 | - SSL: OpenSSL hostname validation has been improved. |
| 181 | - Win32 debug information is built with /Z7 on MSVC to embed debug info instead |
| 182 | of using a .pdb |
| 183 | |
| 184 | ### Fixed: |
| 185 | - Connection failure results in hang on Win32 (#297, #346) |
| 186 | - Rabbitmq-c may block when attempting to close an SSL socket (#313) |
| 187 | - amqp_parse_url does not correctly initialize default parameters (#319) |
| 188 | - x509 objects are leaked in verify_hostname (#323) |
| 189 | - TCP_NOPUSH doesn't work under cygwin (#335) |
| 190 | |
| 191 | ### Deprecated |
| 192 | - SSL: `amqp_ssl_socket_set_verify` is being replaced by |
| 193 | `amqp_ssl_socket_set_verify_peer` and `amqp_ssl_socket_set_verify_hostname`. |
| 194 | |
| 195 | ### Removed: |
| 196 | - OpenVMS build system and related files. |
| 197 | - Unmaintained PolarSSL, CyaSSL, and gnuTLS SSL backends |
| 198 | |
| 199 | ## Changes since v0.7.0 (a.k.a., v0.7.1) |
| 200 | - `41fa9df` Autoconf: add missing files in build system |
| 201 | - `ef73c06` Win32: Use WSAEWOULDBLOCK instead of EWOULDBLOCK on Win32 |
| 202 | - `ceca348` CI: use travis-ci container based builds |
| 203 | - `393e2df` Lib: if channel_max is 0 use server's channel_max |
| 204 | - `ff47574` Lib: fix build on OpenBSD |
| 205 | - `8429496...0ac6430` CI: enable CI on Mac OS X in travis-ci |
| 206 | |
| 207 | ## Changes since v0.6.0 (a.k.a., v0.7.0) |
| 208 | - `3379812` Tools: Add support for heartbeats |
| 209 | - `d7029db` CI: Add continuous integration on Win32 using Appveyor |
| 210 | - `a5f7ffb` Tests: only link against static libraries |
| 211 | - `a16ad45...9cf7a3b` Lib: add support for EXTERNAL SASL method |
| 212 | - `038a9ed` Lib: fix incorrect parameters to WSAPoll on Win32 |
| 213 | - `a240c69...14ae307` Lib: use non-blocking sockets internally |
| 214 | - `8d1d5cc`, `5498dc6` Lib: simplify timer/timeout logic |
| 215 | - `61fc4e1` Lib: add support for heartbeat checks in blocking send calls |
| 216 | - `f462c0f...3546a70` Lib: Fix warnings on Win32 |
| 217 | - `ba9d8ba...112a54d` Lib: Add support for RabbitMQ auth failure extension |
| 218 | - `fb8e318` Lib: allow calling functions to override client-properties |
| 219 | - `3ef3f5f` examples: replace usleep() with nanosleep() |
| 220 | - `9027a94` Lib: add AMQP_VERSION code |
| 221 | - `9ee1718` Lib: fix res maybe returned uninitialized in amqp_merge_capbilities |
| 222 | - `22a36db` Lib: Fix SSL_connection status check |
| 223 | - `abbefd4` Lib: Fix issues with c89 compatiblity |
| 224 | - `2bc1f9b...816cbfc` Lib: perf improvements when sending small messages by |
| 225 | hinting to the OS message boundaries. |
| 226 | - `be2e6dd...784a0e9` Lib: add select()-based timeout implementation |
| 227 | - `91db548...8d77b4c` CI: add ubsan, asan, and tsan CI builds |
| 228 | |
| 229 | ## Changes since v0.5.2 (a.k.a., v0.6.0) |
| 230 | - `e1746f9` Tools: Enable support for SSL in tools. |
| 231 | - `9626dd5` Lib: ABI CHANGE: enable support for auto_delete, internal flags to |
| 232 | amqp_exchange_declare |
| 233 | - `ee54e27`, `656f833` Lib: check for double-close in SSL/TCP socket impl |
| 234 | - `cf2760d` Lib: allocate struct when method has no field. |
| 235 | - `513ad4a` Lib: add support for SANs in OpenSSL socket impl. |
| 236 | - `5348c69` Lib: add functions to get negotiated frame_max and heartbeat parms. |
| 237 | |
| 238 | ## Changes since v0.5.1 (a.k.a., v0.5.2) |
| 239 | - `fcdf0f8` Autoconf: check for htonll as declaration in a header file |
| 240 | - `5790ec7` SSL: correctly report hostname verification errors. |
| 241 | - `d60c28c` Build: disable OpenSSL deprecation warnings on OSX |
| 242 | - `072191a` Lib: include platform, version and copyright in AMQP handshake |
| 243 | - `8b448c6` Examples: print message body in amqp[s]_listen[q] examples |
| 244 | - `7188e5d` Tools: Add flag to set prefetch for amqp-consume tool |
| 245 | |
| 246 | ## Changes since v0.5.0 (a.k.a., v0.5.1) |
| 247 | ### Enhancements: |
| 248 | - `a566929` SSL: Add support for wildcards in hostname verification (Mike |
| 249 | Steinert) |
| 250 | - `a78aa8a` Lib: Use poll(2) instead of select(2) for timeouts on sockets. |
| 251 | - `357bdb3` Lib: support for specifying frame and decoding pool sizes. (Mike |
| 252 | Stitt) |
| 253 | - `8956003` Lib: improve invalid frame detection code. |
| 254 | |
| 255 | ### Bug fixes: |
| 256 | - `b852f84` Lib: Add missing amqp_get_server_properties() function. |
| 257 | - `7001e82` Lib: Add missing ssize_t on Win32 (emazv72) |
| 258 | - `c2ce2cb` Lib: Correctly specify WINVER on Win32 when unspecified. |
| 259 | - `fe844e4` CMake: specify -DHAVE_CONFIG_H in examples. |
| 260 | - `932de5f` Lib: correct time computation on Win32 (jestor) |
| 261 | - `3e83192` HPUX: use gethrtime on HP-UX for timers. |
| 262 | - `cb1b44e` HPUX: correct include location of sys/uio.h |
| 263 | - `8ce585d` Lib: incorrect OOM condition when 0-lenth exchange name is received. |
| 264 | - `c7716b8` CMake: correct htonll detection code on platforms defined with a |
| 265 | macro. |
| 266 | - `4dc4eda` Lib: remove unused assignment. |
| 267 | - `45302cf` Lib: remove range-check of channel-ids. |
| 268 | |
| 269 | |
| 270 | ## Changes since v0.4.1 (a.k.a., v0.5.0): |
| 271 | ### Major changes: |
| 272 | - Add amqp_get_broker_properties() function 5c7c40adc1 |
| 273 | - Remove distro-specific packaging a5749657ee |
| 274 | - Add -x flag to amqp-consume utilty 1d9c5291ff |
| 275 | - Add amqp_basic_nack() public API 9b168776fb |
| 276 | - Add delivery mode constants to amqp.h 5f291ea772 |
| 277 | - Add support for connection.blocked/connection.unblocked methods ccbc24d270 |
| 278 | |
| 279 | ### Bug fixes: |
| 280 | - `f8c6cee749` Examples: Destroy amqp_envelope_t in consumer example |
| 281 | - `ac88db56d3` CMake: fix generation of librabbitmq.pc |
| 282 | - `d5b35afa40` CMake: fix missing POPT_INCLUDE_DIRS variable in tools/ |
| 283 | - `5ea6a0945a` build: provide independent locations for x64 libs |
| 284 | - `fac34656c0` Doc: documentation fixes |
| 285 | - `715901d675` Lib: Correct OpenSSL initialization under threaded conditions |
| 286 | - `ce64e57df8` Examples: Handle unexpected frames in amqp_consumer.c |
| 287 | - `bcda3e933d` CMake: Use GnuInstallDirs to generate install dirs |
| 288 | - `27245a4e15` Lib: correctly handle amqp_get_monotonic_timestamp on win32 |
| 289 | - `693662ef5b` Tools: honor --persistent flag in publish utility |
| 290 | - `01d9c3ca60` Doc: improve documentation in amqp_ssl_socket functions |
| 291 | - `02d5c58ae4` autoconf: correct librabbitmq.pc generation |
| 292 | - `1f4e0cc48b` Doc: improve documentation in amqp_tcp_socket functions |
| 293 | |
| 294 | ## Changes since v0.4.0: |
| 295 | ### Major changes: |
| 296 | - Removed distro-specific packaging d285d01 |
| 297 | |
| 298 | ### Bug fixes: |
| 299 | - `a642602` FIX: destroy amqp_envelop_t object in consumer example |
| 300 | - `860dd71` FIX: correct generation of librabbitmq.pc under CMake |
| 301 | - `bdda7ab` FIX: amqp_socket_close() should not be exported from shlib |
| 302 | - `24f4131` FIX: Use correct buf/len vars when re-starting send() |
| 303 | |
| 304 | ## Changes since v0.3.0: |
| 305 | ### New Features/Enhancements: |
| 306 | - `amqp_login_with_properties()` function to connect to a broker sending a |
| 307 | properties table to the broker 21b124e #101 |
| 308 | - SSL support (Mike Steinert) 473c865 #17 |
| 309 | - `amqp_simple_wait_frame_noblock()` function variant to wait for a frame |
| 310 | with a timeout f8cfc72 #119 |
| 311 | - Allow memory to be released on a per-channel basis with |
| 312 | `amqp_maybe_release_buffers_on_channel()` 4a2d899 #5 |
| 313 | - Support for AMQP heartbeats while blocking in `amqp_simple_wait_frame*()` |
| 314 | and `amqp_basic_publish()` daa0e66 aca5dc1 |
| 315 | - `amqp_socket_open_noblock()` for a non-blocking socket connection |
| 316 | (Bogdan Padalko) 6ad770d |
| 317 | - `amqp_table_clone()` to do a deep-copy of an amqp_table_t 08af83a |
| 318 | - Add option to listen to multiple keys in `amqp_consume` tool (Brian Hammond) e6c256d |
| 319 | - Add contributed OpenVMS build system 448ab68 |
| 320 | - Higher level APIs for consuming messages 33ebeed #8 |
| 321 | - Doxygen-based API documentation. |
| 322 | - Many improvements to error-handling and reporting |
| 323 | |
| 324 | ### Bug Fixes: |
| 325 | - `24ffaf8` FIX: autotools was broken when dependency-tracking was disabled |
| 326 | - `38e741b` FIX: CMake XmlTo not found warning |
| 327 | - `906f04f` FIX: htonll redeclared on Win32 v8 |
| 328 | - `8e41603` FIX: SIGPIPE not disabled on OS X/BSD #102 |
| 329 | - `872ea49` FIX: Header issues with amqp.h on Mingw on Win32 (yoniyoni) |
| 330 | - `0f1f75b` FIX: potential memory leak in amqp_new_connection |
| 331 | - `c9f6312` FIX: missing va_end in `amqp_login()`/`amqp_login_with_properties()` |
| 332 | - `7bb64e4` FIX: include amqp_tcp_socket.h in dpkg (Tim Stewart) |
| 333 | - `ba9d1f5` FIX: Report out of buffer space in `amqp_table_encode()` |
| 334 | - `9496e10` FIX: Remove `abort()` on invalid parameter in `amqp_send_frame()` |
| 335 | - `f209420` FIX: Remote `abort()` in `amqp_simple_wait_method()` |
| 336 | - `f027518` FIX: Return error on socket lib init error |
| 337 | - `0ae534a` FIX: Correctly handle 0 return val from `SSL_read()`/`SSL_write()` |
| 338 | - `22e41b8` FIX: Improve error handling in socket functions |
| 339 | - `33c2353` FIX: Set state->socket to NULL after `amqp_socket_close()` |
| 340 | - `c83e728` FIX: Incorrect error code returned |
| 341 | - `1a19879` FIX: redecl of int i in `amqp_tcp_socket_writev()` |
| 342 | - `7477449` FIX: incorrect bit-shift in `amqp_error_string2()` |
| 343 | - `2e37bb3` FIX: correctly handle `amqp_get_sockfd()` in `amqp_simple_wait_frame()` |
| 344 | - `52a459b` FIX: Don't delete state in `amqp_tune_connection()` on error |
| 345 | - `01e38dd` FIX: Correctly handle `mach_timebase_info()` failure |
| 346 | - `34bffb7` FIX: Correctly disable `SIGPIPE` on platforms with `SO_NOSIGPIPE` |
| 347 | - `3866433` FIX: Use correct number of bits in timer precision on MacOSX |
| 348 | - `b6a1dfe` FIX: Squash OpenSSL deprecated warnings on MacOSX (Bogdan Padalko) |
| 349 | - `7a217d5` FIX: Incorrect `assert()` in `wait_frame_inner()` |
| 350 | - `7942af3` FIX: Correctly handle 0-length table in `amqp_table_clone()` |
| 351 | - `157788e` FIX: Correctly handle 0-length strings in `amqp_basic_properties_clone()` |
| 352 | - `4eaf771` FIX: Correctly handle 0-length message body in `amqp_read_message()` |
| 353 | - `59f943b` FIX: Double-free SSL on connection failure |
| 354 | - `7a451a4` FIX: `amqp_open_socket()` not defined |