]> code.citadel.org Git - citadel.git/blobdiff - webcit/cookie_conversion.c
* Ditched the frames mode completely. It wasn't working properly in,
[citadel.git] / webcit / cookie_conversion.c
index a4865f7d9db02910ce298dbce2d413efeaa6623b..3bb3554b9b6d93a726c9397e1eec7d9dba9ad484 100644 (file)
 /*
  * Pack all session info into one easy-to-digest cookie.  Healthy and delicious!
  */
-void stuff_to_cookie(char *cookie, int session, char *user, char *pass, char *room, int nofr)
+void stuff_to_cookie(char *cookie, int session, char *user, char *pass, char *room)
 {
        char buf[256];
        int i;
 
-       sprintf(buf, "%d|%s|%s|%s|%d", session, user, pass, room, nofr);
+       sprintf(buf, "%d|%s|%s|%s", session, user, pass, room);
        strcpy(cookie, "");
 
        for (i = 0; i < strlen(buf); ++i)
@@ -28,7 +28,7 @@ void stuff_to_cookie(char *cookie, int session, char *user, char *pass, char *ro
 /*
  * Extract all that fun stuff out of the cookie.
  */
-void cookie_to_stuff(char *cookie, int *session, char *user, char *pass, char *room, int *nofr)
+void cookie_to_stuff(char *cookie, int *session, char *user, char *pass, char *room)
 {
        char buf[256];
        int i;
@@ -46,6 +46,4 @@ void cookie_to_stuff(char *cookie, int *session, char *user, char *pass, char *r
                extract(pass, buf, 2);
        if (room != NULL)
                extract(room, buf, 3);
-       if (nofr != NULL)
-               *nofr = extract_int(buf, 4);
 }