Skip to content

Commit

Permalink
Merge pull request #511 from ArnoStiefvater/fix_cmake
Browse files Browse the repository at this point in the history
Fix find_library call
  • Loading branch information
Kraemii authored Jun 2, 2021
2 parents 64bea2c + 0236dbe commit e24546b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Possibility to use lcrypt with `$6$` (sha512) for authentication [484](https://github.com/greenbone/gvm-libs/pull/484)
- Add function to perform an alive test and get the amount of alive hosts. [495](https://github.com/greenbone/gvm-libs/pull/495)
- Add functions for sentry integration. [#502](https://github.com/greenbone/gvm-libs/pull/502) [#506](https://github.com/greenbone/gvm-libs/pull/506)
- Add basic support for mqtt. [505](https://github.com/greenbone/gvm-libs/pull/505)
- Add basic support for mqtt.
[#505](https://github.com/greenbone/gvm-libs/pull/505)
[#511](https://github.com/greenbone/gvm-libs/pull/511)

### Changed
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ pkg_check_modules (LIBXML2 REQUIRED libxml-2.0>=2.0)

# for mqtt
# Optional for now because lib is currently not in debian buster stable.
find_library(LIBPAHO lpaho)
message (STATUS "Looking for lpaho... ${LIBPAHO}")
find_library(LIBPAHO paho-mqtt3c)
message (STATUS "Looking for paho-mqtt3c ... ${LIBPAHO}")
if (NOT LIBPAHO)
message (STATUS "libpaho-mqtt3c is required for MQTTv5 support.")
else (LIBPAHO)
Expand Down
4 changes: 2 additions & 2 deletions util/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ mqtt_connect (const char *server_uri)
mqtt_t *mqtt = NULL;
MQTTClient_connectOptions conn_opts = MQTTClient_connectOptions_initializer5;
MQTTProperties connect_properties = MQTTProperties_initializer;
MQTTResponse resp = MQTTResponse_initializer;
MQTTResponse resp;

uuid = gvm_uuid_make ();
client = mqtt_create (server_uri, uuid);
Expand Down Expand Up @@ -139,7 +139,7 @@ mqtt_publish (mqtt_t *mqtt, const char *topic, const char *msg)
MQTTClient client;
MQTTClient_message pubmsg = MQTTClient_message_initializer;
MQTTClient_deliveryToken token;
MQTTResponse resp = MQTTResponse_initializer;
MQTTResponse resp;
int rc;

client = mqtt->client;
Expand Down

0 comments on commit e24546b

Please sign in to comment.