Skip to content

Commit

Permalink
Fix typo causing build error on Windows when building without TLS sup…
Browse files Browse the repository at this point in the history
…port.

Thanks to TimmvonderMehden.

Closes #1264.
  • Loading branch information
ralight committed May 21, 2019
1 parent 999c478 commit 3f8f4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/util_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f8f4fc

Please sign in to comment.