Simple MPM is in trunk

2008-10-28 Thread Paul Querna
I've added the Simple MPM to trunk: https://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/simple/ It isn't a fork on the previous MPMs, it is a about as clean room as it can get, and tries to keep every part of the MPM compartmentalized. At the same time it uses APR and APR-Util as much

AW: svn commit: r708144 - /httpd/httpd/trunk/server/core_filters.c

2008-10-28 Thread Plüm, Rüdiger, VF-Group
-Ursprüngliche Nachricht- Von: Paul Querna Gesendet: Dienstag, 28. Oktober 2008 04:35 An: dev@httpd.apache.org Cc: [EMAIL PROTECTED] Betreff: Re: svn commit: r708144 - /httpd/httpd/trunk/server/core_filters.c [EMAIL PROTECTED] wrote: Author: rpluem Date: Mon Oct 27

Re: Simple MPM is in trunk

2008-10-28 Thread Takashi Sato
I built trunk with --with-mpm=simple, and I have found : * simple_io.c line 111 and 145 cause a build falure with --enable-maintainer-mode . * simple_children.c should include simple_children.h. * simple_io_timeot_cb should be static.

Re: Simple MPM is in trunk

2008-10-28 Thread Graham Leggett
Paul Querna wrote: What is on purpose: - SimpleProcCount and SimpleThreadCount. I hate MaxClients, MinSpareThreads, MaxSpareThreads, ThreadsPerChild, ThreadLimit, StartServers, StartThreads, and ServerLimit. They are all going to die in 2.4. Simplification is good :) How will the simple

Help: Extending an add on module

2008-10-28 Thread Christian Klinger
Hi, i try to extend an already existing apache module mod_auth_tkt! mod_auth_tkt reads from a cookie login information and additional user data. The login-information in cookie is a md5 hash. The additional data are in plain text. Now i set the additional data in the cookie as a blowfish

Re: Simple MPM is in trunk

2008-10-28 Thread Rich Bowen
On Oct 28, 2008, at 03:12, Paul Querna wrote: What is on purpose: - SimpleProcCount and SimpleThreadCount. I hate MaxClients, MinSpareThreads, MaxSpareThreads, ThreadsPerChild, ThreadLimit, StartServers, StartThreads, and ServerLimit. They are all going to die in 2.4. Thoughts?

How can i decrypt a cookie in a module

2008-10-28 Thread Christian Klinger
Hello, how can i decrypt a blowfish sigend cookie in an module. I have tried to do this so far: mod_auth_tkt is the module which should decrypt the cookie. I have included openssl/blowfish in the mod_auth_tkt.c #include openssl/blowfish.h I try to get my key config with this command:

Re: Help: Extending an add on module

2008-10-28 Thread Nick Kew
On Tue, 28 Oct 2008 12:08:57 +0100 Christian Klinger [EMAIL PROTECTED] wrote: Cannot load /opt/apache/server/modules/mod_auth_tkt.so into server: /opt/apache/server/modules/mod_auth_tkt.so: undefined symbol: BF_Decrypt See the LoadFile directive. Use it to load the library that exports the

Re: Help: Extending an add on module

2008-10-28 Thread Christian Klinger
Nick Kew schrieb: On Tue, 28 Oct 2008 12:08:57 +0100 Christian Klinger [EMAIL PROTECTED] wrote: Cannot load /opt/apache/server/modules/mod_auth_tkt.so into server: /opt/apache/server/modules/mod_auth_tkt.so: undefined symbol: BF_Decrypt See the LoadFile directive. Use it to load the

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Peter Poeml
On Tue, Oct 28, 2008 at 12:35:51PM +0100, Christian Klinger wrote: Hello, how can i decrypt a blowfish sigend cookie in an module. I have tried to do this so far: mod_auth_tkt is the module which should decrypt the cookie. I have included openssl/blowfish in the mod_auth_tkt.c

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Christian Klinger
The symbol BF_Decrypt is probably to be found in libcrypto from OpenSSL. When mod_auth_tkt was compiled, it was not linked with that library. So either you need to add -lcrypto to the compile command, or you can alternatively start Apache with the LoadFile directive, which will cause

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Dave Ingram
Christian Klinger wrote: thanks for the answers, but i don´t get it. I try to add the Icrypto in my Makefile i get the error again: [snip] That's a font issue - it's actually a lowercase L (for library) rather than an uppercase i (for include directory). What file should i include to the

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Peter Poeml
On Tue, Oct 28, 2008 at 02:12:26PM +0100, Christian Klinger wrote: The symbol BF_Decrypt is probably to be found in libcrypto from OpenSSL. When mod_auth_tkt was compiled, it was not linked with that library. So either you need to add -lcrypto to the compile command, or you can

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Christian Klinger
Am 28.10.2008 um 14:30 schrieb Peter Poeml: On Tue, Oct 28, 2008 at 02:12:26PM +0100, Christian Klinger wrote: The symbol BF_Decrypt is probably to be found in libcrypto from OpenSSL. When mod_auth_tkt was compiled, it was not linked with that library. So either you need to add -lcrypto

