typedef unsigned long (*ERR_get_error_t)(void);
typedef unsigned long (*OpenSSL_version_num_t)(void);
-TLS_method_t TLS_method;
-SSL_CTX_new_t SSL_CTX_new;
-SSL_CTX_free_t SSL_CTX_free;
+static TLS_method_t TLS_method;
+static SSL_CTX_new_t SSL_CTX_new;
+static SSL_CTX_free_t SSL_CTX_free;
-ERR_get_error_t ERR_get_error;
-OpenSSL_version_num_t OpenSSL_version_num;
+static ERR_get_error_t ERR_get_error;
+static OpenSSL_version_num_t OpenSSL_version_num;
#ifdef DSO_DLFCN
typedef void * SHLIB;
typedef void * SHLIB_SYM;
+# define SHLIB_INIT NULL
# define SHARED_LIBRARY_SUFFIX ".so"
typedef HINSTANCE SHLIB;
typedef void * SHLIB_SYM;
+# define SHLIB_INIT 0
static int shlib_load(char *filename, SHLIB *lib)
{
int main(int argc, char **argv)
{
- SHLIB ssllib, cryptolib;
+ SHLIB ssllib = SHLIB_INIT, cryptolib = SHLIB_INIT;
SSL_CTX *ctx;
union {
void (*func) (void);