diff options
| -rw-r--r-- | configure.ac | 4 | ||||
| -rw-r--r-- | include/memcache.h | 402 | ||||
| -rw-r--r-- | include/mod_gnutls.h | 12 | ||||
| -rw-r--r-- | src/Makefile.am | 2 | ||||
| -rw-r--r-- | src/gnutls_cache.c | 206 | ||||
| -rw-r--r-- | src/gnutls_io.c | 30 | ||||
| -rw-r--r-- | src/mod_gnutls.c | 46 |
7 files changed, 258 insertions, 444 deletions
diff --git a/configure.ac b/configure.ac index 1a72b8c..001f145 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -24,8 +24,8 @@ CHECK_LIBGNUTLS($MIN_TLS_VERSION) | |||
| 24 | 24 | ||
| 25 | CHECK_APR_MEMCACHE() | 25 | CHECK_APR_MEMCACHE() |
| 26 | 26 | ||
| 27 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" | 27 | MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}" |
| 28 | MODULE_LIBS="${LIBGNUTLS_LIBS} ${APR_MEMCACHE_LIBS}" | 28 | MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}" |
| 29 | 29 | ||
| 30 | AC_SUBST(MODULE_CFLAGS) | 30 | AC_SUBST(MODULE_CFLAGS) |
| 31 | AC_SUBST(MODULE_LIBS) | 31 | AC_SUBST(MODULE_LIBS) |
diff --git a/include/memcache.h b/include/memcache.h deleted file mode 100644 index b11bf4c..0000000 --- a/include/memcache.h +++ /dev/null | |||
| @@ -1,402 +0,0 @@ | |||
| 1 | /* Copyright (c) 2004 Sean Chittenden <sean@chittenden.org> | ||
| 2 | * | ||
| 3 | * All rights reserved until such time as this code is released with | ||
| 4 | * an official license. Use of this code for commerical, | ||
| 5 | * non-commercial, and personal purposes is encouraged. Public forks | ||
| 6 | * of this code is permitted so long as the fork and its decendents | ||
| 7 | * use this copyright/license. Use of this software in programs | ||
| 8 | * released under the GPL programs is expressly prohibited by the | ||
| 9 | * author (ie, BSD, closed source, or artistic license is okay, but | ||
| 10 | * GPL is not). */ | ||
| 11 | |||
| 12 | #ifndef MEMCACHE_H | ||
| 13 | #define MEMCACHE_H | ||
| 14 | |||
| 15 | #include <netdb.h> | ||
| 16 | #include <sys/queue.h> | ||
| 17 | #include <sys/types.h> | ||
| 18 | #include <sys/time.h> | ||
| 19 | #include <unistd.h> | ||
| 20 | |||
| 21 | #ifdef __cplusplus | ||
| 22 | extern "C" { | ||
| 23 | #endif | ||
| 24 | |||
| 25 | /* Our initial read(2) buffer has to be long enough to read the | ||
| 26 | * first line of the response. ie: | ||
| 27 | * | ||
| 28 | * "VALUE #{'k' * 250} #{2 ** 15} #{2 ** 32}\r\n.length => 275 | ||
| 29 | * | ||
| 30 | * However, since we want to avoid the number of system calls | ||
| 31 | * necessary, include trailing part of the protocol in our estimate: | ||
| 32 | * | ||
| 33 | * "\r\nEND\r\n".length => 7 | ||
| 34 | * | ||
| 35 | * Which yields a manditory limit of 282 bytes for a successful | ||
| 36 | * response. If we wish to try and get lucky with our first read(2) | ||
| 37 | * call and be able to read(2) in small values without making a second | ||
| 38 | * read(2) call, pad this number with a sufficiently large byte value. | ||
| 39 | * If most of your keys are 512B, then a GET_INIT_BUF_SIZE of 794 | ||
| Nokis Mavrogiannopoulos | 2007-12-08 | ||
| * | added more error checks. | 2007-12-03 | |
| * | better handling of RSAFile and DHFile | 2007-12-03 | |
| * | report the missing GnuTLSPriorities for the gnutls enabled hosts only. | 2007-12-02 | |
| * | No more defaults for dhparams, rsaparams. Check for GnuTLSPriorities. | 2007-12-02 | |
| * | The compatibility mode can now be enabled only using the GnuTLSPriorities str... | 2007-12-02 | |
| * | (no commit message) | 2007-12-02 | |
| * | added SSL_SERVER/CLIENT_S_TYPE | 2007-12-02 | |
| * | export the alternative names of the certificate | 2007-12-02 | |