Re: Simple MPM is in trunk

2008-10-28 Thread Nick Kew
On Tue, 28 Oct 2008 00:12:51 -0700 Paul Querna [EMAIL PROTECTED] wrote: I've added the Simple MPM to trunk: https://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/simple/ One central part of interest (simplified): int simple_child_loop(simple_core_t *sc) { simple_setup_workers(sc);

Re: Simple MPM is in trunk

2008-10-28 Thread Paul Querna
Takashi Sato wrote: I built trunk with --with-mpm=simple, and I have found : * simple_io.c line 111 and 145 cause a build falure with --enable-maintainer-mode . * simple_children.c should include simple_children.h. * simple_io_timeot_cb should be static. Fixed in trunk, r708599. Thanks,

Re: Simple MPM is in trunk

2008-10-28 Thread Paul Querna
Nick Kew wrote: On Tue, 28 Oct 2008 00:12:51 -0700 Paul Querna [EMAIL PROTECTED] wrote: I've added the Simple MPM to trunk: https://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/simple/ One central part of interest (simplified): int simple_child_loop(simple_core_t *sc) {

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread Ruediger Pluem
On 10/28/2008 08:00 AM, [EMAIL PROTECTED] wrote: Author: pquerna Date: Tue Oct 28 00:00:15 2008 New Revision: 708462 URL: http://svn.apache.org/viewvc?rev=708462view=rev Log: Add a work in progress, a completely new, Simple MPM. Added: httpd/httpd/trunk/server/mpm/simple/ (with

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread Paul Querna
Ruediger Pluem wrote: On 10/28/2008 08:00 AM, [EMAIL PROTECTED] wrote: Author: pquerna Date: Tue Oct 28 00:00:15 2008 New Revision: 708462 URL: http://svn.apache.org/viewvc?rev=708462view=rev Log: Add a work in progress, a completely new, Simple MPM. Added:

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread André Malo
* Paul Querna wrote: Ruediger Pluem wrote: This does not work on ANSI C compilers. Declarations need to be at the start of the block. Then lets not support them. C90 required that variable decls came before code, but IIRC C99 style mid-function declarations should work on pretty much

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread Paul Querna
André Malo wrote: * Paul Querna wrote: Ruediger Pluem wrote: This does not work on ANSI C compilers. Declarations need to be at the start of the block. Then lets not support them. C90 required that variable decls came before code, but IIRC C99 style mid-function declarations should work

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread Paul Querna
Paul Querna wrote: André Malo wrote: * Paul Querna wrote: Ruediger Pluem wrote: This does not work on ANSI C compilers. Declarations need to be at the start of the block. Then lets not support them. C90 required that variable decls came before code, but IIRC C99 style mid-function

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Peter Poeml
Hi Christian, On Tue, Oct 28, 2008 at 02:45:05PM +0100, Christian Klinger wrote: now i have the -lssl and -lcrypt in the gcc command but i alwas get the same error again. With the same error, you mean the same symbol is still missing when you run Apache and use the modules functionality?

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread Takashi Sato
On Tue, 28 Oct 2008 16:16:38 -0700 Paul Querna [EMAIL PROTECTED] wrote: Paul Querna wrote: André Malo wrote: * Paul Querna wrote: Ruediger Pluem wrote: This does not work on ANSI C compilers. Declarations need to be at the start of the block. Then lets not support them. C90

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread Paul Querna
Takashi Sato wrote: On Tue, 28 Oct 2008 16:16:38 -0700 Paul Querna [EMAIL PROTECTED] wrote: Paul Querna wrote: André Malo wrote: * Paul Querna wrote: Ruediger Pluem wrote: This does not work on ANSI C compilers. Declarations need to be at the start of the block. Then lets not support

Re: Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread whiye_hust
发件人: Paul Querna 发送时间: 2008-10-29 07:17:45 收件人: dev 抄送: 主题: Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/ Paul Querna wrote: André Malo wrote: * Paul Querna wrote: Ruediger Pluem wrote: This does not work on ANSI C compilers. Declarations need to be at the

Re: svn commit: r708462 - in /httpd/httpd/trunk/server/mpm: ./ simple/

2008-10-28 Thread William A. Rowe, Jr.
Paul Querna wrote: Takashi Sato wrote: int main(){ puts(); int a = 0; return 0; } does not compile with error C2143. thats lame. Can we just use c++ yet? Guess I'll go through all the code and fix this. Especially considering the MS doesn't have a C compiler, they use