]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow building without TLS
authorAlan T. DeKok <aland@freeradius.org>
Thu, 13 Sep 2012 12:54:46 +0000 (14:54 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 13 Sep 2012 12:54:46 +0000 (14:54 +0200)
src/main/command.c

index bd702a5b71f994fdd0bd8dbaf7a9fe06584efec5..89d89119cff7589f7ee5d0312dfb921132ff9ff5 100644 (file)
@@ -2148,11 +2148,13 @@ static int command_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
        rcode = common_socket_parse(cs, this);
        if (rcode < 0) return -1;
 
+#ifdef WITH_TLS
        if (this->tls) {
                cf_log_err(cf_sectiontoitem(cs),
                           "TLS is not supported for control sockets");
                return -1;
        }
+#endif
 
        sock = this->data;
        if (sock->proto != IPPROTO_TCP) {