This commit adds the librabbitmq-c version checking for ensuring that the new case for the switch is only added in the corresponding rabbitmq versions.
Fixes: http://tracker.ceph.com/issues/53252
Signed-off-by: Francisco J. Solis <siscomagma@gmail.com>
return "AMQP_STATUS_SSL_CONNECTION_FAILED";
case _AMQP_STATUS_SSL_NEXT_VALUE:
return "AMQP_STATUS_INTERNAL";
+#if AMQP_VERSION >= AMQP_VERSION_CODE(0, 11, 0, 0)
+ case AMQP_STATUS_SSL_SET_ENGINE_FAILED:
+ return "AMQP_STATUS_SSL_SET_ENGINE_FAILED";
+#endif
default:
return "AMQP_STATUS_UNKNOWN";
}