Apache2
mod_ssl_openssl.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_OPENSSL_H__
27 #define __MOD_SSL_OPENSSL_H__
28 
29 #include "mod_ssl.h"
30 
31 /* OpenSSL headers */
32 
33 #include <openssl/opensslv.h>
34 #if OPENSSL_VERSION_NUMBER >= 0x30000000
35 #include <openssl/macros.h> /* for OPENSSL_API_LEVEL */
36 #endif
37 #if OPENSSL_VERSION_NUMBER >= 0x10001000
38 /* must be defined before including ssl.h */
39 #define OPENSSL_NO_SSL_INTERN
40 #endif
41 #include <openssl/ssl.h>
42 #include <openssl/evp.h>
43 #include <openssl/x509.h>
44 
54 APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, init_server,
55  (server_rec *s, apr_pool_t *p, int is_proxy, SSL_CTX *ctx))
56 
57 
63 APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, pre_handshake,
64  (conn_rec *c, SSL *ssl, int is_proxy))
65 
66 
72 APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, proxy_post_handshake,
73  (conn_rec *c, SSL *ssl))
74 
75 
79 APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, answer_challenge,
80  (conn_rec *c, const char *server_name,
81  X509 **pcert, EVP_PKEY **pkey))
82 
83 
91 APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, init_stapling_status,
92  (server_rec *s, apr_pool_t *p,
93  X509 *cert, X509 *issuer))
94 
95 
111 APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, get_stapling_status,
112  (unsigned char **pder, int *pderlen,
113  conn_rec *c, server_rec *s, X509 *cert))
114 
115 #endif /* __MOD_SSL_OPENSSL_H__ */
#define APR_DECLARE_EXTERNAL_HOOK(ns, link, ret, name, args)
Definition: apr_hooks.h:118
const char * s
Definition: mod_dav.h:1327
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
SSL extension module for Apache.
Structure to store things which are per connection.
Definition: httpd.h:1193
A structure to store information for each virtual server.
Definition: httpd.h:1382
apr_pool_t * p