mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'maint-0.4.3'
This commit is contained in:
@@ -1071,7 +1071,10 @@ parse_socks_client(const uint8_t *data, size_t datalen,
|
||||
log_info(LD_NET, "SOCKS 5 client: need authentication.");
|
||||
*drain_out = -1;
|
||||
return 2;
|
||||
/* fall through */
|
||||
default:
|
||||
/* This wasn't supposed to be exhaustive; there are other
|
||||
* authentication methods too. */
|
||||
;
|
||||
}
|
||||
|
||||
*reason = tor_strdup("server doesn't support any of our available "
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
#define ED25519_FN(fn) ED25519_FN2(fn,ED25519_SUFFIX)
|
||||
|
||||
#include "orconfig.h"
|
||||
|
||||
#include "lib/cc/compat_compiler.h"
|
||||
|
||||
#include "ed25519-donna.h"
|
||||
#include "ed25519_donna_tor.h"
|
||||
#include "ed25519-randombytes.h"
|
||||
@@ -366,4 +369,3 @@ ed25519_donna_scalarmult_with_group_order(unsigned char *out,
|
||||
}
|
||||
|
||||
#include "test-internals.c"
|
||||
|
||||
|
||||
@@ -265,7 +265,7 @@ keypin_add_or_replace_entry_in_map(keypin_ent_t *ent)
|
||||
}
|
||||
tor_free(ent2);
|
||||
r = -1;
|
||||
/* Fall through */
|
||||
/* Note lack of return here: we fall through to the next line. */
|
||||
}
|
||||
|
||||
keypin_add_entry_to_map(ent);
|
||||
|
||||
@@ -530,7 +530,7 @@ send_resolved_cell,(edge_connection_t *conn, uint8_t answer_type,
|
||||
break;
|
||||
} else {
|
||||
answer_type = RESOLVED_TYPE_ERROR;
|
||||
/* fall through. */
|
||||
/* We let this fall through and treat it as an error. */
|
||||
}
|
||||
/* Falls through. */
|
||||
case RESOLVED_TYPE_ERROR_TRANSIENT:
|
||||
|
||||
@@ -50,6 +50,12 @@
|
||||
#define CHECK_SCANF(formatIdx, firstArg)
|
||||
#endif /* defined(__GNUC__) */
|
||||
|
||||
#if defined(HAVE_ATTR_FALLTHROUGH)
|
||||
#define FALLTHROUGH __attribute__((fallthrough))
|
||||
#else
|
||||
#define FALLTHROUGH
|
||||
#endif
|
||||
|
||||
/* What GCC do we have? */
|
||||
#ifdef __GNUC__
|
||||
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||
|
||||
@@ -91,7 +91,7 @@ library_supports_digest(digest_algorithm_t alg)
|
||||
switch (alg) {
|
||||
case DIGEST_SHA1: /* Fall through */
|
||||
case DIGEST_SHA256: /* Fall through */
|
||||
case DIGEST_SHA512: /* Fall through */
|
||||
case DIGEST_SHA512:
|
||||
return true;
|
||||
case DIGEST_SHA3_256: /* Fall through */
|
||||
case DIGEST_SHA3_512: /* Fall through */
|
||||
|
||||
@@ -949,6 +949,7 @@ tor_addr_copy_tight(tor_addr_t *dest, const tor_addr_t *src)
|
||||
break;
|
||||
case AF_INET6:
|
||||
memcpy(dest->addr.in6_addr.s6_addr, src->addr.in6_addr.s6_addr, 16);
|
||||
break;
|
||||
case AF_UNSPEC:
|
||||
break;
|
||||
// LCOV_EXCL_START
|
||||
|
||||
Reference in New Issue
Block a user