summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-03Ensure signing_key is non-NULL before accessing one of its membersteor
signing_key can be NULL in ed_key_init_from_file in routerkeys.c. Discovered by clang 3.7 address sanitizer. Fix on c03694938ed0, not in any released version of Tor.
2015-06-03Remove undefined directive-in-macro in test_util_writepidteor
clang 3.7 complains that using a preprocessor directive inside a macro invocation in test_util_writepid in test_util.c is undefined. Fix on 79e85313aa61 on 0.2.7.1-alpha.
2015-06-03Always initialise return value in compute_desc_id in rendcommon.cteor
Fix on e6a581f126ba, released in 0.2.7.1-alpha.
2015-06-03Silence unused variable warnings in find_cipher_by_idteor
Unused variable warnings were still generated under some versions of OpenSSL. Instead, make sure all variables are used under all versions. Fix on 496df21c89d1, not in any released version of tor.
2015-06-03Fix an incorrect comment on spawn_functeor
spawn_func calls pthread_create on unix, not fork Fix on existing code split out of compat.c into compat_pthreads.c in c2f0d52b7fb9
2015-06-01Add a master-key-ed25519 line for convenienceNick Mathewson
2015-06-01More check-spaces fixesNick Mathewson
2015-06-01Fix a memory leak in routerkeys.cNick Mathewson
2015-06-01Fix some memory leaks in ed25519 code and testsNick Mathewson
2015-06-01Appease make check-spacesAndrea Shepard
2015-05-30Fix return-type gcc warningSharif Olorin
find_dl_schedule_and_len caused gcc to spit up with -Werror. Signed-off-by: Sharif Olorin <sio@tesser.org>
2015-05-29Another memory leak bytes the dust.Nick Mathewson
2015-05-29Attempt to fix keypinning on WindowsNick Mathewson
Not that I would countenance a directory authority on Windows, but it would be nice if the unit tests passed.
2015-05-29Fix another int-to-ptr cast.Nick Mathewson
2015-05-29Fix a warning from the clangalyzer.Nick Mathewson
2015-05-29Fix a sizeof(ptr) mistake in test-memwipe.cNick Mathewson
2015-05-29more generic scan-build scriptNick Mathewson
2015-05-28Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-05-28Fix sandbox use with systemd. bug 16212.Nick Mathewson
2015-05-28Avoid double-free on rend_add_service() failureNick Mathewson
Rend_add_service() frees its argument on failure; no need to free again. Fixes bug 16228, bugfix on 0.2.7.1-alpha Found by coverity; this is CID 1301387.
2015-05-28There sure are a lot of these in test_hs.c. CID 1301385Nick Mathewson
2015-05-28Fix a bug in earlier torcert fix, fix another.Nick Mathewson
2015-05-28Another test_hs leak. CID 1301383.Nick Mathewson
2015-05-28Memory leak in tor_cert_parse. CID 1301382.Nick Mathewson
2015-05-28Memory leak in tor_cert_parse. CID gi1301381Nick Mathewson
2015-05-28Fix leak-on-test-failure in test_routerkeys.cNick Mathewson
CID 1301379
2015-05-28Memory leak in test_hs_rend_dataNick Mathewson
CID 1301377
2015-05-28Fix memory leak in test_routerkeysNick Mathewson
CID 1301376
2015-05-28Small leak in ed_key_init_from_file. CID 1301373Nick Mathewson
2015-05-28Memory leak on error in connection_or_compute_auth_cell_body. CID 1301372Nick Mathewson
2015-05-28fix memory leak on bad ns convote. CID 1301371.Nick Mathewson
2015-05-28Fix memory leak on failure to generate EI. CID 1301370.Nick Mathewson
2015-05-28Fix null dereference on key setup error.Nick Mathewson
CID 1301369
2015-05-28Update trunnel code.Nick Mathewson
This gets the minor change in trunnel 1.4.1, which should avoid deadcode warnings from Coverity.
2015-05-28Avoid dereferencing null on unit test failure for link handshakes.Nick Mathewson
This fixes CID 1301368 -- found by coverity
2015-05-28Fix a bug when we fail to read a cert from a file.Nick Mathewson
Found by coverity -- CID 1301366.
2015-05-28Add assertions to crypto_dh_dup()Nick Mathewson
Without these, coverity is annoyed that aren't checking for NULL in bench.c CID 1293335 -- found by coverity.
2015-05-28Impose an upper limit on threads per threadpool.Nick Mathewson
Found by Coverity; Fixes CID 1268069
2015-05-28Bug 12498 needs a changes file.Nick Mathewson
2015-05-28Merge branch '12498_ed25519_keys_v6'Nick Mathewson
Fixed numerous conflicts, and ported code to use new base64 api.
2015-05-28Document some ed25519 key optionsNick Mathewson
2015-05-28Note some functions that should move or be mergedNick Mathewson
2015-05-28Do not allocate our ed-link crosscert till after tls ctxNick Mathewson
We need this to prevent some annoying chutney crash-at-starts
2015-05-28Generate weird certificates correctlyNick Mathewson
(Our link protocol assumes that the link cert certifies the TLS key, and there is an RSA->Ed25519 crosscert)
2015-05-28Regenerate ed25519 keys when they will expire soon.Nick Mathewson
Also, have testing-level options to set the lifetimes and expiration-tolerances of all key types, plus a non-testing-level option to set the lifetime of any auto-generated signing key.
2015-05-28# This is a combination of 2 commits.Nick Mathewson
# The first commit's message is: Regenerate ed25519 keys when they will expire soon. Also, have testing-level options to set the lifetimes and expiration-tolerances of all key types, plus a non-testing-level option to set the lifetime of any auto-generated signing key. # The 2nd commit message will be skipped: # fixup! Regenerate ed25519 keys when they will expire soon.
2015-05-28Only load master ed25519 secret keys when we absolutely must.Nick Mathewson
2015-05-28Implement ed25519 identity collation for voting.Nick Mathewson
This is a new collator type that follows proposal 220 for deciding which identities to include. The rule is (approximately): If a <ed,rsa> identity is listed by more than half of authorities, include it. And include all <rsa> votes about that node as matching. Otherwise, if an <*,rsa> or <rsa> identity is listed by more than half of the authorities, and no <ed,rsa> has been listed, include it.
2015-05-28Refactor code that matches up routers with the same identity in votesNick Mathewson
This makes 'routerstatus collation' into a first-class concept, so we can change how that works for prop220.
2015-05-28Checkpoint some work on voting on ed25519 identitiesNick Mathewson
* Include ed25519 identities in votes * Include "no ed25519 identity" in votes * Include some commented-out code about identity voting. (This will disappear.) * Include some functions for identity voting (These will disappear.) * Enforce uniqueness in ed25519 keys within a vote