Blame modules/ssl/mod_ssl_openssl.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * @file mod_ssl_openssl.h
Packit 90a5c9
 * @brief Interface to OpenSSL-specific APIs provided by mod_ssl
Packit 90a5c9
 *
Packit 90a5c9
 * @defgroup MOD_SSL mod_ssl_openssl
Packit 90a5c9
 * @ingroup  APACHE_MODS
Packit 90a5c9
 * @{
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef __MOD_SSL_OPENSSL_H__
Packit 90a5c9
#define __MOD_SSL_OPENSSL_H__
Packit 90a5c9
Packit 90a5c9
#include "mod_ssl.h"
Packit 90a5c9
Packit 90a5c9
/* OpenSSL headers */
Packit 90a5c9
Packit 90a5c9
#ifndef SSL_PRIVATE_H
Packit 90a5c9
#include <openssl/opensslv.h>
Packit 90a5c9
#if (OPENSSL_VERSION_NUMBER >= 0x10001000)
Packit 90a5c9
/* must be defined before including ssl.h */
Packit 90a5c9
#define OPENSSL_NO_SSL_INTERN
Packit 90a5c9
#endif
Packit 90a5c9
#include <openssl/ssl.h>
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * init_server hook -- allow SSL_CTX-specific initialization to be performed by
Packit 90a5c9
 * a module for each SSL-enabled server (one at a time)
Packit 90a5c9
 * @param s SSL-enabled [virtual] server
Packit 90a5c9
 * @param p pconf pool
Packit 90a5c9
 * @param is_proxy 1 if this server supports backend connections
Packit 90a5c9
 * over SSL/TLS, 0 if it supports client connections over SSL/TLS
Packit 90a5c9
 * @param ctx OpenSSL SSL Context for the server
Packit 90a5c9
 */
Packit 90a5c9
APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, init_server,
Packit 90a5c9
                          (server_rec *s, apr_pool_t *p, int is_proxy, SSL_CTX *ctx))
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * pre_handshake hook
Packit 90a5c9
 * @param c conn_rec for new connection from client or to backend server
Packit 90a5c9
 * @param ssl OpenSSL SSL Connection for the client or backend server
Packit 90a5c9
 * @param is_proxy 1 if this handshake is for a backend connection, 0 otherwise
Packit 90a5c9
 */
Packit 90a5c9
APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, pre_handshake,
Packit 90a5c9
                          (conn_rec *c, SSL *ssl, int is_proxy))
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * proxy_post_handshake hook -- allow module to abort after successful
Packit 90a5c9
 * handshake with backend server and subsequent peer checks
Packit 90a5c9
 * @param c conn_rec for connection to backend server
Packit 90a5c9
 * @param ssl OpenSSL SSL Connection for the client or backend server
Packit 90a5c9
 */
Packit 90a5c9
APR_DECLARE_EXTERNAL_HOOK(ssl, SSL, int, proxy_post_handshake,
Packit 90a5c9
                          (conn_rec *c, SSL *ssl))
Packit 90a5c9
Packit 90a5c9
#endif /* __MOD_SSL_OPENSSL_H__ */
Packit 90a5c9
/** @} */