On Tue, Nov 16, 1999, [EMAIL PROTECTED] wrote:

> > In a content handler (written with the C API) I want to check whether
> > the current transaction goes via SSL or not.
> > What is the best method to do this?
> 
>         if (ap_ctx_get(r->connection->client->ctx, "ssl") != NULL)
>                 ssl;
>         else
>                 no ssl;

Yes, or even more defensive:

| #ifdef EAPI
|     if (ap_ctx_get(r->connection->client->ctx, "ssl") != NULL)
|         <ssl>;
|     else
| #endif
|         <no ssl>;
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to