"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/modules/tls_mgm/tls_config_helper.h" (16 Apr 2019, 1828 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "tls_config_helper.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.4.5_vs_3.0.0.

    1 /*
    2  * Copyright (C) 2015 OpenSIPS Solutions
    3  *
    4  * This file is part of opensips, a free SIP server.
    5  *
    6  * opensips is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version
   10  *
   11  * In addition, as a special exception, the copyright holders give
   12  * permission to link the code of portions of this program with the
   13  * OpenSSL library under certain conditions as described in each
   14  * individual source file, and distribute linked combinations
   15  * including the two.
   16  * You must obey the GNU General Public License in all respects
   17  * for all of the code used other than OpenSSL.  If you modify
   18  * file(s) with this exception, you may extend this exception to your
   19  * version of the file(s), but you are not obligated to do so.  If you
   20  * do not wish to do so, delete this exception statement from your
   21  * version.  If you delete this exception statement from all source
   22  * files in the program, then also delete it here.
   23  *
   24  * opensips is distributed in the hope that it will be useful,
   25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   27  * GNU General Public License for more details.
   28  *
   29  * You should have received a copy of the GNU General Public License
   30  * along with this program; if not, write to the Free Software
   31  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
   32  *
   33  */
   34 
   35 #ifndef TLS_CONFIG_HELPER_H
   36 #define TLS_CONFIG_HELPER_H
   37 
   38 enum tls_method {
   39     TLS_METHOD_UNSPEC = 0,
   40     TLS_USE_TLSv1,
   41     TLS_USE_SSLv23,
   42     TLS_USE_TLSv1_2
   43 };
   44 
   45 /* SSL extra data indexes */
   46 #define SSL_EX_CONN_IDX 0
   47 #define SSL_EX_DOM_IDX 1
   48 
   49 #endif  /* TLS_CONFIG_HELPER_H */
   50