[457371] Fix building for WITH_TLS=no

Thanks to Micheal Laing.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457371
pull/211/merge
Roger A. Light 11 years ago
parent 8a18f577a6
commit aca979a473

@ -24,7 +24,9 @@ Contributors:
#endif
#ifdef WITH_TLS
#include <openssl/ssl.h>
# include <openssl/ssl.h>
#else
# include <time.h>
#endif
#include <stdlib.h>

@ -15,6 +15,7 @@ Contributors:
*/
#include <errno.h>
#include <string.h>
#include "mosquitto_internal.h"
#include "memory_mosq.h"

@ -93,8 +93,8 @@ int mqtt3_handle_connect(struct mosquitto_db *db, struct mosquitto *context)
struct mosquitto *found_context;
int slen;
struct _mosquitto_subleaf *leaf;
#ifdef WITH_TLS
int i;
#ifdef WITH_TLS
X509 *client_cert = NULL;
X509_NAME *name;
X509_NAME_ENTRY *name_entry;

Loading…
Cancel
Save