/[Apache-SVN]/httpd/httpd/trunk/support/htdigest.c
ViewVC logotype

Log of /httpd/httpd/trunk/support/htdigest.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 826528 - (view) (annotate) - [select for diffs]
Modified Sun Oct 18 21:34:47 2009 UTC (5 weeks, 3 days ago) by sf
File length: 8059 byte(s)
Diff to previous 826520 (colored)
Actually use the whole buffer for reading.

Revision 826520 - (view) (annotate) - [select for diffs]
Modified Sun Oct 18 20:39:05 2009 UTC (5 weeks, 3 days ago) by sf
File length: 8061 byte(s)
Diff to previous 826507 (colored)
Fix some more overflows spotted by Ruediger Pluem

Revision 826507 - (view) (annotate) - [select for diffs]
Modified Sun Oct 18 19:38:03 2009 UTC (5 weeks, 3 days ago) by sf
File length: 8049 byte(s)
Diff to previous 826506 (colored)
detab

Revision 826506 - (view) (annotate) - [select for diffs]
Modified Sun Oct 18 19:35:42 2009 UTC (5 weeks, 3 days ago) by sf
File length: 8035 byte(s)
Diff to previous 420983 (colored)
htdigest: Fix possible overflow in command line processing. htdigest is not
supposed to be suid save, therefore not treated as a security issue.

CVE-2005-1344
Submitted by: Adam Conrad
Reviewed by: Stefan Fritsch

Revision 420983 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (3 years, 4 months ago) by fielding
File length: 7957 byte(s)
Diff to previous 395228 (colored)
update license header text

Revision 395228 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:11:27 2006 UTC (3 years, 7 months ago) by colm
File length: 7810 byte(s)
Diff to previous 332306 (colored)
Update the copyright year in all .c, .h and .xml files

Revision 332306 - (view) (annotate) - [select for diffs]
Modified Thu Nov 10 15:11:44 2005 UTC (4 years ago) by jim
File length: 7810 byte(s)
Diff to previous 155681 (colored)
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines

Revision 155681 - (view) (annotate) - [select for diffs]
Modified Mon Feb 28 14:28:08 2005 UTC (4 years, 8 months ago) by jorton
File length: 7823 byte(s)
Diff to previous 151408 (colored)
* support/htdigest.c (main): Fix permissions of created files.

PR: 33765

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
File length: 7772 byte(s)
Diff to previous 106103 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
File length: 7736 byte(s)
Diff to previous 104078 (colored)
general property cleanup

Revision 104078 - (view) (annotate) - [select for diffs]
Modified Tue Jun 29 13:33:24 2004 UTC (5 years, 4 months ago) by martin
File length: 7736 byte(s)
Diff to previous 103007 (colored)
Use standardized names for ISO-8859-1, see http://www.iana.org/assignments/character-sets
(Using the name iso8859-1 may still work, because it is aliased in apr-iconv/ccs/charset.aliases)

Revision 103007 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 01:17:26 2004 UTC (5 years, 8 months ago) by bnicholes
File length: 7735 byte(s)
Diff to previous 103004 (colored)
Remove the OMIT_DELONCLOSE #ifdef since this should happen automatically with the apr_temp_dir_get() function.

Submitted by: Guenter Knauf <eflash@gmx.net>

Revision 103004 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 00:18:47 2004 UTC (5 years, 8 months ago) by bnicholes
File length: 8505 byte(s)
Diff to previous 103003 (colored)
Replace calls to fprintf() with apr_file_printf()

submitted by: Guenter Knauf <eflash@gmx.net>

Revision 103003 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 00:17:21 2004 UTC (5 years, 8 months ago) by bnicholes
File length: 8259 byte(s)
Diff to previous 103002 (colored)
Replace tabs with spaces

Submitted by: Guenter Knauf <eflash@gmx.net>

Revision 103002 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 00:15:12 2004 UTC (5 years, 8 months ago) by bnicholes
File length: 7937 byte(s)
Diff to previous 102998 (colored)
Remove the dependance on external cp/copy commands

Submitted by: Guenter Knauf <eflash@gmx.net>

Revision 102998 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 00:04:35 2004 UTC (5 years, 8 months ago) by bnicholes
File length: 7839 byte(s)
Diff to previous 102619 (colored)
Use apr_temp_dir_get() to get the temporary directory

