00001 /* 00002 * $Id: tls_init.h 4557 2008-08-05 12:16:12Z 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 :: Initialization 00028 * \ingroup tls 00029 * Module: \ref tls 00030 */ 00031 00032 00033 #ifndef tls_init_h 00034 #define tls_init_h 00035 00036 #include <openssl/ssl.h> 00037 #include "tls_config.h" 00038 #include "tls_domain.h" 00039 #include "../tcp_conn.h" 00040 00041 /*! \brief 00042 * just once before cleanup 00043 */ 00044 void destroy_tls(void); 00045 00046 /* 00047 * for each socket 00048 */ 00049 int tls_init(struct socket_info *si); 00050 00051 /* 00052 * just once, pre-initialize the tls subsystem 00053 * (allocate memory for the default TLS domains) 00054 */ 00055 int pre_init_tls(void); 00056 00057 /*! \brief 00058 * just once, initialize the tls subsystem 00059 */ 00060 int init_tls(void); 00061 00062 /*! \brief 00063 * initialize tls domains 00064 */ 00065 int init_tls_domains(struct tls_domain *d); 00066 00067 #endif
1.5.6