Clere Jean-Frederic FSC EP LP COM 5 wrote:
>
> "Kraemer, Martin" wrote:
> >
> > It appears that nobody really ever uses (or even compiles) this module.
>
> It seems so,
Oops, Sorry that is just a small problem in configure...
mod_tls should also check for some openssl-0.9.6 routines like
ERR_error_string_n() because it uses it! (Therefore I will go on tomorrow
because I have to install a new openssl).
To get mod_tls compiled was a matter of some minutes... (But will it works ;=)!)
Patches:
+++
===================================================================
RCS file: /home/cvs/apache/httpd-2.0/modules/tls/mod_tls.c,v
retrieving revision 1.5
diff -u -r1.5 mod_tls.c
--- mod_tls.c 2001/04/22 22:19:31 1.5
+++ mod_tls.c 2001/04/25 16:51:39
@@ -280,6 +280,7 @@
{
TLSFilterCtx *pCtx=f->ctx;
apr_bucket *pbktIn;
+ apr_size_t zero = 0;
APR_BRIGADE_FOREACH(pbktIn,pbbIn) {
const char *data;
@@ -295,7 +296,7 @@
ret=churn_output(pCtx);
if(ret != APR_SUCCESS)
return ret;
- ret=churn(pCtx,APR_NONBLOCK_READ);
+ ret=churn(pCtx,APR_NONBLOCK_READ,&zero);
if(ret != APR_SUCCESS)
if(ret == APR_EOF)
return APR_SUCCESS;
@@ -307,7 +308,7 @@
if(APR_BUCKET_IS_FLUSH(pbktIn)) {
// assume that churn will flush (or already has) if there's output
- ret=churn(pCtx,APR_NONBLOCK_READ);
+ ret=churn(pCtx,APR_NONBLOCK_READ,&zero);
if(ret != APR_SUCCESS)
return ret;
continue;
+++
In configure a is little more is need (openssl version check, someone have to do
it):
+++
Index: config.m4
===================================================================
RCS file: /home/cvs/apache/httpd-2.0/modules/tls/config.m4,v
retrieving revision 1.3
diff -u -r1.3 config.m4
--- config.m4 2001/02/12 16:50:21 1.3
+++ config.m4 2001/04/25 16:53:43
@@ -18,10 +18,10 @@
LIBS="$LIBS -L$withval -lssl -lcrypto"
ssl_lib="OpenSSL"
else
- searchfile="$withval/openssl/ssl.h"
+ searchfile="$withval/include/openssl/ssl.h"
if test -f $searchfile ; then
- INCLUDES="$INCLUDES -I$withval/openssl"
- LIBS="$LIBS -L$withval -lssl -lcrypto"
+ INCLUDES="$INCLUDES -I$withval/include"
+ LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
ssl_lib="OpenSSL"
else
AC_MSG_ERROR(no - Unable to locate $withval/inc/ssl.h)
+++
Cheek it and commit it.
Cheers
Jean-frederic
+++ CUT +++