[Mod-auth-devel] patch for mod_authn_pop3 for httpd-2.0
Brought to you by:
firechipmunk,
honx
From: Matthew L D. <md...@sc...> - 2005-11-07 17:42:31
|
You'll forgive me if this is old news, as I just stumbled across the module via Google. It did not compile against my httpd-2.0.54 so I used mod_auth_dbm as an example and hacked upon it until it did compile. The autotools based compilation was completely hosed in my case, but > /usr/sbin/apxs -c mod_authn_pop3.c yieled: > mod_authn_pop3.c:37:22: error: mod_auth.h: No such file or directory > mod_authn_pop3.c: In function 'pop_auth': > mod_authn_pop3.c:158: error: too many arguments to function 'apr_socket_create' > mod_authn_pop3.c: At top level: > mod_authn_pop3.c:230: error: syntax error before 'check_pop3_pw' > mod_authn_pop3.c: In function 'check_pop3_pw': > mod_authn_pop3.c:238: error: 'struct <anonymous>' has no member named 'serverhostname' > mod_authn_pop3.c:238: error: 'struct <anonymous>' has no member named 'port' > mod_authn_pop3.c:245: error: 'AUTH_GRANTED' undeclared (first use in this function) > mod_authn_pop3.c:245: error: (Each undeclared identifier is reported only once > mod_authn_pop3.c:245: error: for each function it appears in.) > mod_authn_pop3.c:249: error: 'AUTH_DENIED' undeclared (first use in this function) > mod_authn_pop3.c: At top level: > mod_authn_pop3.c:253: error: syntax error before 'get_pop3_realm_hash' > mod_authn_pop3.c: In function 'get_pop3_realm_hash': > mod_authn_pop3.c:260: error: 'AUTH_DENIED' undeclared (first use in this function) > mod_authn_pop3.c: At top level: > mod_authn_pop3.c:263: error: syntax error before 'authn_pop3_provider' > mod_authn_pop3.c:264: warning: initialization makes integer from pointer without a cast > mod_authn_pop3.c:264: error: initializer element is not computable at load time > mod_authn_pop3.c:264: error: (near initialization for 'authn_pop3_provider') > mod_authn_pop3.c:266: warning: excess elements in scalar initializer > mod_authn_pop3.c:266: warning: (near initialization for 'authn_pop3_provider') > mod_authn_pop3.c:266: warning: data definition has no type or storage class > mod_authn_pop3.c: In function 'register_hooks': > mod_authn_pop3.c:270: error: 'AUTHN_PROVIDER_GROUP' undeclared (first use in this function) > apxs:Error: Command failed with rc=65536 In the spirit of the APL 2.0, I wanted to submit my changes back in case someone else was interested. I release all rights and ownership of this patch. Thanks to the original authors for a great starting point, -- /v\atthew |