From 125ece47e70c48abf66d5438829957e5b331a7fc Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Manzano Date: Mon, 29 Jan 2018 18:40:21 +0100 Subject: Examples: Update amqp_ssl_connect.c to show how to un-initialize SSL library. After commit b80de27b, users have to explicitly un-initialize OpenSSL if they care to. --- examples/amqp_ssl_connect.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/amqp_ssl_connect.c b/examples/amqp_ssl_connect.c index e41b00a..c0c9a2f 100644 --- a/examples/amqp_ssl_connect.c +++ b/examples/amqp_ssl_connect.c @@ -128,6 +128,7 @@ int main(int argc, char const *const *argv) { die_on_amqp_error(amqp_connection_close(conn, AMQP_REPLY_SUCCESS), "Closing connection"); die_on_error(amqp_destroy_connection(conn), "Ending connection"); + die_on_error(amqp_uninitialize_ssl_library(), "Uninitializing SSL library"); printf("Done\n"); return 0; -- cgit v1.2.1