Skip to content

Commit

Permalink
Minor build variant fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Apr 17, 2019
1 parent 2844256 commit 6438ce8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/client_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,9 @@ int client_config_line_proc(struct mosq_config *cfg, int pub_or_sub, int argc, c

int client_opts_set(struct mosquitto *mosq, struct mosq_config *cfg)
{
#if defined(WITH_TLS) || defined(WITH_SOCKS)
int rc;
#endif

mosquitto_int_option(mosq, MOSQ_OPT_PROTOCOL_VERSION, cfg->protocol_version);

Expand Down
2 changes: 1 addition & 1 deletion lib/util_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int mosquitto__check_keepalive(struct mosquitto *mosq);
uint16_t mosquitto__mid_generate(struct mosquitto *mosq);
FILE *mosquitto__fopen(const char *path, const char *mode, bool restrict_read);

#ifdef FINAL_WITH_TLS_PSK
#ifdef WITH_TLS
int mosquitto__hex2bin_sha1(const char *hex, unsigned char **bin);
int mosquitto__hex2bin(const char *hex, unsigned char *bin, int bin_max_len);
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/handle_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ int handle__connect(struct mosquitto_db *db, struct mosquitto *context)
int rc;
int slen;
uint16_t slen16;
int i;
mosquitto_property *properties = NULL;
void *auth_data = NULL;
uint16_t auth_data_len = 0;
void *auth_data_out = NULL;
uint16_t auth_data_out_len = 0;
#ifdef WITH_TLS
int i;
X509 *client_cert = NULL;
X509_NAME *name;
X509_NAME_ENTRY *name_entry;
Expand Down

0 comments on commit 6438ce8

Please sign in to comment.