summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Include new files in Windows buildsf2012-07-181-0/+12
| | | | | | | Untested, testers welcome git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1363076 13f79535-47bb-0310-9956-ffa450edef68
* APR dbd FreeTDS support: Fix spurious API errors caused by trawick2012-07-181-1/+1
| | | | | | | | | | | | | unitialized fields. Use apr_pcalloc instead of apr_palloc when allocating the dbd structure so that all fields are initialized. Submitted by: TROY.LIU 劉春偉 <TROY.LIU deltaww.com.cn> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1362892 13f79535-47bb-0310-9956-ffa450edef68
* Forward port r1211223 from 1.4:sf2012-07-162-16/+16
| | | | | | | Use uniques bases. The current one were in collision with dbd drivers git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1362255 13f79535-47bb-0310-9956-ffa450edef68
* Forward port r1211219 from apr-util 1.4:sf2012-07-161-8/+8
| | | | | | | Use different base. This one was from odbc driver git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1362252 13f79535-47bb-0310-9956-ffa450edef68
* Forward port r1211337 from apr-util 1.4:sf2012-07-161-0/+1
| | | | | | | Some compilers don't allow empty structure declarations git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1362248 13f79535-47bb-0310-9956-ffa450edef68
* Avoid copying the hashed password to a temp buffer, if possible.sf2012-07-161-4/+4
| | | | | | | | Noted by Jason Ovich <jasonovich mailfish de> PR: 53410 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1362241 13f79535-47bb-0310-9956-ffa450edef68
* Increase the buffer size for the hashed stringsf2012-07-151-1/+1
| | | | | | | | | | | | sha512-crypt with custom rounds= prefix needs 115 bytes plus length of the number of rounds string to store the resulting hash. An usable buffer size of 119 limited this to 9999 rounds. Use 200 to allow for future hash algorithms with longer string lengths (e.g. due to longer salt). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1361811 13f79535-47bb-0310-9956-ffa450edef68
* Fix NetWare build with picky Metrowerks compiler.fuankg2012-07-072-3/+3
| | | | | | | Suggested by Stefan Fritsch. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1358480 13f79535-47bb-0310-9956-ffa450edef68
* Added new stuff to NetWare build.fuankg2012-07-062-1/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1358295 13f79535-47bb-0310-9956-ffa450edef68
* fix breakagesf2012-07-051-3/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357979 13f79535-47bb-0310-9956-ffa450edef68
* fixup previous commitsf2012-07-051-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357968 13f79535-47bb-0310-9956-ffa450edef68
* add another checksf2012-07-051-1/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357966 13f79535-47bb-0310-9956-ffa450edef68
* Run tests with -v by default, to make debugging easiersf2012-07-051-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357957 13f79535-47bb-0310-9956-ffa450edef68
* Add support for bcrypt encoded passwords.sf2012-07-057-7/+1011
| | | | | | | | | | | | | | | | | | | | | | | | The bcrypt implementation uses code from crypt_blowfish written by Solar Designer <solar openwall com>. The x86 assembler implementation is not used becaused it did not result in significant speed-up on my system. apr_bcrypt_encode creates hashes with "$2y$" prefix, but apr_password_validate also accepts the old prefix "$2a$". * crypto/crypt_blowfish.[ch]: Imported from crypt_blowfish 1.2. The only change compared to the upstream version is setting BF_ASM to 0. * crypto/apr_passwd.c: Add bcrypt support to apr_password_validate, add apr_bcrypt_encode * test/testpass.c: Add new tests, for bcrypt and the old schemes. * include/apr_md5.h: apr_password_validate() is left here fore backward compatibility and apr_bcrypt_encode() is added here as well. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357780 13f79535-47bb-0310-9956-ffa450edef68
* Move non-MD5-related things from apr_md5.c to new file apr_passwd.csf2012-07-053-144/+171
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357772 13f79535-47bb-0310-9956-ffa450edef68
* Add an APR_ASSERT_FAILURE macro for tests that must failsf2012-07-052-0/+18
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1357761 13f79535-47bb-0310-9956-ffa450edef68
* * build/crypto.m4: Always define apu_have_openssl, apu_have_nss to avoidjorton2012-06-061-2/+2
| | | | | | | sh warning when testing these variables if modular-dso is disabled. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1346865 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Use AC_MSG_* rather than direct echo, making --quiet modejorton2012-06-061-26/+39
| | | | | | | work (better). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1346860 13f79535-47bb-0310-9956-ffa450edef68
* Guard against EAI_ADDRFAMILY not being defined, it seems to be glibcsf2012-05-281-1/+4
| | | | | | | specific git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1343243 13f79535-47bb-0310-9956-ffa450edef68
* Improve handling of AI_ADDRCONFIG with getaddrinfo()sf2012-05-281-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Using AI_ADDRCONFIG involves some unfortunate guesswork because it does not consider loopback addresses when trying to determine if IPv4 or IPv6 is configured (RFC 3493). This is a problem if one actually wants to listen on or connect to the loopback address of a protocol family that is not otherwise configured on the system. Also, some implementations (glibc, cough) behave strangely if no other addresses besides 127.0.0.1 and ::1 are configured. A real fix would enhance apr_sockaddr_info_get's interface to allow the caller to specify if he wants to use the address for listen() or connect(), and if he wants to make the result dependant on the presence of non-loopback addresses. Then apr_sockaddr_info_get could pass the right combination of AI_ADDRCONFIG and AI_PASSIVE to getaddrinfo(). As a workaround, retry getaddrinfo() without AI_ADDRCONFIG in case of EAI_ADDRFAMILY. This solves the most common problems but not all corner cases. PR: 52709 Submitted by: Nirgal Vourgère <jmv_deb nirgal com>, Stefan Fritsch Many thanks also to Aurelien Jarno for helping to debug this. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1343233 13f79535-47bb-0310-9956-ffa450edef68
* If we retry getaddrinfo() without AI_ADDRCONFIG, we should really only removesf2012-05-211-2/+2
| | | | | | | | | | AI_ADDRCONFIG and not all flags. When the retry logic was added in r64571, this was equivalent because not other flags were set. But this has changed since then. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1341196 13f79535-47bb-0310-9956-ffa450edef68
* add attribute alloc_size to a few functionssf2012-05-212-2/+16
| | | | | | | This allows gcc's -D_FORTIFY_SOURCE=2 to do some overflow checks git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1341193 13f79535-47bb-0310-9956-ffa450edef68
* Hurd's sendfile works like Linux'ssf2012-05-191-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1340470 13f79535-47bb-0310-9956-ffa450edef68
* Update hints for hurdsf2012-05-181-3/+3
| | | | | | | Submitted by: Pino Toscano <pino debian org>, Stefan Fritsch git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1340288 13f79535-47bb-0310-9956-ffa450edef68
* Make mkdir.sh save to use in parallel builds:sf2012-05-181-1/+7
| | | | | | | | Don't fail if a formerly missing directory has been created by another process in the meantime. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1340286 13f79535-47bb-0310-9956-ffa450edef68
* And some more NetWare tweaks (forgotten files).fuankg2012-05-032-10/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1333282 13f79535-47bb-0310-9956-ffa450edef68
* Few more NetWare build tweaks.fuankg2012-05-031-19/+22
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1333274 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build tweaks to enable nlmconv linker.fuankg2012-05-0218-96/+138
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1333202 13f79535-47bb-0310-9956-ffa450edef68
* Switch pgsql module from PQescapeString (which pgsql now deprecates)niq2012-04-181-1/+1
| | | | | | | to PQescapeStringConn git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1327636 13f79535-47bb-0310-9956-ffa450edef68
* mention z/OS fancy apr_pollset_poll support, needed by httpd's Event MPMgregames2012-04-131-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1325955 13f79535-47bb-0310-9956-ffa450edef68
* z/OS "threadsafe" apr_pollset_poll depends on async i/o feeding angregames2012-04-135-16/+36
| | | | | | | | IPC message queue. Create a configure test for that combo and test it elsewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1325944 13f79535-47bb-0310-9956-ffa450edef68
* Simplify internal do_mcast_opt option path. No need for double checks and ↵mturk2012-04-041-7/+3
| | | | | | double code git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1309379 13f79535-47bb-0310-9956-ffa450edef68
* Make sure the IPv4 setsockopt also uses 4 byte optval type.mturk2012-04-041-5/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1309376 13f79535-47bb-0310-9956-ffa450edef68
* ... and update changelog for mcast TTL fixmturk2012-04-041-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1309344 13f79535-47bb-0310-9956-ffa450edef68
* Add testsuite for r1309332 fixmturk2012-04-041-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1309336 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr_mcast_hops returning EINVAL for IPv6 sockets. The soket option value ↵mturk2012-04-041-1/+2
| | | | | | is supposed to be 4 not 1 byte. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1309332 13f79535-47bb-0310-9956-ffa450edef68
* qualify another HAVE_AIO_H referencegregames2012-04-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308950 13f79535-47bb-0310-9956-ffa450edef68
* one more HAVE_AIO_H that is intented for z/OS onlygregames2012-04-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308938 13f79535-47bb-0310-9956-ffa450edef68
* apr buildbot is dying trying to compile z/OS unique source. apparently it gregames2012-04-032-4/+4
| | | | | | | found an aio.h header file. add a test for the intended platform too. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308923 13f79535-47bb-0310-9956-ffa450edef68
* support for thread-hopping apr_pollset_* using z/OS async i/o. gregames2012-04-035-1/+761
| | | | | | | no support for apr_pollcb yet. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308910 13f79535-47bb-0310-9956-ffa450edef68
* And now take it all out again.minfrin2012-04-021-7/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308329 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Ensure that the if/else that governs the staticminfrin2012-04-022-3/+7
| | | | | | | | initialisation of each crypto driver works when the first driver isn't in use. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308318 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Ensure the *driver variable is initialised when a staticallyminfrin2012-04-011-5/+6
| | | | | | | compiled library is initialised for the first time. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308131 13f79535-47bb-0310-9956-ffa450edef68
* Pass through the EXTRA_OBJECTS into the build. Allows the DSO modules to beminfrin2012-04-011-2/+3
| | | | | | | built statically. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308127 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Ensure the *driver variable is initialised when the libraryminfrin2012-04-012-15/+10
| | | | | | | has already been loaded. Fix ported from apr_dbd. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308087 13f79535-47bb-0310-9956-ffa450edef68
* Use _WIN64 instead of WIN64 (compiler define vs. SDK define)trawick2012-03-012-3/+3
| | | | | | | | | | | in .c/.h. WIN64 wasn't defined, resulting in crashes in httpd. PR: 49155 Submitted by: <anindyabaruah gmail.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1295535 13f79535-47bb-0310-9956-ffa450edef68
* Reserve a range of USERERR values for HTTPDsf2012-02-041-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1240472 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1237078 partially: do not hash the hash.bojan2012-01-291-7/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1237507 13f79535-47bb-0310-9956-ffa450edef68
* Fix doxygen typos in apr_buckets.h.bojan2012-01-291-5/+5
| | | | | | | Patch by Hiroaki KAWAI <kawai at apache.org>. PR: 52521. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1237208 13f79535-47bb-0310-9956-ffa450edef68
* Further improve hash randomisation:bojan2012-01-281-14/+10
| | | | | | | | Fix naming of a static function. Randomise final hash produced by any hash function, using default hash function and seed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1237078 13f79535-47bb-0310-9956-ffa450edef68