diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2023-02-02 09:18:59 +0000 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2023-02-02 04:36:55 -0500 |
commit | 320a8f3ecf9ccb13bde78d1539937764dfcbbe19 (patch) | |
tree | 0f4161a8f4fce9243561560a629440fb6f03439f /include | |
parent | 40c629a5c2c57cb0c80137f35cf817bb61ae203c (diff) | |
download | rabbitmq-c-320a8f3ecf9ccb13bde78d1539937764dfcbbe19.tar.gz |
Remove obsoleted OpenSSL init code
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/rabbitmq-c/ssl_socket.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/rabbitmq-c/ssl_socket.h b/include/rabbitmq-c/ssl_socket.h index 8f95634..ddedbd2 100644 --- a/include/rabbitmq-c/ssl_socket.h +++ b/include/rabbitmq-c/ssl_socket.h @@ -206,6 +206,9 @@ int AMQP_CALL amqp_ssl_socket_set_ssl_versions(amqp_socket_t *self, /** * Sets whether rabbitmq-c will initialize OpenSSL. * + * \deprecated Since v0.13.0 this is a no-op. OpenSSL automatically manages + * library initialization and uninitialization. + * * OpenSSL requires a one-time initialization across a whole program, this sets * whether or not rabbitmq-c will initialize the SSL library when the first call * to amqp_ssl_socket_new() is made. You should call this function with @@ -226,12 +229,15 @@ int AMQP_CALL amqp_ssl_socket_set_ssl_versions(amqp_socket_t *self, * * \since v0.4.0 */ -AMQP_EXPORT +AMQP_DEPRECATED_EXPORT void AMQP_CALL amqp_set_initialize_ssl_library(amqp_boolean_t do_initialize); /** * Initialize the underlying SSL/TLS library. * + * \deprecated Since v0.13.0 this is a no-op. OpenSSL automatically manages + * library initialization and uninitialization. + * * The OpenSSL library requires a one-time initialization across the whole * program. * @@ -244,7 +250,7 @@ void AMQP_CALL amqp_set_initialize_ssl_library(amqp_boolean_t do_initialize); * * \since v0.9.0 */ -AMQP_EXPORT +AMQP_DEPRECATED_EXPORT int AMQP_CALL amqp_initialize_ssl_library(void); /** @@ -266,11 +272,14 @@ int amqp_set_ssl_engine(const char *engine); /** * Uninitialize the underlying SSL/TLS library. * + * \deprecated Since v0.13.0 this is a no-op. OpenSSL automatically manages + * library initialization and uninitialization. + * * \return AMQP_STATUS_OK on success. * * \since v0.9.0 */ -AMQP_EXPORT +AMQP_DEPRECATED_EXPORT int AMQP_CALL amqp_uninitialize_ssl_library(void); AMQP_END_DECLS |