From 3f8f4fc2c81507bc41c574ada6d5a77c9f26e23d Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 21 May 2019 18:42:22 +0100 Subject: [PATCH] Fix typo causing build error on Windows when building without TLS support. Thanks to TimmvonderMehden. Closes #1264. --- ChangeLog.txt | 4 ++++ lib/util_mosq.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 24287208..c4b5c376 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -15,6 +15,10 @@ Broker: - Fix Will message for a persistent client not being sent on disconnect. Closes #1273. +Client library: +- Fix typo causing build error on Windows when building without TLS support. + Closes #1264. + Clients: - Fix -L url parsing when `/topic` part is missing. - Stop some error messages being printed even when `--quiet` was used. diff --git a/lib/util_mosq.c b/lib/util_mosq.c index ce903e79..5e1065e7 100644 --- a/lib/util_mosq.c +++ b/lib/util_mosq.c @@ -331,7 +331,7 @@ int util__random_bytes(void *bytes, int count) rc = MOSQ_ERR_SUCCESS; } #elif defined(WIN32) - HRYPTPROV provider; + HCRYPTPROV provider; if(!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)){ return MOSQ_ERR_UNKNOWN;