Nick Mathewson
|
3b5d6ef15b
Unify functions for reading/writing PEM keys, to avoid duplication.
|
6 years ago |
Nick Mathewson
|
b892133fb9
Do not leave a certificate allocated after testing dirvote_add()
|
6 years ago |
Nick Mathewson
|
f46a7eafb8
Do not leak a reference to "slot" when decoding private key.
|
6 years ago |
Nick Mathewson
|
36f3bdac03
Update prefork and postfork NSS code for unit tests.
|
6 years ago |
Nick Mathewson
|
52ac539b99
Test a few more tortls.c functions
|
6 years ago |
Nick Mathewson
|
7163389b55
Several unit tests to improve test coverage of x509*.c
|
6 years ago |
Nick Mathewson
|
02086a216f
Remove tor_x509_get_cert_impl as unneeded.
|
6 years ago |
Nick Mathewson
|
b5fddbd241
Avoid double-close on TCP sockets under NSS.
|
6 years ago |
Nick Mathewson
|
c18967d6c8
changes file for our NSS support
|
6 years ago |
Nick Mathewson
|
52d5f4da12
Avoid spurious error logs when using NSS
|
6 years ago |
Nick Mathewson
|
dd04fc35c6
Remove tor_tls_shutdown()
|
6 years ago |
Nick Mathewson
|
5205c7fd90
Initial NSS support for TLS.
|
6 years ago |
Nick Mathewson
|
c567b8fcb4
NSS support for x509 certs
|
6 years ago |
Nick Mathewson
|
7c5339677f
Log error strings in crypto_nss_log_errors().
|
6 years ago |
Nick Mathewson
|
8148c0717d
Change log_test_helpers macros to use printf, not pasting
|
6 years ago |
Nick Mathewson
|
5245a296c5
Make some x509 functions generic; remove some fields NSS doesn't need
|
6 years ago |
Nick Mathewson
|
b9ca8f2356
Extract internal-only parts of x509.h
|
6 years ago |
Nick Mathewson
|
108d9879eb
Extract the non-generic part of tor_tls_context_decref().
|
6 years ago |
Nick Mathewson
|
96f8e19802
Implement PBKDF2 with NSS.
|
6 years ago |
Nick Mathewson
|
6a88d8f6b4
When enabling NSS, disable OpenSSL.
|
6 years ago |
Nick Mathewson
|
1992c76130
Split tls modules and their tests into openssl and generic.
|
6 years ago |
Nick Mathewson
|
91c1e88b7a
Refactor some of the certificate-manipulation logic
|
6 years ago |
Nick Mathewson
|
598bc78bfa
Extract tortls structures into a new header; clean up a little
|
6 years ago |
Nick Mathewson
|
9a4f05b05c
Split X509 code out of tortls.c
|
6 years ago |
Nick Mathewson
|
3ccb94d7b6
The RSA_free in this test is no longer needed or wanted
|
6 years ago |
Nick Mathewson
|
aa45511250
Implement RSA for NSS.
|
6 years ago |
Nick Mathewson
|
cb5cfe3177
Also reinitialize the pregenerated keys postfork.
|
6 years ago |
Nick Mathewson
|
b94e7de7db
Refactor crypto_rsa to use pem module.
|
6 years ago |
Nick Mathewson
|
9566ed6fd9
Add rudimentary support for PEM-encoding, since NSS doesn't do that.
|
6 years ago |
Nick Mathewson
|
0812f1cbc2
Use a constant for "65537"
|
6 years ago |