00001 #ifndef SSL_INIT_CLASS 00002 #define SSL_INIT_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : SSL initialization helper * 00007 * Author : Chris Koeritz * 00008 * * 00009 ******************************************************************************* 00010 * Copyright (c) 2005-$now By Author. This program is free software; you can * 00011 * redistribute it and/or modify it under the terms of the GNU General Public * 00012 * License as published by the Free Software Foundation; either version 2 of * 00013 * the License or (at your option) any later version. This is online at: * 00014 * http://www.fsf.org/copyleft/gpl.html * 00015 * Please send any updates to: fred@gruntose.com * 00016 \*****************************************************************************/ 00017 00018 #include "crypto_dll.h" 00019 00020 #include <basis/object_base.h> 00021 00022 // forward. 00023 class chaos; 00024 00026 00033 class CRYPTO_CLASS_STYLE ssl_init : public virtual object_base 00034 { 00035 public: 00036 ssl_init(); 00037 ~ssl_init(); 00038 00039 IMPLEMENT_CLASS_NAME("ssl_init"); 00040 00041 byte_array random_bytes(int length) const; 00043 00044 chaos &randomizer() const; 00046 00047 private: 00048 chaos *_rando; 00049 }; 00050 00051 extern const ssl_init &static_ssl_initializer(); 00053 00054 #endif 00055
1.5.1