Submitted by: Guenter Knauf <eflash@gmx.net>

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
File length: 7549 byte(s)
Diff to previous 102592 (colored)
fix name of The Apache Software Foundation

Revision 102592 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 14:14:53 2004 UTC (5 years, 9 months ago) by nd
File length: 7545 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according the first cehck in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
File length: 7545 byte(s)
Diff to previous 102135 (colored)
apply Apache License, Version 2.0

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
File length: 9571 byte(s)
Diff to previous 99680 (colored)
update license to 2004.

Revision 99680 - (view) (annotate) - [select for diffs]
Modified Thu May 1 13:45:38 2003 UTC (6 years, 6 months ago) by thommay
File length: 9571 byte(s)
Diff to previous 98893 (colored)
Forward port a fix for a pair of potential buffer overflows in htdigest from 1.3

Revision 98893 - (view) (annotate) - [select for diffs]
Modified Wed Mar 5 16:37:00 2003 UTC (6 years, 8 months ago) by nd
File length: 9532 byte(s)
Diff to previous 98573 (colored)
Restore the ability of htdigest.exe to create files that contain
more than one user. On win32 we cannot system("copy") a file, while
it's open.

PR: PR 12910

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
File length: 8584 byte(s)
Diff to previous 95993 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 95993 - (view) (annotate) - [select for diffs]
Modified Wed Jul 10 06:01:14 2002 UTC (7 years, 4 months ago) by orlikowski
File length: 8584 byte(s)
Diff to previous 95035 (colored)
Continue the Bill Rowe apr_size_t crusade.

Revision 95035 - (view) (annotate) - [select for diffs]
Modified Fri May 10 18:20:29 2002 UTC (7 years, 6 months ago) by trawick
File length: 8580 byte(s)
Diff to previous 94633 (colored)
avoid colliding with getline() as defined by glibc
(it breaks if you need to turn on _GNU_SOURCE)

Revision 94633 - (view) (annotate) - [select for diffs]
Modified Sat Apr 13 19:35:18 2002 UTC (7 years, 7 months ago) by wrowe
File length: 8578 byte(s)
Diff to previous 93918 (colored)
  Correct const'ness of argv in all support apps, and use the new
  apr_app_initialize over apr_initialize for win32, and other platforms
  that may wish to tweak 'apr-ized' application support (e.g. Netware?)

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
File length: 8687 byte(s)
Diff to previous 92919 (colored)
Update our copyright for this year.

Revision 92919 - (view) (annotate) - [select for diffs]
Modified Fri Jan 18 23:28:20 2002 UTC (7 years, 10 months ago) by bnicholes
File length: 8687 byte(s)
Diff to previous 92766 (colored)
Updates to allow the utilities to run on NetWare

Revision 92766 - (view) (annotate) - [select for diffs]
Modified Tue Jan 8 06:26:10 2002 UTC (7 years, 10 months ago) by rbb
File length: 8646 byte(s)
Diff to previous 91222 (colored)
Add the ability to pass flags to both apr_file_open and apr_mktemp.
The reason for this, is that it is very possible to want a temp
file that isn't deleted when the file is closed. It also makes sense
to have the flags in the apr_file_t if possible.

Revision 91222 - (view) (annotate) - [select for diffs]
Modified Mon Oct 1 19:19:45 2001 UTC (8 years, 1 month ago) by jwoolley
File length: 8643 byte(s)
Diff to previous 89333 (colored)
Switch from tmpnam() to apr_file_mktemp() so that gcc with a recent glibc
will shut the hell up about tmpnam() being unsafe.  htpasswd.c needs a
similar treatment, but it won't be _quite_ as easy since htpasswd has not
been completely apr-ized yet.

Revision 89333 - (view) (annotate) - [select for diffs]
Modified Mon Jun 11 14:46:30 2001 UTC (8 years, 5 months ago) by jwoolley
File length: 8701 byte(s)
Diff to previous 89331 (colored)
Silence gcc warning about rv being used when possibly uninitialized.  That
can only happen if n<=1 (ie, a bad parameter value), so I figure APR_EINVAL
is the correct default value.

Revision 89331 - (view) (annotate) - [select for diffs]
Modified Sun Jun 10 21:01:57 2001 UTC (8 years, 5 months ago) by stoddard
File length: 8688 byte(s)
Diff to previous 89188 (colored)
Fix look in htdigest.  Reimplemented getline to work properly with
APR. Shuld consider adding apr_file_getline() to APR.  Should also consider
changing apr_file_getc() to return characters rather than apr_status.

