mirror of
https://github.com/wownero/wownero.git
synced 2026-10-24 19:08:34 +02:00
Detect peer EOF and TLS closure before reusing idle connections. Make disconnect idempotent while preserving buffered data and pending operation lifetimes. Keep the release branch's multi-byte recv_n behavior, and cover partial EOF, socket modes, and TLS shutdown with loopback regression tests. Use fixed test certificates and retain compatibility with the release branch's Google Test version. Co-authored-by: woodser <13068859+woodser@users.noreply.github.com> (cherry picked from commit 096abdaa22b71ade9ca673ed8012c500cecb58d3)
15 lines
541 B
Markdown
15 lines
541 B
Markdown
# TLS unit-test credentials
|
|
|
|
`test.key` and `test.crt` are public, test-only credentials for loopback TLS tests.
|
|
Never use this private key outside tests. The tests disable peer verification;
|
|
they exercise connection and record handling, not certificate trust or validity.
|
|
|
|
Loading these fixtures avoids generating a new RSA key for each client and server
|
|
context. They were generated with:
|
|
|
|
```sh
|
|
openssl req -x509 -newkey rsa:4096 -sha256 -nodes \
|
|
-keyout test.key -out test.crt -days 36500 \
|
|
-subj '/CN=monero-unit-tests.invalid'
|
|
```
|