diff options
Diffstat (limited to 'indra/llcorehttp/examples/http_texture_load.cpp')
| -rw-r--r-- | indra/llcorehttp/examples/http_texture_load.cpp | 52 | 
1 files changed, 1 insertions, 51 deletions
diff --git a/indra/llcorehttp/examples/http_texture_load.cpp b/indra/llcorehttp/examples/http_texture_load.cpp index 72e0c29a24..986e675d00 100644 --- a/indra/llcorehttp/examples/http_texture_load.cpp +++ b/indra/llcorehttp/examples/http_texture_load.cpp @@ -52,8 +52,6 @@  void init_curl();  void term_curl(); -void ssl_thread_id_callback(CRYPTO_THREADID*); -void ssl_locking_callback(int mode, int type, const char * file, int line);  void usage(std::ostream & out);  // Default command line settings @@ -606,63 +604,15 @@ void WorkingSet::loadAssetUuids(FILE * in)  } -int ssl_mutex_count(0); -LLCoreInt::HttpMutex ** ssl_mutex_list = NULL; -  void init_curl()  {      curl_global_init(CURL_GLOBAL_ALL); - -    ssl_mutex_count = CRYPTO_num_locks(); -    if (ssl_mutex_count > 0) -    { -        ssl_mutex_list = new LLCoreInt::HttpMutex * [ssl_mutex_count]; - -        for (int i(0); i < ssl_mutex_count; ++i) -        { -            ssl_mutex_list[i] = new LLCoreInt::HttpMutex; -        } - -        CRYPTO_set_locking_callback(ssl_locking_callback); -        CRYPTO_THREADID_set_callback(ssl_thread_id_callback); -    }  }  void term_curl()  { -    CRYPTO_set_locking_callback(NULL); -    for (int i(0); i < ssl_mutex_count; ++i) -    { -        delete ssl_mutex_list[i]; -    } -    delete [] ssl_mutex_list; -} - - -void ssl_thread_id_callback(CRYPTO_THREADID* pthreadid) -{ -#if defined(WIN32) -    CRYPTO_THREADID_set_pointer(pthreadid, GetCurrentThread()); -#else -    CRYPTO_THREADID_set_pointer(pthreadid, pthread_self()); -#endif -} - - -void ssl_locking_callback(int mode, int type, const char * /* file */, int /* line */) -{ -    if (type >= 0 && type < ssl_mutex_count) -    { -        if (mode & CRYPTO_LOCK) -        { -            ssl_mutex_list[type]->lock(); -        } -        else -        { -            ssl_mutex_list[type]->unlock(); -        } -    } +    curl_global_cleanup();  }  | 
