1
/* Licensed to the Apache Software Foundation (ASF) under one or more
2
* contributor license agreements. See the NOTICE file distributed with
3
* this work for additional information regarding copyright ownership.
4
* The ASF licenses this file to You under the Apache License, Version 2.0
5
* (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
19
* @brief SSL extension module for Apache
21
* @defgroup MOD_SSL mod_ssl
22
* @ingroup APACHE_MODS
30
#include "apr_optional.h"
32
/** The ssl_var_lookup() optional function retrieves SSL environment
34
APR_DECLARE_OPTIONAL_FN(char *, ssl_var_lookup,
35
(apr_pool_t *, server_rec *,
36
conn_rec *, request_rec *,
39
/** The ssl_ext_lookup() optional function retrieves the value of a SSL
40
* certificate X.509 extension. The client certificate is used if
41
* peer is non-zero; the server certificate is used otherwise. The
42
* oidnum parameter specifies the numeric OID (e.g. "1.2.3.4") of the
43
* desired extension. The string value of the extension is returned,
44
* or NULL on error. */
45
APR_DECLARE_OPTIONAL_FN(const char *, ssl_ext_lookup,
46
(apr_pool_t *p, conn_rec *c, int peer,
49
/** An optional function which returns non-zero if the given connection
50
* is using SSL/TLS. */
51
APR_DECLARE_OPTIONAL_FN(int, ssl_is_https, (conn_rec *));
53
/** The ssl_proxy_enable() and ssl_engine_disable() optional functions
54
* are used by mod_proxy to enable use of SSL for outgoing
57
APR_DECLARE_OPTIONAL_FN(int, ssl_proxy_enable, (conn_rec *));
59
APR_DECLARE_OPTIONAL_FN(int, ssl_engine_disable, (conn_rec *));
61
APR_DECLARE_OPTIONAL_FN(apr_array_header_t *, ssl_extlist_by_oid, (request_rec *r, const char *oidstr));
63
#endif /* __MOD_SSL_H__ */