It looks like the EAPI is probably the way to go here.  I can just retrieve the
SSL variables the same way mod_rewrite does - using the
ap::mod_rewrite::lookup_variable extension function.

jeff



"Jeff W. Boote" wrote:
> 
> Is there a standard way to detect if a given connection is taking place over
> https from another apache module? (It looks like the r->process_env table is
> used to do this from mod_rewrite and mod_log_config - at least if I'm
> understanding the source correctly.)
> 
> I am trying to develop an authentication module - FakeBasicAuth doesn't cut it
> for my purposes.  And, I want to make sure that the connection from the browser
> is taking place over SSL. I have looked in the r->process_env and the r->notes
> area from my user_auth hook, but there is nothing set in those tables by this
> phase.
> 
> I'm wondering if I am going to need to use the ap_ctx of the connection, but it
> has been almost two years since I did any apache development, and I have not
> quite figured out the EAPI yet.  (Is there documentation on the EAPI? It doesn't
> look like there has been any additional apache API documentation in the past two
> years...) Is this where I'm going to have to go?  Or worse yet, do I need to
> include header files from the mod_ssl source tree and start poking around in
> mod_ssl's data structures... (I would really rather not.)
> 
> Thanks,
> jeff
> --
> Jeff W. Boote  <[EMAIL PROTECTED]>      The more that you read, the more
> Software Engineer                    things you will know.  The more
> VETS/SCD/NCAR                        that you learn, the more places
> Boulder, Colorado, USA               you'll go.        Dr. Suess
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]

-- 
Jeff W. Boote  <[EMAIL PROTECTED]>      The more that you read, the more
Software Engineer                    things you will know.  The more
VETS/SCD/NCAR                        that you learn, the more places
Boulder, Colorado, USA               you'll go.        Dr. Suess
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to