]> code.citadel.org Git - citadel.git/commitdiff
Removed wc_host and wc_port cookies.
authorArt Cancro <ajc@citadel.org>
Tue, 5 Jan 1999 04:05:01 +0000 (04:05 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 5 Jan 1999 04:05:01 +0000 (04:05 +0000)
webcit/ChangeLog
webcit/auth.c
webcit/webcit.c
webcit/webcit.h

index aa9a7357a0c823468cd564508be7a0c3a3a8c1f6..a3d1ea257c90935aa52686402a53b41928654065 100644 (file)
@@ -1,3 +1,6 @@
+Mon Jan  4 23:04:36 EST 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+       * Removed wc_host and wc_port cookies.
+
 Sun Jan  3 20:05:31 EST 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Added "enter registration"
        * Set up automatic trigger of Enter Registration when the server
index 4172c76f7bf08ebd88ec9e75d5dbbac5c1265bec..2262fd189d0b0be081cf510f96302c6db15adf82 100644 (file)
@@ -187,8 +187,6 @@ void do_logout(void) {
        strcpy(wc_username, "");
        strcpy(wc_password, "");
        strcpy(wc_roomname, "");
-       strcpy(wc_host, "");
-       strcpy(wc_port, "");
 
        printf("HTTP/1.0 200 OK\n");
        printf("X-WebCit-Session: close\n");
index bdaa899c4ce0de5e7964ce8ba65e19d0af836c11..e4f0c400950fd45334967856fe4286f157e18b53 100644 (file)
@@ -22,8 +22,6 @@
 #include "child.h"
 
 int wc_session;
-char wc_host[256];
-char wc_port[256];
 char wc_username[256];
 char wc_password[256];
 char wc_roomname[256];
@@ -269,12 +267,6 @@ void output_headers(int print_standard_html_head) {
        printf("Connection: close\n");
        printf("Set-cookie: wc_session=%d\n", wc_session);
 
-       if (strlen(wc_host)>0) printf("Set-cookie: wc_host=%s\n", wc_host);
-       else printf("Set-cookie: wc_host=%s\n", unset);
-
-       if (strlen(wc_port)>0) printf("Set-cookie: wc_port=%s\n", wc_port);
-       else printf("Set-cookie: wc_port=%s\n", unset);
-
        if (strlen(wc_username)>0) printf("Set-cookie: wc_username=%s\n",
                wc_username);
        else printf("Set-cookie: wc_username=%s\n", unset);
@@ -500,10 +492,6 @@ void session_loop(void) {
        do {
                getz(buf);
 
-               if (!strncasecmp(buf, "Cookie: wc_host=", 16))
-                       strcpy(c_host, &buf[16]);
-               if (!strncasecmp(buf, "Cookie: wc_port=", 16))
-                       strcpy(c_port, &buf[16]);
                if (!strncasecmp(buf, "Cookie: wc_username=", 20))
                        strcpy(c_username, &buf[20]);
                if (!strncasecmp(buf, "Cookie: wc_password=", 20))
@@ -556,8 +544,6 @@ void session_loop(void) {
                serv_sock = connectsock(c_host, c_port, "tcp");
                connected = 1;
                serv_gets(buf); /* get the server welcome message */
-               strcpy(wc_host, c_host);
-               strcpy(wc_port, c_port);
                get_serv_info();
                }
 
@@ -917,8 +903,6 @@ int main(int argc, char *argv[]) {
                        defaultport = argv[3];
                }
 
-       strcpy(wc_host, "");
-       strcpy(wc_port, "");
        strcpy(wc_username, "");
        strcpy(wc_password, "");
        strcpy(wc_roomname, "");
index 94693ab0e84422cb003c943d1828b15a5afd7623..ef9760dae531faae509163d9910659b8a565bd49 100644 (file)
@@ -58,8 +58,6 @@ struct serv_info {
        int serv_ok_floors;
        };
 
-extern char wc_host[256];
-extern char wc_port[256];
 extern char wc_username[256];
 extern char wc_password[256];
 extern char wc_roomname[256];