I updated from anonCVS to get epic4-1.1.3 and found that I was not able to
compile server.c after specifying --without-ssl in the configure.

There were many spots in the code that attempted to do ssl-related
functions that were not #ifdef'ed out.

The attached file is the diff -u output between server.c and my changes.

Stephanie Rogerson <[EMAIL PROTECTED]>
--- server.c.orig       Tue Mar 19 23:35:37 2002
+++ server.c    Tue Mar 19 23:20:27 2002
@@ -132,8 +132,10 @@
                        malloc_strcpy(&s->d_nickname, nickname);
                if (group && *group)
                        malloc_strcpy(&s->group, group);
+#ifdef HAVE_SSL
                if (server_type && *server_type)
                        s->enable_ssl = my_stricmp(server_type, "IRC-SSL") ? 0 : 1;
+#endif
                malloc_strcpy(&s->umodes, umodes);
 
                make_notify_list(from_server);
@@ -1807,7 +1809,7 @@
        int             sign_alg;
        X509            *server_cert;
        EVP_PKEY        *server_pkey;
-#endif;
+#endif
        if (server_list[ssn_index].registration_pending)
                return;         /* Whatever */
 
@@ -2521,10 +2523,11 @@
 
        if (refnum >= number_of_servers || refnum < 0)
                return 0;
-
+#ifdef HAVE_SSL
        if (server_list[refnum].enable_ssl)
                return "IRC-SSL";
        else
+#endif
                return "IRC";
 }
 
@@ -2607,8 +2610,10 @@
                        RETURN_INT(get_server_port(refnum));
                } else if (!my_strnicmp(listc, "QUIT_MESSAGE", 1)) {
                        RETURN_STR(get_server_quit_message(refnum));
+#ifdef HAVE_SSL
                } else if (!my_strnicmp(listc, "SSL", 1)) {
                        RETURN_INT(get_server_enable_ssl(refnum));
+#endif
                } else if (!my_strnicmp(listc, "UMODE", 2)) {
                        RETURN_STR(get_umode(refnum));
                } else if (!my_strnicmp(listc, "USERHOST", 2)) {
@@ -2654,12 +2659,14 @@
                } else if (!my_strnicmp(listc, "QUIT_MESSAGE", 1)) {
                        set_server_quit_message(refnum, input);
                        RETURN_INT(1);
+#ifdef HAVE_SSL
                } else if (!my_strnicmp(listc, "SSL", 1)) {
                        int value;
 
                        GET_INT_ARG(value, input);
                        set_server_enable_ssl(refnum, value);
                        RETURN_INT(1);
+#endif
                } else if (!my_strnicmp(listc, "UMODE", 2)) {
                        RETURN_EMPTY;           /* Read only for now */
                } else if (!my_strnicmp(listc, "USERHOST", 2)) {

Reply via email to