[pubcookie-dev] WEBISO CVS update: willey; libpubcookie.c,2.60.2.5,2.60.2.6

Stephen Willey willey at cac.washington.edu
Thu Jan 8 16:21:02 PST 2004


Update of /usr/local/cvsroot/webiso/pubcookie/src
 In directory webiso-cvs.cac.washington.edu:/var/tmp/cvs-serv27588
 
 Modified Files:
       Tag: UWash3
 	index.cgi.c libpubcookie.c 
 Log Message:
 add dangerious un-documented debug define: IMMORTAL_COOKIES



Index: webiso/pubcookie/src/index.cgi.c
diff -c webiso/pubcookie/src/index.cgi.c:1.108.2.10 webiso/pubcookie/src/index.cgi.c:1.108.2.11
*** webiso/pubcookie/src/index.cgi.c:1.108.2.10	Wed Jan  7 15:26:49 2004
--- webiso/pubcookie/src/index.cgi.c	Thu Jan  8 16:21:00 2004
***************
*** 6,12 ****
  /** @file index.cgi.c
   * Login server CGI
   *
!  * $Id: index.cgi.c,v 1.108.2.10 2004/01/07 23:26:49 willey Exp $
   */
  
  #ifdef HAVE_CONFIG_H
--- 6,12 ----
  /** @file index.cgi.c
   * Login server CGI
   *
!  * $Id: index.cgi.c,v 1.108.2.11 2004/01/09 00:21:00 willey Exp $
   */
  
  #ifdef HAVE_CONFIG_H
***************
*** 363,371 ****
--- 363,374 ----
   */
  int check_l_cookie_expire (pool *p, login_rec *c, time_t t) 
  {
+ 
+ #ifndef IMMORTAL_COOKIES
      if ( c == NULL || t > c->expire_ts )
          return(PBC_FAIL);
      else
+ #endif
          return(PBC_OK);
  
  }


Index: webiso/pubcookie/src/libpubcookie.c
diff -c webiso/pubcookie/src/libpubcookie.c:2.60.2.5 webiso/pubcookie/src/libpubcookie.c:2.60.2.6
*** webiso/pubcookie/src/libpubcookie.c:2.60.2.5	Wed Jan  7 15:26:49 2004
--- webiso/pubcookie/src/libpubcookie.c	Thu Jan  8 16:21:00 2004
***************
*** 6,12 ****
  /** @file libpubcookie.c
   * Core pubcookie library
   *
!  * $Id: libpubcookie.c,v 2.60.2.5 2004/01/07 23:26:49 willey Exp $
   */
  
  
--- 6,12 ----
  /** @file libpubcookie.c
   * Core pubcookie library
   *
!  * $Id: libpubcookie.c,v 2.60.2.6 2004/01/09 00:21:00 willey Exp $
   */
  
  
***************
*** 817,822 ****
--- 817,827 ----
   */
  int libpbc_check_exp(pool *p, time_t fromc, int exp)
  {
+ 
+ #ifdef IMMORTAL_COOKIES
+         return PBC_OK;
+ #endif
+ 
      if( (fromc + exp) > time(NULL) )
          return PBC_OK;
      else 



end of message


More information about the pubcookie-dev mailing list