|
|
fd2893 |
diff -up openssl-1.0.2a/crypto/cversion.c.version openssl-1.0.2a/crypto/cversion.c
|
|
|
fd2893 |
--- openssl-1.0.2a/crypto/cversion.c.version 2015-03-19 14:30:36.000000000 +0100
|
|
|
fd2893 |
+++ openssl-1.0.2a/crypto/cversion.c 2015-04-21 16:48:56.285535316 +0200
|
|
|
fd2893 |
@@ -62,7 +62,7 @@
|
|
|
fd2893 |
# include "buildinf.h"
|
|
|
fd2893 |
#endif
|
|
|
fd2893 |
|
|
|
fd2893 |
-const char *SSLeay_version(int t)
|
|
|
fd2893 |
+const char *_current_SSLeay_version(int t)
|
|
|
fd2893 |
{
|
|
|
fd2893 |
if (t == SSLEAY_VERSION)
|
|
|
fd2893 |
return OPENSSL_VERSION_TEXT;
|
|
|
fd2893 |
@@ -101,7 +101,40 @@ const char *SSLeay_version(int t)
|
|
|
fd2893 |
return ("not available");
|
|
|
fd2893 |
}
|
|
|
fd2893 |
|
|
|
fd2893 |
-unsigned long SSLeay(void)
|
|
|
fd2893 |
+const char *_original_SSLeay_version(int t)
|
|
|
fd2893 |
+{
|
|
|
fd2893 |
+ if (t == SSLEAY_VERSION)
|
|
|
fd2893 |
+ return "OpenSSL 1.0.0-fips 29 Mar 2010";
|
|
|
fd2893 |
+ else
|
|
|
fd2893 |
+ return _current_SSLeay_version(t);
|
|
|
fd2893 |
+}
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+const char *_original101_SSLeay_version(int t)
|
|
|
fd2893 |
+{
|
|
|
fd2893 |
+ if (t == SSLEAY_VERSION)
|
|
|
fd2893 |
+ return "OpenSSL 1.0.1e-fips 11 Feb 2013";
|
|
|
fd2893 |
+ else
|
|
|
fd2893 |
+ return _current_SSLeay_version(t);
|
|
|
fd2893 |
+}
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+unsigned long _original_SSLeay(void)
|
|
|
fd2893 |
+{
|
|
|
fd2893 |
+ return (0x10000003L);
|
|
|
fd2893 |
+}
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+unsigned long _original101_SSLeay(void)
|
|
|
fd2893 |
+{
|
|
|
fd2893 |
+ return (0x1000105fL);
|
|
|
fd2893 |
+}
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+unsigned long _current_SSLeay(void)
|
|
|
fd2893 |
{
|
|
|
fd2893 |
return (SSLEAY_VERSION_NUMBER);
|
|
|
fd2893 |
}
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+__asm__(".symver _original_SSLeay,SSLeay@");
|
|
|
fd2893 |
+__asm__(".symver _original_SSLeay_version,SSLeay_version@");
|
|
|
fd2893 |
+__asm__(".symver _original101_SSLeay,SSLeay@OPENSSL_1.0.1");
|
|
|
fd2893 |
+__asm__(".symver _original101_SSLeay_version,SSLeay_version@OPENSSL_1.0.1");
|
|
|
fd2893 |
+__asm__(".symver _current_SSLeay,SSLeay@@OPENSSL_1.0.2");
|
|
|
fd2893 |
+__asm__(".symver _current_SSLeay_version,SSLeay_version@@OPENSSL_1.0.2");
|
|
|
fd2893 |
diff -up openssl-1.0.2a/Makefile.shared.version openssl-1.0.2a/Makefile.shared
|
|
|
fd2893 |
--- openssl-1.0.2a/Makefile.shared.version 2015-04-21 16:43:02.624170648 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2a/Makefile.shared 2015-04-21 16:43:02.676171879 +0200
|
|
|
fd2893 |
@@ -151,7 +151,7 @@ DO_GNU_SO=$(CALC_VERSIONS); \
|
|
|
fd2893 |
SHLIB_SUFFIX=; \
|
|
|
fd2893 |
ALLSYMSFLAGS='-Wl,--whole-archive'; \
|
|
|
fd2893 |
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
|
|
|
fd2893 |
- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
|
|
fd2893 |
+ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,--default-symver,--version-script=version.map -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
|
|
fd2893 |
|
|
|
fd2893 |
DO_GNU_APP=LDFLAGS="$(CFLAGS)"
|
|
|
fd2893 |
|
|
|
fd2893 |
diff -up openssl-1.0.2a/version.map.version openssl-1.0.2a/version.map
|
|
|
fd2893 |
--- openssl-1.0.2a/version.map.version 2015-04-21 16:43:02.676171879 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2a/version.map 2015-04-21 16:51:49.621630589 +0200
|
|
|
fd2893 |
@@ -0,0 +1,13 @@
|
|
|
fd2893 |
+OPENSSL_1.0.1 {
|
|
|
fd2893 |
+ global:
|
|
|
fd2893 |
+ SSLeay;
|
|
|
fd2893 |
+ SSLeay_version;
|
|
|
fd2893 |
+ local:
|
|
|
fd2893 |
+ _original*;
|
|
|
fd2893 |
+ _current*;
|
|
|
fd2893 |
+};
|
|
|
fd2893 |
+OPENSSL_1.0.2 {
|
|
|
fd2893 |
+ global:
|
|
|
fd2893 |
+ SSLeay;
|
|
|
fd2893 |
+ SSLeay_version;
|
|
|
fd2893 |
+} OPENSSL_1.0.1;
|