Revision 89188 - (view) (annotate) - [select for diffs]
Modified Mon May 21 19:17:20 2001 UTC (8 years, 6 months ago) by trawick
File length: 8775 byte(s)
Diff to previous 88184 (colored)
get rid of a warning for missing strXXX prototype.  (I only saw this
on RH 7.1.)

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
File length: 8750 byte(s)
Diff to previous 88081 (colored)
Update copyright to 2001

Revision 88081 - (view) (annotate) - [select for diffs]
Modified Sun Feb 11 01:08:24 2001 UTC (8 years, 9 months ago) by gstein
File length: 8745 byte(s)
Diff to previous 88019 (colored)
*) include "apr_signal.h" when needed
*) some other minor include tweaks

Revision 88019 - (view) (annotate) - [select for diffs]
Modified Thu Feb 8 07:45:33 2001 UTC (8 years, 9 months ago) by dougm
File length: 8802 byte(s)
Diff to previous 87726 (colored)
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 87726 - (view) (annotate) - [select for diffs]
Modified Thu Jan 18 23:54:14 2001 UTC (8 years, 10 months ago) by wrowe
File length: 8720 byte(s)
Diff to previous 87623 (colored)
  When is a void fn(void) not a void fn(void)?  It's a win32'ism, since
  the APR_DECLARE (excluding _NONSTD) uses the pascal convention.  Really
  irrelevant in a function that never needs to clean up (atexit), but
  the compiler complains.  Possible workarounds, but that would break
  non-c lanaguge code from linking into apr.

Revision 87623 - (view) (annotate) - [select for diffs]
Modified Tue Jan 9 04:09:43 2001 UTC (8 years, 10 months ago) by trawick
File length: 8670 byte(s)
Diff to previous 87501 (colored)
get rid of a bogus use of perror()

Revision 87501 - (view) (annotate) - [select for diffs]
Modified Thu Dec 21 21:00:45 2000 UTC (8 years, 11 months ago) by wrowe
File length: 8583 byte(s)
Diff to previous 87460 (colored)
  All the supports now build on APR (+APRUTIL), no reliance on httpd.

Revision 87460 - (view) (annotate) - [select for diffs]
Modified Wed Dec 20 16:44:01 2000 UTC (8 years, 11 months ago) by trawick
File length: 8580 byte(s)
Diff to previous 87424 (colored)
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.

Revision 87424 - (view) (annotate) - [select for diffs]
Modified Tue Dec 19 17:05:48 2000 UTC (8 years, 11 months ago) by rbb
File length: 8637 byte(s)
Diff to previous 87080 (colored)
Force all Apache functions to be linked into the executable, whether they
are used or not.  This uses the same mechanism that is used for APR
and APR-util.  This may not be the correct solution, but it works, and that
is what I really care about.  This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC.  This is for namespace correctness, but it also makes
the exports script a bit easier.

Revision 87080 - (view) (annotate) - [select for diffs]
Modified Sun Nov 26 04:47:43 2000 UTC (9 years ago) by gstein
File length: 8619 byte(s)
Diff to previous 86745 (colored)
*) Compensate for recent changes in the APR headers. Specifically, some
   files need to specifically include stdio.h, or a particular apr_*.h
   header.

*) Adjust callers of apr_create_process() to deal with the extra "const"

*) Add "const" to args of ap_os_create_privileged_process()

Revision 86745 - (view) (annotate) - [select for diffs]
Modified Wed Oct 25 15:03:03 2000 UTC (9 years, 1 month ago) by fanf
File length: 8469 byte(s)
Diff to previous 86020 (colored)
ensure that all cpp directives start with a # in column one
PR: 6742

Revision 86020 - (view) (annotate) - [select for diffs]
Modified Mon Aug 7 20:11:37 2000 UTC (9 years, 3 months ago) by trawick
File length: 8470 byte(s)
Diff to previous 86018 (colored)
A few more (last?) ap_xlate->apr_xlate changes covering stuff not completely
handled in the big apr rename last week.

