RE: [users@httpd] NEED URGENT HELP: Porting to Apache 1.3.x module to Apache2.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have obviously gone through these documents but did not get much
useful information from these links. 

Not exactly step by step how-to, but at least if there is some
information on mapping of old against new APIs/data structures, would
help us go ahead.

If anyone has successfully ported Apache 1.3 module that uses ssl module
functionality for encryption to Apache 2.0 and can provide inputs, would
be of great help. 

Apache 1.3 module uses APIs/data structures for ssl encryption which are
no longer there in Apache2.0's ssl. 

ap_ctx_get/ap_ctx_set are the used in older module to get the global
context from Apache server. Not able to figure out what these should
correspond to in newer version.

This piece of code gives error:::::

static myModuleConfigRec *myModuleConfig(void)
{
ap_pool *sub_pool;
myModuleConfigRec *mc;

do {

if ( (mc = (myModuleConfigRec *) ap_ctx_get(ap_global_ctx,
"pta_module")) ) {
/* Got a valid module context, so we're done here */
break;
}

#ifdef DEBUGMSG
fprintf(stderr, "Creating a my_module global context...pid=[%ld]\n",
(long) getpid());
#endif

/* Otherwise we need to create and initialize one.
* Allocate an own subpool which survives server restarts
* and DSO reloads.
*/
sub_pool = ap_make_sub_pool(NULL);
mc = (myModuleConfigRec *) ap_pcalloc(sub_pool,
sizeof(myModuleConfigRec));
mc->pool = sub_pool;
mc->myModule_init_count = 0;
mc->htable_size = 12;

/* And save it into Apache's global context */
ap_ctx_set(ap_global_ctx, "myModule_module", mc);
} while(0);
return mc;
}

where 

typedef struct {
int myModule_init_count; /* to keep track of how times we're called */
int htable_size;
ap_pool *pool;
} myModuleConfigRec;


since ap_ctx_get and ap_ctx_set are replaced in apache 2.0...

Please provide inputs if anyone has. 

Awaiting replies..

Swati.

-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@xxxxxxx] 
Sent: Thursday, September 22, 2005 6:26 PM
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] NEED URGENT HELP: Porting to Apache 1.3.x
module to Apache2.0

First: please post in plain text.

Second: what was wrong with the docs you were already referred to?
(http://marc.theaimsgroup.com/?l=apache-httpd-users&m=112730868510244&w=
2)

You sound like you're looking for a step-by-step how-to that will avoid
you having to do any work yourself. How do you know such a thing even
exists?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


-----Original Message-----
From: Bankar, Swati [mailto:SBankar@xxxxxxxxxxxx]
Sent: Donnerstag, 22. September 2005 14:49
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] NEED URGENT HELP: Porting to Apache 1.3.x
module to Apache2.0


Hey all..
 
Please post your replies on this!!
Its very urgent. 
 
Swati.
 



From: Bankar, Swati [mailto:SBankar@xxxxxxxxxxxx] 
Sent: Wednesday, September 21, 2005 5:45 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] NEED URGENT HELP: Porting to Apache 1.3.x module
to Apache2.0
 
Hi all,
Am looking for a crisp and complete document to port an Apache 1.3
module (which is a server plugin) to Apache 2.0 module.
There isn't any useful document that I could get from anywhere in net.
This is kind of urgent. Please send it across if you have it. 
Warm Regards,
Swati B.
 
 
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux