httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@hyperreal.com>
Subject cvs commit: apache/src mod_digest.c
Date Wed, 29 May 1996 23:42:17 GMT
akosut      96/05/29 16:42:16

  Modified:    src       mod_digest.c
  Log:
  Modify the digest authentication checks so they don't mess with
  requests that aren't protected with digest authentication. This was
  apparently causing some problems with certain setups.
  
  Submitted by: jk@tools.de
  
  Revision  Changes    Path
  1.5       +7 -3      apache/src/mod_digest.c
  
  Index: mod_digest.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_digest.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -C3 -r1.4 -r1.5
  *** mod_digest.c	1996/04/20 12:00:14	1.4
  --- mod_digest.c	1996/05/29 23:42:15	1.5
  ***************
  *** 293,306 ****
        
        register int x;
        char *t, *w;
  !     array_header *reqs_arr = requires (r);
        require_line *reqs;
    
  !     /* BUG FIX: tadc, 11-Nov-1995.  If there is no "requires" directive, 
         * then any user will do.
         */
        if (!reqs_arr)
  !         return DECLINED;
        reqs = (require_line *)reqs_arr->elts;
    
        for(x=0; x < reqs_arr->nelts; x++) {
  --- 293,310 ----
        
        register int x;
        char *t, *w;
  !     array_header *reqs_arr;
        require_line *reqs;
    
  !     if (!(t = auth_type(r)) || strcasecmp(t, "Digest"))
  !       return DECLINED;
  ! 
  !     reqs_arr = requires (r);
  !     /* If there is no "requires" directive, 
         * then any user will do.
         */
        if (!reqs_arr)
  !         return OK;
        reqs = (require_line *)reqs_arr->elts;
    
        for(x=0; x < reqs_arr->nelts; x++) {
  
  
  

Mime
View raw message