Apache2
http_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 APACHE_HTTP_SSL_H
27 #define APACHE_HTTP_SSL_H
28 
29 #include "httpd.h"
30 #include "apr_portable.h"
31 #include "apr_mmap.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 struct ap_conf_vector_t;
38 
47 
48 
53 
69  (conn_rec *c, struct ap_conf_vector_t *dir_conf, int enable_ssl))
70 
82  int require_ssl);
83 
88 
101 AP_DECLARE_HOOK(const char *,ssl_var_lookup,
102  (apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, const char *name))
103 
116  conn_rec *c, request_rec *r,
117  const char *name);
118 
133  apr_array_header_t *cert_files,
134  apr_array_header_t *key_files))
135 
148  apr_array_header_t *cert_files,
149  apr_array_header_t *key_files);
150 
151 
164  apr_array_header_t *cert_files,
165  apr_array_header_t *key_files))
166 
181  apr_array_header_t *cert_files,
182  apr_array_header_t *key_files);
183 
184 
193 AP_DECLARE_HOOK(int, ssl_answer_challenge, (conn_rec *c, const char *server_name,
194  const char **pcert_pem, const char **pkey_pem))
195 
211 AP_DECLARE(int) ap_ssl_answer_challenge(conn_rec *c, const char *server_name,
212  const char **pcert_pem, const char **pkey_pem);
213 
214 
229 
240  const char *id, apr_size_t id_len,
241  const char *pem))
242 
259  const char *id, apr_size_t id_len,
260  const char *pem);
261 
271 typedef void ap_ssl_ocsp_copy_resp(const unsigned char *der, apr_size_t der_len, void *userdata);
272 
283  (server_rec *s, conn_rec *c, const char *id, apr_size_t id_len,
284  ap_ssl_ocsp_copy_resp *cb, void *userdata))
285 
309  const char *id, apr_size_t id_len,
310  ap_ssl_ocsp_copy_resp *cb, void *userdata);
311 
312 #ifdef __cplusplus
313 }
314 #endif
315 
316 #endif /* !APACHE_HTTP_SSL_H */
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
APR MMAP routines.
APR Portability Routines.
struct ap_conf_vector_t ap_conf_vector_t
Definition: http_config.h:512
int ssl_add_cert_files(server_rec *s, apr_pool_t *p, apr_array_header_t *cert_files, apr_array_header_t *key_files)
apr_status_t ap_ssl_ocsp_get_resp(server_rec *s, conn_rec *c, const char *id, apr_size_t id_len, ap_ssl_ocsp_copy_resp *cb, void *userdata)
int ap_ssl_answer_challenge(conn_rec *c, const char *server_name, const char **pcert_pem, const char **pkey_pem)
int ap_ssl_bind_outgoing(conn_rec *c, struct ap_conf_vector_t *dir_conf, int require_ssl)
int ssl_answer_challenge(conn_rec *c, const char *server_name, const char **pcert_pem, const char **pkey_pem)
apr_status_t ap_ssl_add_cert_files(server_rec *s, apr_pool_t *p, apr_array_header_t *cert_files, apr_array_header_t *key_files)
const char * ap_ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, const char *name)
void ap_setup_ssl_optional_fns(apr_pool_t *pool)
int ssl_ocsp_get_resp_hook(server_rec *s, conn_rec *c, const char *id, apr_size_t id_len, ap_ssl_ocsp_copy_resp *cb, void *userdata)
int ssl_ocsp_prime_hook(server_rec *s, apr_pool_t *p, const char *id, apr_size_t id_len, const char *pem)
int ssl_add_fallback_cert_files(server_rec *s, apr_pool_t *p, apr_array_header_t *cert_files, apr_array_header_t *key_files)
apr_status_t ap_ssl_ocsp_prime(server_rec *s, apr_pool_t *p, const char *id, apr_size_t id_len, const char *pem)
apr_status_t ap_ssl_add_fallback_cert_files(server_rec *s, apr_pool_t *p, apr_array_header_t *cert_files, apr_array_header_t *key_files)
void ap_ssl_ocsp_copy_resp(const unsigned char *der, apr_size_t der_len, void *userdata)
Definition: http_ssl.h:271
int ap_ssl_has_outgoing_handlers(void)
int ap_ssl_conn_is_ssl(conn_rec *c)
int ssl_bind_outgoing(conn_rec *c, struct ap_conf_vector_t *dir_conf, int enable_ssl)
request_rec * r
Definition: mod_dav.h:518
const char * s
Definition: mod_dav.h:1327
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
const char * name
Definition: mod_dav.h:805
int apr_status_t
Definition: apr_errno.h:44
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int ssl_conn_is_ssl(conn_rec *c)
const char * ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, const char *name)
HTTP Daemon routines.
#define AP_DECLARE(x)
Definition: macros.h:1
Definition: apr_tables.h:62
Structure to store things which are per connection.
Definition: httpd.h:1193
A structure that represents the current request.
Definition: httpd.h:856
A structure to store information for each virtual server.
Definition: httpd.h:1382
apr_pool_t * p