| 1 |
--- a/ck_ssl.c |
| 2 |
+++ b/ck_ssl.c |
| 3 |
@@ -1529,82 +1529,6 @@ |
| 4 |
debug(F110,"OpenSSL Library",SSLeay_version(SSLEAY_CFLAGS),0); |
| 5 |
debug(F110,"OpenSSL Library",SSLeay_version(SSLEAY_PLATFORM),0); |
| 6 |
|
| 7 |
- /* The following test is suggested by Richard Levitte */ |
| 8 |
- /* if (((OPENSSL_VERSION_NUMBER ^ SSLeay()) & 0xffffff0f) */ |
| 9 |
- /* Modified by Adam Friedlander for OpenSSL >= 1.0.0 */ |
| 10 |
- if (OPENSSL_VERSION_NUMBER > SSLeay() |
| 11 |
- || ((OPENSSL_VERSION_NUMBER ^ SSLeay()) & COMPAT_VERSION_MASK) |
| 12 |
-#ifdef OS2 |
| 13 |
-/* DG 2024-08-05: Not sure what the point of this was. Presumably the goal was |
| 14 |
- * to prevent updated OpenSSL libraries from being used, though why you'd |
| 15 |
- * want to do that I'm not sure. Might have been to do with how Kermit 95s |
| 16 |
- * SSH code was built way back in the early 2000s I guess. Today Kermit 95s |
| 17 |
- * use of OpenSSL is largely the same as how C-Kermit uses it on other |
| 18 |
- * platforms so I don't see any reason to treat it differently here. |
| 19 |
- || ckstrcmp(OPENSSL_VERSION_TEXT,(char *)SSLeay_version(SSLEAY_VERSION),-1,1) |
| 20 |
-*/ |
| 21 |
-#endif /* OS2 */ |
| 22 |
- ) { |
| 23 |
- ssl_installed = 0; |
| 24 |
- debug(F111,"OpenSSL Version does not match. Built with", |
| 25 |
- SSLeay_version(SSLEAY_VERSION),SSLEAY_VERSION_NUMBER); |
| 26 |
- printf("?OpenSSL libraries do not match required version:\r\n"); |
| 27 |
- printf(" . C-Kermit built with %s\r\n",OPENSSL_VERSION_TEXT); |
| 28 |
- printf(" . Version found %s\r\n",SSLeay_version(SSLEAY_VERSION)); |
| 29 |
-#ifdef OPENSSL_100 |
| 30 |
- printf(" OpenSSL versions 1.0.0 or newer must be the same\r\n"); |
| 31 |
- printf(" major and minor version number, and Kermit may not\r\n"); |
| 32 |
- printf(" be used with a version of OpenSSL older than the one\r\n"); |
| 33 |
- printf(" supplied at compile time.\r\n"); |
| 34 |
-#else |
| 35 |
- printf(" OpenSSL versions prior to 1.0.0 must be the same.\r\n"); |
| 36 |
-#endif /* OPENSSL_100 */ |
| 37 |
- |
| 38 |
- s = "R"; |
| 39 |
-#ifdef SOLARIS |
| 40 |
- printf(" Set CD_LIBRARY_PATH for %s.\r\n",OPENSSL_VERSION_TEXT); |
| 41 |
- s = " Or r"; |
| 42 |
-#endif /* SOLARIS */ |
| 43 |
- |
| 44 |
-#ifdef HPUX |
| 45 |
- printf(" Set SHLIB_PATH for %s.\r\n",OPENSSL_VERSION_TEXT); |
| 46 |
- s = " Or r"; |
| 47 |
-#endif /* HPUX */ |
| 48 |
- |
| 49 |
-#ifdef AIX |
| 50 |
- printf(" Set LIBPATH for %s.\r\n",OPENSSL_VERSION_TEXT); |
| 51 |
- s = " Or r"; |
| 52 |
-#endif /* AIX */ |
| 53 |
- |
| 54 |
-#ifdef LINUX |
| 55 |
- printf(" Set LD_LIBRARY_PATH for %s.\r\n",OPENSSL_VERSION_TEXT); |
| 56 |
- s = " Or r"; |
| 57 |
-#endif /* LINUX */ |
| 58 |
- |
| 59 |
- printf(" %sebuild C-Kermit from source on this computer to make \ |
| 60 |
-versions agree.\r\n",s); |
| 61 |
- |
| 62 |
-#ifdef KTARGET |
| 63 |
- { |
| 64 |
- char * s; |
| 65 |
- s = KTARGET; |
| 66 |
- if (!s) s = ""; |
| 67 |
- if (!*s) s = "(unknown)"; |
| 68 |
- printf(" C-Kermit makefile target: %s\r\n",s); |
| 69 |
- } |
| 70 |
-#endif /* KTARGET */ |
| 71 |
- printf(" Or if that is what you did then try to find out why\r\n"); |
| 72 |
- printf(" the program loader (image activator) is choosing a\r\n"); |
| 73 |
- printf(" different OpenSSL library than the one specified in \ |
| 74 |
-the build.\r\n\r\n"); |
| 75 |
- printf(" All SSL/TLS features disabled.\r\n\r\n"); |
| 76 |
- bleep(BP_FAIL); |
| 77 |
-#ifdef SSLDLL |
| 78 |
- ck_ssl_unloaddll(); |
| 79 |
- ck_crypto_unloaddll(); |
| 80 |
-#endif /* SSLDLL */ |
| 81 |
- return; |
| 82 |
- } |
| 83 |
#endif /* OS2ONLY */ |
| 84 |
|
| 85 |
/* init things so we will get meaningful error messages |