tls_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: tls_config.h 4680 2008-08-12 07:26:43Z klaus_darilion $
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
00005  * Copyright (C) 2004,2005 Free Software Foundation, Inc.
00006  *
00007  * This file is part of Kamailio, a free SIP server.
00008  *
00009  * Kamailio is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version
00013  *
00014  * Kamailio is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License 
00020  * along with this program; if not, write to the Free Software 
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022  */
00023 
00024 /*!
00025  * \file 
00026  * \brief Kamailio TLS support :: Configuration
00027  * \ingroup tls
00028  * Module: \ref tls
00029  */
00030 
00031 #ifndef tls_config_h
00032 #define tls_config_h
00033 
00034 #include <openssl/ssl.h>
00035 
00036 #ifndef OPENSSL_NO_TLSEXT
00037 #ifndef SSL_CTRL_SET_TLSEXT_HOSTNAME
00038 #define OPENSSL_NO_TLSEXT
00039 #endif
00040 #endif
00041 
00042 #include "../tcp_conn.h"
00043 
00044 enum tls_method {
00045    TLS_METHOD_UNSPEC = 0,
00046    TLS_USE_SSLv2_cli,
00047    TLS_USE_SSLv2_srv,
00048    TLS_USE_SSLv2,
00049    TLS_USE_SSLv3_cli,
00050    TLS_USE_SSLv3_srv,
00051    TLS_USE_SSLv3,
00052    TLS_USE_TLSv1_cli,
00053    TLS_USE_TLSv1_srv,
00054    TLS_USE_TLSv1,
00055    TLS_USE_SSLv23_cli,
00056    TLS_USE_SSLv23_srv,
00057    TLS_USE_SSLv23
00058 };
00059 
00060 extern int      tls_log;
00061 extern int      tls_method;
00062 
00063 extern int      tls_verify_client_cert;
00064 extern int      tls_verify_server_cert;
00065 extern int      tls_require_client_cert;
00066 extern char    *tls_cert_file;
00067 extern char    *tls_pkey_file;
00068 extern char    *tls_ca_file;
00069 extern char    *tls_ciphers_list;
00070 extern int      tls_handshake_timeout;
00071 extern int      tls_send_timeout;
00072 extern int      tls_client_domain_avp;
00073 extern int      tls_server_name_avp;
00074 
00075 #endif

Generated on Thu May 24 20:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6