Logo
~Sockets~
~Examples~
~Contact~


SSLInitializer.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2007  Anders Hedstrom
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program 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 #ifndef __SOCKETS_SSLInitializer_H
00024 #define __SOCKETS_SSLInitializer_H
00025 #include "sockets-config.h"
00026 #ifdef HAVE_OPENSSL
00027 
00028 #include <openssl/ssl.h>
00029 #include <string>
00030 
00031 
00032 #ifdef SOCKETS_NAMESPACE
00033 namespace SOCKETS_NAMESPACE {
00034 #endif
00035 
00036 
00037 class SSLInitializer
00038 {
00039 public:
00045         SSLInitializer();
00046 
00050         ~SSLInitializer();
00051 
00052         void DeleteRandFile();
00053 
00055 static  void SSL_locking_function(int mode, int n, const char *file, int line);
00056 
00058 static  unsigned long SSL_id_function();
00059 
00060         BIO *bio_err;
00061 
00062 private:
00063         std::string m_rand_file;
00064         long m_rand_size;
00065 
00066 };
00067 
00068 
00069 
00070 
00071 #ifdef SOCKETS_NAMESPACE
00072 } // namespace SOCKETS_NAMESPACE {
00073 #endif
00074 #endif // HAVE_OPENSSL
00075 #endif // __SOCKETS_SSLInitializer_H
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4