|
@@ -6,14 +6,6 @@
|
|
|
#include "dl.h"
|
|
#include "dl.h"
|
|
|
|
|
|
|
|
extern "C" {
|
|
extern "C" {
|
|
|
-typedef int (*OPENSSL_init_ssl_t)(uint64_t a1, const void *a2);
|
|
|
|
|
-static int _OPENSSL_init_ssl(uint64_t a1, const void *a2) {
|
|
|
|
|
- if (DLSYM_VAR(OPENSSL_init_ssl) == NULL)
|
|
|
|
|
- if (DLSYM_GLOBAL_SIMPLE(RTLD_NEXT, OPENSSL_init_ssl) == NULL)
|
|
|
|
|
- return 0;
|
|
|
|
|
- return DLSYM_VAR(OPENSSL_init_ssl)(a1, a2);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
void _ERR_free_strings(void) __attribute__((const));
|
|
void _ERR_free_strings(void) __attribute__((const));
|
|
|
void _ERR_free_strings(void) {
|
|
void _ERR_free_strings(void) {
|
|
|
}
|
|
}
|
|
@@ -26,17 +18,6 @@ void _CRYPTO_cleanup_all_ex_data(void) __attribute__((const));
|
|
|
void _CRYPTO_cleanup_all_ex_data(void) {
|
|
void _CRYPTO_cleanup_all_ex_data(void) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int _SSL_library_init(void) {
|
|
|
|
|
- return _OPENSSL_init_ssl(0, NULL);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS 0x00000002L
|
|
|
|
|
-#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
|
|
|
|
|
-void _SSL_load_error_strings(void) {
|
|
|
|
|
- _OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
|
|
|
|
|
- | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
typedef void *(*TLS_client_method_t)(void);
|
|
typedef void *(*TLS_client_method_t)(void);
|
|
|
static const void *_TLS_client_method(void) {
|
|
static const void *_TLS_client_method(void) {
|
|
|
if (DLSYM_VAR(TLS_client_method) == NULL)
|
|
if (DLSYM_VAR(TLS_client_method) == NULL)
|