tiny issue with macro not being defined
[feisty_meow.git] / nucleus / library / crypto / ssl_init.h
index 7357bd8cdd0e05cb887875dba25625c2194a365e..4a88baf9b199530495338209afbbb8d413c1aaf5 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.
@@ -28,6 +30,15 @@ namespace crypto {
   very bottom and it will be managed globally for the entire program.
 */
 
+// we define NEWER_OPENSSL for those places where we're using more recent versions.
+#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
+#error not here
+#endif
+
 class ssl_init : public virtual basis::nameable
 {
 public: