1. 28 Oct, 2020 1 commit
  2. 06 Jul, 2020 1 commit
    • Alexander Færøy's avatar
      Run `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS. · 33e1c2e6
      Alexander Færøy authored and Nick Mathewson's avatar Nick Mathewson committed
      This patch lifts the `tor_tls_cert_matches_key()` tests out of the
      OpenSSL specific TLS test suite and moves it into the generic TLS test
      suite that is executed for both OpenSSL and NSS.
      
      This patch is largely a code movement, but we had to rewrite parts of
      the test to avoid using OpenSSL specific data-types (such as `X509 *`)
      and replace it with the generic Tor abstraction type
      (`tor_x509_cert_impl_t *`).
      
      This patch is part of the fix for TROVE-2020-001.
      
      See: https://bugs.torproject.org/33119
      33e1c2e6
  3. 16 Jan, 2019 1 commit
  4. 13 Sep, 2018 2 commits
  5. 04 Sep, 2018 4 commits
  6. 21 Aug, 2018 6 commits
  7. 20 Aug, 2018 1 commit
    • Nick Mathewson's avatar
      Rewrite test_tortls_cert_matches_key() · 85a87923
      Nick Mathewson authored
      Unlike the old test, this test no will no longer mess around with
      the forbidden internals of any openssl data structures.
      
      Additionally, it verifies several other behaviors of
      tor_tls_cert_matches_key() that we had wanted to verify, such as
      the possibility of the certificate's key not matching.
      
      Fixes bug 27226; bugfix on 0.2.5.1-alpha.
      85a87923
  8. 10 Jul, 2018 1 commit
    • Nick Mathewson's avatar
      Rename torlog.[ch] to log.[ch] · e7f5f48d
      Nick Mathewson authored
      Fun fact: these files used to be called log.[ch] until we ran into
      conflicts with systems having a log.h file.  But now that we always
      include "lib/log/log.h", we should be fine.
      e7f5f48d
  9. 05 Jul, 2018 1 commit
  10. 01 Jul, 2018 1 commit
  11. 29 Jun, 2018 1 commit
  12. 22 Jun, 2018 1 commit
  13. 21 Jun, 2018 1 commit
  14. 20 Jun, 2018 2 commits
  15. 11 May, 2018 1 commit
    • Marcin Cieślak's avatar
      testing: X509 certificate structure needs to be initialized · 308eec75
      Marcin Cieślak authored
      We alloc/free X.509 structures in three ways:
      
      1) X509 structure allocated with X509_new() and X509_free()
      
      2) Fake X509 structure allocated with fake_x509_malloc() and fake_x509_free()
         May contain valid pointers inside.
      
      3) Empty X509 structure shell allocated with tor_malloc_zero() and
         freed with tor_free()
      308eec75
  16. 03 May, 2018 1 commit
  17. 02 May, 2018 1 commit
    • Nick Mathewson's avatar
      LibreSSL compatibility fixes. · 75f3fbaa
      Nick Mathewson authored
      LibreSSL, despite not having the OpenSSL 1.1 API, does define
      OPENSSL_VERSION in crypto.h.  Additionally, it apparently annotates
      some functions as returning NULL, so that our unit tests need to be
      more careful about checking for NULL so they don't get compilation
      warnings.
      
      Closes ticket 26006.
      75f3fbaa
  18. 18 Apr, 2018 1 commit
  19. 15 Sep, 2017 2 commits
  20. 13 Sep, 2017 1 commit
  21. 24 Aug, 2017 1 commit
  22. 31 Mar, 2017 1 commit
  23. 15 Mar, 2017 1 commit
  24. 01 Feb, 2017 1 commit
    • rubiate's avatar
      Support LibreSSL with opaque structures · e9ec818c
      rubiate authored and Nick Mathewson's avatar Nick Mathewson committed
      Determining if OpenSSL structures are opaque now uses an autoconf check
      instead of comparing the version number. Some definitions have been
      moved to their own check as assumptions which were true for OpenSSL
      with opaque structures did not hold for LibreSSL. Closes ticket 21359.
      e9ec818c
  25. 07 Nov, 2016 1 commit
  26. 03 Nov, 2016 1 commit
  27. 09 Sep, 2016 1 commit
  28. 08 Sep, 2016 2 commits