Revision 86018 - (view) (annotate) - [select for diffs]
Modified Mon Aug 7 19:26:02 2000 UTC (9 years, 3 months ago) by trawick
File length: 8468 byte(s)
Diff to previous 86008 (colored)
Fix some problems with the apr conversion so that APACHE_XLATE builds work
again.

Revision 86008 - (view) (annotate) - [select for diffs]
Modified Sun Aug 6 06:07:53 2000 UTC (9 years, 3 months ago) by wrowe
File length: 8467 byte(s)
Diff to previous 85976 (colored)
  Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
  see src/lib/apr/apr_compat.h for most details.
  Also a few minor nits to get Win32 to build.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 85976 - (view) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (9 years, 3 months ago) by dougm
File length: 8466 byte(s)
Diff to previous 85160 (colored)
prefix libapr functions and types with apr_

Revision 85160 - (view) (annotate) - [select for diffs]
Modified Sat May 6 13:41:59 2000 UTC (9 years, 6 months ago) by trawick
File length: 8429 byte(s)
Diff to previous 85080 (colored)
serious bug fix:
  htdigest didn't init the first parm to ap_open(), so ap_open()
  segfaults thinking it was passed valid storage
build portability:
  make most src/lib/apr/test/Makefile.in compatible with OS/390
  make (no -o outfile after infile specified)
MD5 translation support:
  when APR_HAS_XLATE, low-level routines allow translation handle
  to be specified

  when CHARSET_EBCDIC, password-specific routines always translate,
  but client app must set handle before using

Revision 85080 - (view) (annotate) - [select for diffs]
Modified Fri Apr 28 18:25:02 2000 UTC (9 years, 7 months ago) by trawick
File length: 7822 byte(s)
Diff to previous 85064 (colored)
Win32:
  install ab.exe
  fix dependency in Apache.dsw (ab is dependent on aprlib and ap)
  fix ab and htdigest projects so that they find all header files
  define ap_signal() in apr.hw - this is o.k. for casual use as with
    cmd-line programs
  use API_VAR_EXPORT as appropriate in getopt.c
general:
  ab doesn't need to declare ap_optarg/ap_optind; fix a warning
  htdigest needs to call ap_initialize() to avoid segfault at
    startup

Revision 85064 - (view) (annotate) - [select for diffs]
Modified Thu Apr 27 20:35:41 2000 UTC (9 years, 7 months ago) by rbb
File length: 7775 byte(s)
Diff to previous 85017 (colored)
Merge the htdigest.c file from the apr/test directory to the support
directory.

Revision 85017 - (view) (annotate) - [select for diffs]
Modified Sun Apr 23 02:32:58 2000 UTC (9 years, 7 months ago) by fielding
File length: 7636 byte(s)
Diff to previous 84881 (colored)
Finished move of ap_md5 routines to apr_md5.  Removed ap_md5.h.
Replaced more magic numbers with MD5_DIGESTSIZE.  Yuck.

Submitted by:	William Rowe, Roy Fielding

Revision 84881 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 09:42:55 2000 UTC (9 years, 7 months ago) by fielding
File length: 7645 byte(s)
Diff to previous 84725 (colored)
Update to Apache Software License version 1.1

Revision 84725 - (view) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (9 years, 8 months ago) by rbb
File length: 7789 byte(s)
Diff to previous 84007 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license

Revision 84007 - (view) (annotate) - [select for diffs]
Modified Wed Oct 20 12:50:12 1999 UTC (10 years, 1 month ago) by rbb
File length: 7663 byte(s)
Diff to previous 83964 (colored)
Add a status value to ap_log_error and ap_log_rerror.  This allows us to use
apr_status codes in our error logs.  The main advantage of this, is portable
error codes.  Now, Windows will finally be able to use errno!

Revision 83964 - (view) (annotate) - [select for diffs]
Modified Mon Oct 11 20:25:08 1999 UTC (10 years, 1 month ago) by dreid
File length: 7574 byte(s)
Diff to previous 83750 (colored)
These changes allow the support programs to compile on BeOS.

The biggest change is in ab.c where the functions that BeOS needs that
aren't the standard format are hidden behind a new ab_* define.  Tested
on FreeBSD and BeOS.

Revision 83750 - (view) (annotate) - [select for diffs]
Added Tue Aug 24 06:46:03 1999 UTC (10 years, 3 months ago) by fielding
File length: 7557 byte(s)
Apache 1.3.9 baseline for the Apache 2.0 repository.

Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2