diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-03-12 23:31:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-03-12 23:31:16 +0000 |
commit | bd8ffccae7e1bb4030f9ca5e6dd9c8918256de75 (patch) | |
tree | 26820b373ebcbe66894a347d59b0136eb9265bbf /src/common/crypto.c | |
parent | 474c60b7433da2302c35832571f41867714d8f65 (diff) | |
download | tor-bd8ffccae7e1bb4030f9ca5e6dd9c8918256de75.tar.gz tor-bd8ffccae7e1bb4030f9ca5e6dd9c8918256de75.zip |
More cleanups noticed by weasel; also, remove macros that nobody uses.
svn:r6143
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 1be1bc1a2f..789c1fb6b7 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -63,28 +63,14 @@ const char crypto_c_id[] = #if OPENSSL_VERSION_NUMBER < 0x00905000l #error "We require openssl >= 0.9.5" -#elif OPENSSL_VERSION_NUMBER < 0x00906000l -#define OPENSSL_095 #endif #if OPENSSL_VERSION_NUMBER < 0x00907000l -#define OPENSSL_PRE_097 #define NO_ENGINES #else #include <openssl/engine.h> #endif -/* Certain functions that return a success code in OpenSSL 0.9.6 return void - * (and don't indicate errors) in OpenSSL version 0.9.5. - * - * [OpenSSL 0.9.5 matters, because it ships with Redhat 6.2.] - */ -#ifdef OPENSSL_095 -#define RETURN_SSL_OUTCOME(exp) (exp); return 0 -#else -#define RETURN_SSL_OUTCOME(exp) return !(exp) -#endif - /** Macro: is k a valid RSA public or private key? */ #define PUBLIC_KEY_OK(k) ((k) && (k)->key && (k)->key->n) /** Macro: is k a valid RSA private key? */ |