Jacob Champion
0dc9280e94
CVE-2017-9788: add unit tests for get_digest_rec()
...
Including the module source is a dirty hack, but maybe the direct way is
best for now. More functional tests are still TODO.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1801996 13f79535-47bb-0310-9956-ffa450edef68
2017-07-14 22:30:17 +00:00
Jacob Champion
63047d39ba
ap_find_token: add unit tests
...
Add previously embargoed test case for CVE-2017-7668.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1799377 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 23:34:30 +00:00
Jacob Champion
f50be63ee1
Revert new base64 function and tests
...
This should be trunk-only, not part of the backport branch.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1799376 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 23:34:18 +00:00
Jacob Champion
6a1008ee10
util.c: add a strict Base64 decoding function
...
ap_pbase64decode_strict() adds to the functionality of
ap_pbase64decode() in two ways:
- the length of the decoded buffer is returned, allowing embedded NULLs
to be retained by the caller
- the input string is strictly checked for Base64 validity, including
correct zero-padding at the end of the string
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796208 13f79535-47bb-0310-9956-ffa450edef68
2017-05-25 21:18:42 +00:00
Jacob Champion
589866e7e5
httpdunit: fix check.h on Windows
...
Check seems to have trouble with type definitions when using a
CMake+Windows toolchain. Include apr.h before check.h to ensure pid_t
exists.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796205 13f79535-47bb-0310-9956-ffa450edef68
2017-05-25 21:18:36 +00:00
Jacob Champion
d3289c73ee
httpdunit: a Check-based unit test suite
...
Add a unit test suite based on Check:
https://libcheck.github.io/check/
The suite depends on the build system to automatically generate the code
stubs that call every test case.
httpdunit is automatically enabled in the build if configure is able to
find Check via pkg-config. At the moment pkg-config is the only official
(non-deprecated) way to build and link against Check with an autoconf
system, since platforms may distribute Check as a static library.
Note that Check is an LGPL'd library, so we can't distribute test
objects and binaries. Building and running the suite remains optional
and is not required to run the server.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796202 13f79535-47bb-0310-9956-ffa450edef68
2017-05-25 21:18:32 +00:00
Rainer Jung
d79b514c4b
Fix spelling in comments and text files.
...
No functional change.
PR 59990
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 19:50:02 +00:00
Mike Rumph
abc67c9f6e
Testing SVN commit
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1563751 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 00:29:46 +00:00
Mike Rumph
f407bbff19
Testing SVN commit.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1563673 13f79535-47bb-0310-9956-ffa450edef68
2014-02-02 17:30:53 +00:00
Christophe Jaillet
54c9816667
Change bzero/bcopy into memset/memcpy
...
PR 54346
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442865 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 08:17:53 +00:00
André Malo
a11c89f232
fix various property issues
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1309567 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 19:49:25 +00:00
Graham Leggett
2cb5dbf511
Distinguish properly between the bindir and sbindir directories when
...
installing binaries. Previously all binaries were silently installed to
sbindir, whether they were system administration commands or not.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220846 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 17:00:49 +00:00
Jeff Trawick
2e9668a33d
Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,
...
and WatchdogMutexPath with a single Mutex directive. Add APIs to
simplify setup and user customization of APR proc and global mutexes.
(See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer
respected; set DEFAULT_REL_RUNTIMEDIR instead.
Some existing modules, such as mod_ldap and mod_auth_digest gain
configurability for their mutexes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883540 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:17:51 +00:00
Dirk-Willem van Gulik
367d5a7829
make_sni.sh test -- Accomodate for platforms which do not have RANDOM in their sh(1) implementation - rely on the pid and a not so random prefix
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@757851 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 15:39:00 +00:00
Dirk-Willem van Gulik
64cc1fe17f
Add Joe Orton his SNI test case for client authentication
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@650575 13f79535-47bb-0310-9956-ffa450edef68
2008-04-22 17:06:02 +00:00
Dirk-Willem van Gulik
bfdbb48bb8
Incorperate feedback/requests for a bit more flexibility: 1)allow any domain and IP address for the SNI demonstration and 2) make the index.html sample files a bit easier to recognize.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649043 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 10:33:00 +00:00
Dirk-Willem van Gulik
719fffd3b9
More spelling/clarifications/depluralizing (and we know the name of the error log)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@620642 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 22:17:12 +00:00
Dirk-Willem van Gulik
769c432909
Clarify the text a little and use the vhost terminology.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@620635 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 22:11:41 +00:00
Dirk-Willem van Gulik
a7cbbcdd63
Addition of a test script which creates a Sample/test configuration for installations
...
that wants to support SNI. Primarily done as a lot of web developers find the creation
of certificates hard - and do not want to go to the expense of sourcing a handful
from a well-known CA just for testing and experimenting.
Also update the CHANGES log with the word 'SNI' as to make googling it easier.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@620630 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 22:06:42 +00:00
Roy T. Fielding
47e590252a
update license header text
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420993 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 21:18:15 +00:00
Roy T. Fielding
de659cbed0
update license header text
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:33:53 +00:00
Thom May
d98afdda07
remove test/zb.c
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@405400 13f79535-47bb-0310-9956-ffa450edef68
2006-05-09 11:59:26 +00:00
Colm MacCarthaigh
ebe24d48c7
Update the last year of copyright.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395229 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:23:42 +00:00
Colm MacCarthaigh
dd95d7c37c
Update the copyright year in all .c, .h and .xml files
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +00:00
Jim Jagielski
08c97ba290
No functional change: remove "internal" tab spacing/formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345053 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 16:31:25 +00:00
Jim Jagielski
5061d9fa92
No functional Change: Removing trailing whitespace. This also
...
means that "blank" lines consisting of just spaces or
tabs are now really blank lines
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332306 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:11:44 +00:00
Jim Jagielski
5d2fae4818
No functional change: simple detabbing of indented code.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332305 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:05:51 +00:00
Joe Orton
9687f8c6a7
Update remaining 2004 copyright notices.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190592 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 13:54:34 +00:00
Justin Erenkrantz
905cdf9f0b
Update copyright year to 2005 and standardize on current copyright owner line.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 20:28:49 +00:00
Cliff Woolley
a89bce3fd9
"transfered" is not a word.
...
s/transfered/transferred/g;
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111858 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 18:58:25 +00:00
Joe Orton
c36ecfa64f
Remove the .cvsignore files.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105796 13f79535-47bb-0310-9956-ffa450edef68
2004-11-19 09:07:29 +00:00
André Malo
eeb57c17ad
fix name of The Apache Software Foundation
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:40:53 +00:00
André Malo
96e048b3e6
fix copyright dates accorsding to the first check in
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102593 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 14:18:26 +00:00
André Malo
537211bf64
apply Apache License, Version 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102526 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 23:08:00 +00:00
Martin Kraemer
3858ce6320
[Porting] Include <sys/mutex.h> if available, to get lock_t typedef for using <sys/shm.h>
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100070 13f79535-47bb-0310-9956-ffa450edef68
2003-05-28 14:11:38 +00:00
Victor J. Orlikowski
d982829aa1
Continue the Bill Rowe apr_size_t crusade.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95993 13f79535-47bb-0310-9956-ffa450edef68
2002-07-10 06:01:14 +00:00
William A. Rowe Jr
af75efc30c
Not really sure what this is, but it wasn't aprized. back out rev 1.2
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95861 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 06:17:28 +00:00
William A. Rowe Jr
ad9b6ce48a
Adapt to use apr_ischar()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95860 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 06:16:05 +00:00
Ryan Bloom
73f768d207
rules.mk is stored in $(top_blddir). Without this change, VPATH builds
...
stop working.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91017 13f79535-47bb-0310-9956-ffa450edef68
2001-09-13 06:49:09 +00:00
David Reid
3b7e6c81ef
Use the full path for libraries. (This has been in my tree for ages...)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90843 13f79535-47bb-0310-9956-ffa450edef68
2001-08-31 09:12:10 +00:00
Jeff Trawick
7135d12e6c
get rid of util_date.c/util_date.h and associated test program
...
test_date.c
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89278 13f79535-47bb-0310-9956-ffa450edef68
2001-06-06 19:37:15 +00:00
Roy T. Fielding
62367507a9
Change the make targets and rules to be consistent in all of the
...
Apache-owned source trees. Sanity is a good thing.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89140 13f79535-47bb-0310-9956-ffa450edef68
2001-05-18 00:48:57 +00:00
Doug MacEachern
88d3406f9a
renaming various functions for consistency sake
...
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
2001-02-08 07:45:33 +00:00
Brian Havard
a345ba4bf4
Libtool takes care of the lib prefix so get rid of our own workaround.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87639 13f79535-47bb-0310-9956-ffa450edef68
2001-01-10 01:04:53 +00:00
Greg Stein
85cd420ad4
remove building of the dbu test proggie
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87268 13f79535-47bb-0310-9956-ffa450edef68
2000-12-08 23:19:27 +00:00
William A. Rowe Jr
66667b7cfb
Moved to apr-util/test
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87264 13f79535-47bb-0310-9956-ffa450edef68
2000-12-08 18:06:12 +00:00
Greg Stein
b18b5e32c3
*) top-level: build our base libraries (srclib) first since these (by
...
definition) have no dependencies on anything else. this will also ensure
that we have *.exports available for building server/
*) add the "test" SUBDIR back in so that it gets called for "make clean" and
other types of make targets.
*) revise test/Makefile.in so that it does not build any test programs by
default. add "make test" to build any/all test programs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87250 13f79535-47bb-0310-9956-ffa450edef68
2000-12-07 11:52:17 +00:00
Greg Stein
6384774c4c
get the test directory working again:
...
- use apr_dbm.h and the updated naming
- don't try to link against libap(util?) or libsdbm. just use libaprutil.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87234 13f79535-47bb-0310-9956-ffa450edef68
2000-12-06 08:13:14 +00:00
Ryan Bloom
a5a1891da1
Get Apache to configure completely again. This still doesn't build, but
...
now we are getting very close.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87187 13f79535-47bb-0310-9956-ffa450edef68
2000-12-04 22:33:51 +00:00
Greg Stein
18c6822d18
shaddup
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87083 13f79535-47bb-0310-9956-ffa450edef68
2000-11-26 15:29:39 +00:00