diff options
| author | Steven Fackler <[email protected]> | 2016-05-01 22:35:25 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-05-01 22:35:25 -0700 |
| commit | 47c9339f91ebbb4ea203c9d2a132af82a00dc398 (patch) | |
| tree | 76a81046e481c1d8c6fb5601824c0f67a2f7f13d /openssl-sys-extras/src | |
| parent | Add a version of Ssl::set_verify that doesn't set a callback (diff) | |
| download | rust-openssl-47c9339f91ebbb4ea203c9d2a132af82a00dc398.tar.xz rust-openssl-47c9339f91ebbb4ea203c9d2a132af82a00dc398.zip | |
Remove dead C code
Diffstat (limited to 'openssl-sys-extras/src')
| -rw-r--r-- | openssl-sys-extras/src/openssl_shim.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/openssl-sys-extras/src/openssl_shim.c b/openssl-sys-extras/src/openssl_shim.c index a4b40280..11df1ca6 100644 --- a/openssl-sys-extras/src/openssl_shim.c +++ b/openssl-sys-extras/src/openssl_shim.c @@ -3,32 +3,6 @@ #include <openssl/dh.h> #include <openssl/bn.h> -#if defined(__APPLE__) || defined(__linux) - -#include <pthread.h> -#include <openssl/crypto.h> - -unsigned long thread_id() -{ - return (unsigned long) pthread_self(); -} - -void rust_openssl_set_id_callback() { - CRYPTO_set_id_callback(thread_id); -} - -#else -// Openssl already handles Windows directly, so we don't -// need to explicitly set it - -void rust_openssl_set_id_callback() { - // We don't know how to set the callback for arbitrary OSes - // Let openssl use its defaults and hope they work. -} - -#endif - - #if OPENSSL_VERSION_NUMBER < 0x10000000L // Copied from openssl crypto/hmac/hmac.c int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) |