conexus logo

ssl/enums.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the conexus library.                             *
00006  *                                                                         *
00007  *   The conexus library is free software; you can redistribute it and/or  *
00008  *   modify it under the terms of the GNU General Public License           *
00009  *   version 3 as published by the Free Software Foundation.               *
00010  *                                                                         *
00011  *   The conexus library is distributed in the hope that it will be        *
00012  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty   *
00013  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00014  *   General Public License for more details.                              *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this software. If not see <http://www.gnu.org/licenses/>.  *
00018  ***************************************************************************/
00019 #ifndef CONEXUSSSLENUMS_H
00020 #define CONEXUSSSLENUMS_H
00021 
00022 #include <openssl/ssl.h>
00023 
00024 namespace Conexus {
00025   namespace SSL {
00026 
00027     typedef enum Method
00028     {
00029       SSLV2,
00030       SSLV2_SERVER,
00031       SSLV2_CLIENT,
00032       SSLV3,
00033       SSLV3_SERVER,
00034       SSLV3_CLIENT,
00035       TLSV1,
00036       TLSV1_SERVER,
00037       TLSV1_CLIENT,
00038       SSLV23,
00039       SSLV23_SERVER,
00040       SSLV23_CLIENT,
00041       DTLSV1,
00042       DTLSV1_SERVER,
00043       DTLSV1_CLIENT,
00044     } Method;
00045 
00046     typedef enum FileType
00047     {
00048       PEM = SSL_FILETYPE_PEM,
00049       ASN1 = SSL_FILETYPE_ASN1,
00050     } FileType;
00051 
00052     typedef enum EncDecFlag
00053     {
00054       DECRYPTION,
00055       ENCRYPTION,
00056     } EncDecFlag;
00057 
00058     typedef enum Verify
00059     {
00060       VERIFY_NONE = SSL_VERIFY_NONE,
00061       VERIFY_PEER = SSL_VERIFY_PEER,
00062       VERIFY_FAIL_IF_NO_PEER_CERT = SSL_VERIFY_FAIL_IF_NO_PEER_CERT,
00063       VERIFY_CLIENT_ONCE = SSL_VERIFY_CLIENT_ONCE,
00064     } Verify;
00065 
00066   }
00067 }
00068 
00069 #endif
00070 

Generated on Wed Jul 8 15:50:07 2009 for conexus by doxygen 1.5.8