How to access client certificate PEM and incoming request headers in a module?

2012-06-17 Thread ohaya
Hi, I am starting to look into implementing an Apache module that can use information from an incoming request, including several headers and the subject string from a client certificate to do authentication. I've been looking at the source for mod_auth_certificate, from

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-17 Thread Ben Noordhuis
On Sun, Jun 17, 2012 at 9:46 PM, oh...@cox.net wrote: Hi, I am starting to look into implementing an Apache module that can use information from an incoming request, including several headers and the subject string from a client certificate to do authentication. I've been looking at the

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-17 Thread ohaya
Ben Noordhuis i...@bnoordhuis.nl wrote: On Sun, Jun 17, 2012 at 9:46 PM, oh...@cox.net wrote: Hi, I am starting to look into implementing an Apache module that can use information from an incoming request, including several headers and the subject string from a client

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-17 Thread ohaya
oh...@cox.net wrote: Ben Noordhuis i...@bnoordhuis.nl wrote: On Sun, Jun 17, 2012 at 9:46 PM, oh...@cox.net wrote: Hi, I am starting to look into implementing an Apache module that can use information from an incoming request, including several headers and the

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-17 Thread Ben Noordhuis
On Mon, Jun 18, 2012 at 5:45 AM, oh...@cox.net wrote: I haven't actually tried your suggestion yet, but, re. the SSL variables, I was looking at mod_headers.c, and in there, there are two separate functions: static const char *header_request_env_var(request_rec *r, char *a) {    const char