akalend / amqpcpp

rabbitcpp is a C++ library for Message Queue Server RabbitMQ
MIT License
231 stars 142 forks source link

Allow compiling without SSL #96

Open SebDieBln opened 3 years ago

SebDieBln commented 3 years ago

This PR adds the ability to compile without SSL. rabbitmq-c already has that ability, but until now compiling it without SSL lead to errors because amqpcpp always expected it to be compiled with SSL.

Since we now use the same cmake variable as in rabbitmq-c both libraries are always compiled in the same way.

An exception is raised in case the user requests a SSL connection from a library that is compiled without SSL support.

SebDieBln commented 2 years ago

Note that there will be a conflict with #98 but I will be happy to resolve it once either of the PRs is merged.