Skip to content

Commit

Permalink
Fix build using WITH_TLS=no when the openssl headers aren't available.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Dec 4, 2020
1 parent 699654b commit c25229c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Build:
- Fix cjson include paths.
- Fix build using WITH_TLS=no when the openssl headers aren't available.


2.0.0 - 2020-12-03
Expand Down
10 changes: 6 additions & 4 deletions src/password_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ SPDX-License-Identifier: EPL-2.0 OR EDL-1.0
#include "config.h"

#include <errno.h>
#include <openssl/opensslv.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/buffer.h>
#ifdef WITH_TLS
# include <openssl/opensslv.h>
# include <openssl/evp.h>
# include <openssl/rand.h>
# include <openssl/buffer.h>
#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit c25229c

Please sign in to comment.