Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
33 /* Create a set of SSL_DECLARE(type), SSL_DECLARE_NONSTD(type) and
34  * SSL_DECLARE_DATA with appropriate export and import tags for the platform
35  */
36 #if !defined(WIN32)
37 #define SSL_DECLARE(type) type
38 #define SSL_DECLARE_NONSTD(type) type
39 #define SSL_DECLARE_DATA
40 #elif defined(SSL_DECLARE_STATIC)
41 #define SSL_DECLARE(type) type __stdcall
42 #define SSL_DECLARE_NONSTD(type) type
43 #define SSL_DECLARE_DATA
44 #elif defined(SSL_DECLARE_EXPORT)
45 #define SSL_DECLARE(type) __declspec(dllexport) type __stdcall
46 #define SSL_DECLARE_NONSTD(type) __declspec(dllexport) type
47 #define SSL_DECLARE_DATA __declspec(dllexport)
48 #else
49 #define SSL_DECLARE(type) __declspec(dllimport) type __stdcall
50 #define SSL_DECLARE_NONSTD(type) __declspec(dllimport) type
51 #define SSL_DECLARE_DATA __declspec(dllimport)
52 #endif
53 
57  (apr_pool_t *, server_rec *,
58  conn_rec *, request_rec *,
59  char *));
60 
73  (apr_pool_t *p, conn_rec *c, int peer,
74  const char *extension));
75 
79 
86  (apr_pool_t *p, conn_rec *c, const char *type,
87  unsigned char **buf, apr_size_t *size));
88 
97  int proxy, int enable));
98 
99 #endif /* __MOD_SSL_H__ */
100 
size_t apr_size_t
Definition: apr.h:375
int ssl_engine_set(conn_rec *, ap_conf_vector_t *, int proxy, int enable)
Apache Configuration.
Definition: apr_tables.h:62
char * ssl_var_lookup(apr_pool_t *, server_rec *, conn_rec *, request_rec *, char *)
Structure to store things which are per connection.
Definition: httpd.h:1110
dav_buffer apr_size_t size
Definition: mod_dav.h:461
APR-UTIL registration of functions exported by modules.
HTTP Daemon routines.
A structure to store information for each virtual server.
Definition: httpd.h:1302
apr_array_header_t * ssl_ext_list(apr_pool_t *p, conn_rec *c, int peer, const char *extension)
int ssl_proxy_enable(conn_rec *)
int ssl_is_https(conn_rec *)
apr_pool_t * p
apr_status_t ssl_get_tls_cb(apr_pool_t *p, conn_rec *c, const char *type, unsigned char **buf, apr_size_t *size)
A structure that represents the current request.
Definition: httpd.h:805
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
int ssl_engine_disable(conn_rec *)
struct ap_conf_vector_t ap_conf_vector_t
Definition: http_config.h:510