|
|
a5ef24 |
diff -up openssl-1.0.1e/crypto/cversion.c.version openssl-1.0.1e/crypto/cversion.c
|
|
|
a5ef24 |
--- openssl-1.0.1e/crypto/cversion.c.version 2013-02-11 16:02:47.000000000 +0100
|
|
|
a5ef24 |
+++ openssl-1.0.1e/crypto/cversion.c 2013-07-26 12:28:12.739161925 +0200
|
|
|
a5ef24 |
@@ -62,7 +62,7 @@
|
|
|
a5ef24 |
#include "buildinf.h"
|
|
|
a5ef24 |
#endif
|
|
|
a5ef24 |
|
|
|
a5ef24 |
-const char *SSLeay_version(int t)
|
|
|
a5ef24 |
+const char *_current_SSLeay_version(int t)
|
|
|
a5ef24 |
{
|
|
|
a5ef24 |
if (t == SSLEAY_VERSION)
|
|
|
a5ef24 |
return OPENSSL_VERSION_TEXT;
|
|
|
a5ef24 |
@@ -110,8 +110,25 @@ const char *SSLeay_version(int t)
|
|
|
a5ef24 |
return("not available");
|
|
|
a5ef24 |
}
|
|
|
a5ef24 |
|
|
|
a5ef24 |
-unsigned long SSLeay(void)
|
|
|
a5ef24 |
+const char *_original_SSLeay_version(int t)
|
|
|
a5ef24 |
+ {
|
|
|
a5ef24 |
+ if (t == SSLEAY_VERSION)
|
|
|
a5ef24 |
+ return "OpenSSL 1.0.0-fips 29 Mar 2010";
|
|
|
a5ef24 |
+ else
|
|
|
a5ef24 |
+ return _current_SSLeay_version(t);
|
|
|
a5ef24 |
+ }
|
|
|
a5ef24 |
+
|
|
|
a5ef24 |
+unsigned long _original_SSLeay(void)
|
|
|
a5ef24 |
+ {
|
|
|
a5ef24 |
+ return(0x10000003);
|
|
|
a5ef24 |
+ }
|
|
|
a5ef24 |
+
|
|
|
a5ef24 |
+unsigned long _current_SSLeay(void)
|
|
|
a5ef24 |
{
|
|
|
a5ef24 |
return(SSLEAY_VERSION_NUMBER);
|
|
|
a5ef24 |
}
|
|
|
a5ef24 |
|
|
|
a5ef24 |
+__asm__(".symver _original_SSLeay,SSLeay@");
|
|
|
a5ef24 |
+__asm__(".symver _original_SSLeay_version,SSLeay_version@");
|
|
|
a5ef24 |
+__asm__(".symver _current_SSLeay,SSLeay@@OPENSSL_1.0.1");
|
|
|
a5ef24 |
+__asm__(".symver _current_SSLeay_version,SSLeay_version@@OPENSSL_1.0.1");
|
|
|
a5ef24 |
diff -up openssl-1.0.1e/Makefile.shared.version openssl-1.0.1e/Makefile.shared
|
|
|
a5ef24 |
--- openssl-1.0.1e/Makefile.shared.version 2013-07-26 12:23:43.615545603 +0200
|
|
|
a5ef24 |
+++ openssl-1.0.1e/Makefile.shared 2013-07-26 12:23:43.701547398 +0200
|
|
|
a5ef24 |
@@ -151,7 +151,7 @@ DO_GNU_SO=$(CALC_VERSIONS); \
|
|
|
a5ef24 |
SHLIB_SUFFIX=; \
|
|
|
a5ef24 |
ALLSYMSFLAGS='-Wl,--whole-archive'; \
|
|
|
a5ef24 |
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
|
|
|
a5ef24 |
- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
|
|
a5ef24 |
+ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,--default-symver,--version-script=version.map -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
|
|
|
a5ef24 |
|
|
|
a5ef24 |
DO_GNU_APP=LDFLAGS="$(CFLAGS)"
|
|
|
a5ef24 |
|
|
|
a5ef24 |
diff -up openssl-1.0.1e/version.map.version openssl-1.0.1e/version.map
|
|
|
a5ef24 |
--- openssl-1.0.1e/version.map.version 2013-07-26 12:23:43.701547398 +0200
|
|
|
a5ef24 |
+++ openssl-1.0.1e/version.map 2013-07-26 12:29:10.698371472 +0200
|
|
|
a5ef24 |
@@ -0,0 +1,8 @@
|
|
|
a5ef24 |
+OPENSSL_1.0.1 {
|
|
|
a5ef24 |
+ global:
|
|
|
a5ef24 |
+ SSLeay;
|
|
|
a5ef24 |
+ SSLeay_version;
|
|
|
a5ef24 |
+ local:
|
|
|
a5ef24 |
+ _original*;
|
|
|
a5ef24 |
+ _current*;
|
|
|
a5ef24 |
+};
|