]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
* serv_crypto.c: made changes to OpenSSL calls ... removed unnecessary
[citadel.git] / webcit / webcit.h
index 9d82c7061d3bdd9be6f90b907abc53fd6bda3d5f..103908e135d29e0b0aaab7c0e3eb552d14b81b9c 100644 (file)
 #define SLEEPING               180             /* TCP connection timeout */
 #define WEBCIT_TIMEOUT         900             /* WebCit session timeout */
 #define PORT_NUM               2000            /* port number to listen on */
-#define SERVER                 "WebCit v6.02"  /* who's in da house */
+#define SERVER                 "WebCit v6.03"  /* who's in da house */
 #define DEVELOPER_ID           0
 #define CLIENT_ID              4
-#define CLIENT_VERSION         602             /* This version of WebCit */
+#define CLIENT_VERSION         603             /* This version of WebCit */
 #define MINIMUM_CIT_VERSION    640             /* min required Citadel vers */
 #define DEFAULT_HOST           "localhost"     /* Default Citadel server */
 #define DEFAULT_PORT           "504"
@@ -233,6 +233,7 @@ struct wcsession {
 
        size_t burst_len;
        char *burst;
+       int gzip_ok;                    /* Nonzero if Accept-encoding: gzip */
 };
 
 #define extract(dest,source,parmnum)   extract_token(dest,source,parmnum,'|')
@@ -254,7 +255,9 @@ extern char *axdefs[];
 extern char *ctdlhost, *ctdlport;
 extern char *server_cookie;
 extern int is_https;
-
+extern int setup_wizard;
+extern char wizard_filename[];
+void do_setup_wizard(void);
 
 void stuff_to_cookie(char *cookie, int session,
                        char *user, char *pass, char *room);
@@ -314,7 +317,6 @@ void display_enter(void);
 void post_message(void);
 void confirm_delete_msg(void);
 void delete_msg(void);
-void do_stuff_to_one_msg(void);
 void confirm_move_msg(void);
 void move_msg(void);
 void userlist(void);
@@ -493,6 +495,13 @@ int client_read_ssl(char *buf, int bytes, int timeout);
 void client_write_ssl(char *buf, int nbytes);
 #endif
 
+#ifdef HAVE_ZLIB
+#include <zlib.h>
+int ZEXPORT compress_gzip(Bytef * dest, uLongf * destLen,
+                          const Bytef * source, uLong sourceLen, int level);
+#endif
+
+
 void begin_burst(void);
 void end_burst(void);