diff options
author | geoff <geoff> | 2008-03-28 02:49:32 +0000 |
---|---|---|
committer | geoff <geoff> | 2008-03-28 02:49:32 +0000 |
commit | 9faaf34997625686527c79962d9d4deff12df6c4 (patch) | |
tree | cacffae82f7e142f08a5c57f36a8fb858587da3e /crypto/ecdh | |
parent | 93618be37cc71086aced6c005e84bacf8032f5aa (diff) | |
download | openssl-9faaf34997625686527c79962d9d4deff12df6c4.tar.gz |
There was a need to support thread ID types that couldn't be reliably cast
to 'unsigned long' (ie. odd platforms/compilers), so a pointer-typed
version was added but it required portable code to check *both* modes to
determine equality. This commit maintains the availability of both thread
ID types, but deprecates the type-specific accessor APIs that invoke the
callbacks - instead a single type-independent API is used. This simplifies
software that calls into this interface, and should also make it less
error-prone - as forgetting to call and compare *both* thread ID accessors
could have led to hard-to-debug/infrequent bugs (that might only affect
certain platforms or thread implementations). As the CHANGES note says,
there were corresponding deprecations and replacements in the
thread-related functions for BN_BLINDING and ERR too.
Diffstat (limited to 'crypto/ecdh')
-rw-r--r-- | crypto/ecdh/ecdhtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecdh/ecdhtest.c b/crypto/ecdh/ecdhtest.c index 1575006b5..212a87efa 100644 --- a/crypto/ecdh/ecdhtest.c +++ b/crypto/ecdh/ecdhtest.c @@ -343,7 +343,7 @@ err: if (ctx) BN_CTX_free(ctx); BIO_free(out); CRYPTO_cleanup_all_ex_data(); - ERR_remove_state(0); + ERR_remove_thread_state(NULL); CRYPTO_mem_leaks_fp(stderr); EXIT(ret); return(ret); |