diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2012-01-10 06:14:35 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2012-01-10 06:14:35 +0100 |
commit | 2367f7e5594c5b0aab51f87b8221e2b0235ed0ed (patch) | |
tree | ee189df6c08ac05d5f963d9f43929b3acd696117 /src/common/crypto.c | |
parent | 489db38229074e3d31d65ac9e60407ddb4826789 (diff) | |
download | tor-2367f7e5594c5b0aab51f87b8221e2b0235ed0ed.tar.gz tor-2367f7e5594c5b0aab51f87b8221e2b0235ed0ed.zip |
Make sure MAX_DNS_LABEL_SIZE is defined
MAX_DNS_LABEL_SIZE was only defined for old versions of openssl, which
broke the build. Spotted by xiando. Fixes bug 4413; not in any released
version.
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 7edc7f228e..d1d823da7e 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -69,6 +69,9 @@ #define DISABLE_ENGINES #endif +/** Longest recognized */ +#define MAX_DNS_LABEL_SIZE 63 + #if OPENSSL_VERSION_NUMBER < 0x00908000l /** @{ */ /** On OpenSSL versions before 0.9.8, there is no working SHA256 @@ -82,9 +85,6 @@ #include "sha256.c" #define SHA256_Final(a,b) sha256_done(b,a) -/** Longest recognized */ -#define MAX_DNS_LABEL_SIZE 63 - static unsigned char * SHA256(const unsigned char *m, size_t len, unsigned char *d) { |