mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 15:23:27 +01:00
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.
This commit is contained in:
parent
489db38229
commit
2367f7e559
@ -69,6 +69,9 @@
|
|||||||
#define DISABLE_ENGINES
|
#define DISABLE_ENGINES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** Longest recognized */
|
||||||
|
#define MAX_DNS_LABEL_SIZE 63
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x00908000l
|
#if OPENSSL_VERSION_NUMBER < 0x00908000l
|
||||||
/** @{ */
|
/** @{ */
|
||||||
/** On OpenSSL versions before 0.9.8, there is no working SHA256
|
/** On OpenSSL versions before 0.9.8, there is no working SHA256
|
||||||
@ -82,9 +85,6 @@
|
|||||||
#include "sha256.c"
|
#include "sha256.c"
|
||||||
#define SHA256_Final(a,b) sha256_done(b,a)
|
#define SHA256_Final(a,b) sha256_done(b,a)
|
||||||
|
|
||||||
/** Longest recognized */
|
|
||||||
#define MAX_DNS_LABEL_SIZE 63
|
|
||||||
|
|
||||||
static unsigned char *
|
static unsigned char *
|
||||||
SHA256(const unsigned char *m, size_t len, unsigned char *d)
|
SHA256(const unsigned char *m, size_t len, unsigned char *d)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user