Merge branch 'dev' of feistymeow.org:feisty_meow into dev
[feisty_meow.git] / nucleus / library / crypto / ssl_init.h
index a0d78bc2d5298863b02a42276c6d635ae6519092..27b52d9624c11d4ad4b7271f38dbfc1fa64829de 100644 (file)
@@ -18,6 +18,8 @@
 #include <basis/byte_array.h>
 #include <mathematics/chaos.h>
 
+#include <openssl/opensslv.h>
+
 namespace crypto {
 
 //! provides some initialization for the RSA and blowfish crypto.
@@ -29,11 +31,9 @@ namespace crypto {
 */
 
 // we define NEWER_OPENSSL for those places where we're using more recent versions.
+// this forces the code to choose newer methods over deprecated ones.
 #if OPENSSL_VERSION_NUMBER > 0x10100000L
   #define NEWER_OPENSSL
-//hmmm: to be cleaned up; should assume only new ssl from now on.
-#else
-//  #define OLDER_OPENSSL
 #endif
 
 class ssl_init : public virtual basis::nameable