Apache HTTPD
mod_ssl.h
Go to the documentation of this file.
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
26#ifndef __MOD_SSL_H__
27#define __MOD_SSL_H__
28
29#include "httpd.h"
30#include "http_config.h"
31#include "apr_optional.h"
32#include "apr_tables.h" /* for apr_array_header_t */
33
34/* Create a set of SSL_DECLARE(type), SSL_DECLARE_NONSTD(type) and
35 * SSL_DECLARE_DATA with appropriate export and import tags for the platform
36 */
37#if !defined(WIN32)
38#define SSL_DECLARE(type) type
39#define SSL_DECLARE_NONSTD(type) type
40#define SSL_DECLARE_DATA
41#elif defined(SSL_DECLARE_STATIC)
42#define SSL_DECLARE(type) type __stdcall
43#define SSL_DECLARE_NONSTD(type) type
44#define SSL_DECLARE_DATA
45#elif defined(SSL_DECLARE_EXPORT)
46#define SSL_DECLARE(type) __declspec(dllexport) type __stdcall
47#define SSL_DECLARE_NONSTD(type) __declspec(dllexport) type
48#define SSL_DECLARE_DATA __declspec(dllexport)
49#else
50#define SSL_DECLARE(type) __declspec(dllimport) type __stdcall
51#define SSL_DECLARE_NONSTD(type) __declspec(dllimport) type
52#define SSL_DECLARE_DATA __declspec(dllimport)
53#endif
54
60 char *));
61
74 (apr_pool_t *p, conn_rec *c, int peer,
75 const char *extension));
76
80
89 int proxy, int enable));
90
91/* Check for availability of new hooks */
92#define SSL_CERT_HOOKS
93#ifdef SSL_CERT_HOOKS
94
102 apr_array_header_t *cert_files,
104
105
114 apr_array_header_t *cert_files,
116
117#endif /* SSL_CERT_HOOKS */
118
119#endif /* __MOD_SSL_H__ */
APR-UTIL registration of functions exported by modules.
APR Table library.
struct ap_conf_vector_t ap_conf_vector_t
#define APR_DECLARE_EXTERNAL_HOOK(ns, link, ret, name, args)
Definition apr_hooks.h:118
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
char * ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, char *var)
Definition mod_nw_ssl.c:956
apr_array_header_t * ssl_ext_list(apr_pool_t *p, conn_rec *c, int peer, const char *extension)
apr_size_t size
apr_vformatter_buff_t * c
Definition apr_lib.h:175
const char * s
Definition apr_strings.h:95
Apache Configuration.
HTTP Daemon routines.
apr_pool_t * p
Definition md_event.c:32
static int ssl_is_https(conn_rec *c)
Definition mod_nw_ssl.c:948
int ssl_proxy_enable(conn_rec *c)
Definition mod_nw_ssl.c:936
int ssl_engine_disable(conn_rec *c)
Definition mod_nw_ssl.c:943
static int ssl_engine_set(conn_rec *c, ap_conf_vector_t *per_dir_config, int proxy, int enable)
Definition ssl.c:99
Structure to store things which are per connection.
Definition httpd.h:1152
A structure that represents the current request.
Definition httpd.h:845
A structure to store information for each virtual server.
Definition httpd.h:1322