Apache HTTPD
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
34extern "C" {
35#endif
36
37struct ap_conf_vector_t;
38
47
48
53
68AP_DECLARE_HOOK(int, ssl_bind_outgoing,
69 (conn_rec *c, struct ap_conf_vector_t *dir_conf, int enable_ssl))
70
71
82 int require_ssl);
83
88
103
104
117 const char *name);
118
132AP_DECLARE_HOOK(int, ssl_add_cert_files, (server_rec *s, apr_pool_t *p,
133 apr_array_header_t *cert_files,
135
136
148 apr_array_header_t *cert_files,
149 apr_array_header_t *key_files);
150
151
163AP_DECLARE_HOOK(int, ssl_add_fallback_cert_files, (server_rec *s, apr_pool_t *p,
164 apr_array_header_t *cert_files,
166
167
181 apr_array_header_t *cert_files,
182 apr_array_header_t *key_files);
183
184
193AP_DECLARE_HOOK(int, ssl_answer_challenge, (conn_rec *c, const char *server_name,
194 const char **pcert_pem, const char **pkey_pem))
195
196
211AP_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
239AP_DECLARE_HOOK(int, ssl_ocsp_prime_hook, (server_rec *s, apr_pool_t *p,
240 const char *id, apr_size_t id_len,
241 const char *pem))
242
243
259 const char *id, apr_size_t id_len,
260 const char *pem);
261
271typedef void ap_ssl_ocsp_copy_resp(const unsigned char *der, apr_size_t der_len, void *userdata);
272
282AP_DECLARE_HOOK(int, ssl_ocsp_get_resp_hook,
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
286
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(type)
Definition ap_config.h:67
#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
request_rec * r
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)
Definition ssl.c:253
int ap_ssl_answer_challenge(conn_rec *c, const char *server_name, const char **pcert_pem, const char **pkey_pem)
Definition ssl.c:239
int ap_ssl_bind_outgoing(conn_rec *c, struct ap_conf_vector_t *dir_conf, int require_ssl)
Definition ssl.c:128
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)
Definition ssl.c:223
void ap_setup_ssl_optional_fns(apr_pool_t *pool)
Definition ssl.c:197
const char * ap_ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, const char *name)
Definition ssl.c:186
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)
Definition ssl.c:245
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)
Definition ssl.c:231
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)
Definition ssl.c:164
int ap_ssl_conn_is_ssl(conn_rec *c)
Definition ssl.c:90
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
const char int apr_pool_t * pool
Definition apr_cstr.h:84
int apr_status_t
Definition apr_errno.h:44
apr_vformatter_buff_t * c
Definition apr_lib.h:175
const char * s
Definition apr_strings.h:95
HTTP Daemon routines.
apr_pool_t * p
Definition md_event.c:32
char * name
static int ssl_conn_is_ssl(conn_rec *c)
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