Fix build errors
authorAlan T. DeKok <aland@freeradius.org>
Tue, 10 May 2011 11:51:08 +0000 (13:51 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 10 May 2011 11:53:34 +0000 (13:53 +0200)
src/include/radiusd.h
src/main/tls.c

index bc78140..52ef34e 100644 (file)
@@ -92,6 +92,16 @@ typedef struct auth_req REQUEST;
 #endif
 #endif
 
+#ifdef WITHOUT_TLS
+#ifndef HAVE_OPENSSL_SSL_H
+#error TLS requires OpenSSL
+#endif
+#else
+#ifdef HAVE_OPENSSL_SSL_H
+#define WITH_TLS (1)
+#endif
+#endif
+
 /*
  *     WITH_VMPS is handled by src/include/autoconf.h
  */
index ec0b7ce..eb0d928 100644 (file)
@@ -1691,3 +1691,5 @@ fr_tls_server_conf_t *tls_server_conf_parse(CONF_SECTION *cs)
 
        return conf;
 }
+#endif /* WITH_TLS */
+