00001 /* 00002 * $Id: tls_config.c 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 * Copyright (C) 2006 enum.at 00007 * 00008 * This file is part of Kamailio, a free SIP server. 00009 * 00010 * Kamailio is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version 00014 * 00015 * Kamailio is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 */ 00024 00025 /*! 00026 * \file 00027 * \brief Kamailio TLS support :: Configuration 00028 * \ingroup tls 00029 * Module: \ref tls 00030 */ 00031 00032 #include "tls_config.h" 00033 #include "../config.h" 00034 00035 int tls_log; 00036 00037 int tls_method = TLS_USE_SSLv23; 00038 00039 /* 00040 * These are the default values which will be used 00041 * for default domains AND virtual domains 00042 */ 00043 00044 /* enable certificate validation as default value */ 00045 int tls_verify_client_cert = 1; 00046 int tls_verify_server_cert = 1; 00047 int tls_require_client_cert = 1; 00048 /* default location of certificates */ 00049 char *tls_cert_file = TLS_CERT_FILE; 00050 char *tls_pkey_file = TLS_PKEY_FILE; 00051 char *tls_ca_file = TLS_CA_FILE; 00052 /* defaul cipher=0, this means the DEFAULT ciphers */ 00053 char *tls_ciphers_list = 0; 00054 /* TLS timeouts; should be low to detect problems fast */ 00055 int tls_handshake_timeout = 30; 00056 int tls_send_timeout = 30; 00057 /* per default, the TLS domains do not have a name */ 00058 int tls_client_domain_avp = 0; 00059 int tls_server_name_avp = 0; 00060
1.5.6