diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-07-22 22:46:25 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-08-14 00:13:26 -0700 |
| commit | 620e7cee8d99362584d49179f4a791bc31ec3510 (patch) | |
| tree | 64cf866c91fa7ce69e7b063926878bc1d5e60409 /src/supplemental/tls/tls_test.c | |
| parent | b7298cf2395e7113634444f7eaabed32a4dac08a (diff) | |
| download | nng-620e7cee8d99362584d49179f4a791bc31ec3510.tar.gz nng-620e7cee8d99362584d49179f4a791bc31ec3510.tar.bz2 nng-620e7cee8d99362584d49179f4a791bc31ec3510.zip | |
TLS: enable TLS 1.3 for Mbed TLS.
This requires using a supporting version of Mbed TLS.
We have to use PSA crypto for TLS 1.3.
Diffstat (limited to 'src/supplemental/tls/tls_test.c')
| -rw-r--r-- | src/supplemental/tls/tls_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/supplemental/tls/tls_test.c b/src/supplemental/tls/tls_test.c index 0aa18708..3d0c16a0 100644 --- a/src/supplemental/tls/tls_test.c +++ b/src/supplemental/tls/tls_test.c @@ -417,8 +417,9 @@ test_tls_psk_bad_identity(void) t1 = nuts_stream_send_start(s1, buf1, size); t2 = nuts_stream_recv_start(s2, buf2, size); - NUTS_FAIL(nuts_stream_wait(t1), NNG_ECRYPTO); - NUTS_FAIL(nuts_stream_wait(t2), NNG_ECRYPTO); + // These can fail due to ECRYPTO, EPEERAUTH, or ECONNSHUT, for example + NUTS_ASSERT(nuts_stream_wait(t1) != 0); + NUTS_ASSERT(nuts_stream_wait(t2) != 0); nng_free(buf1, size); nng_free(buf2, size); |
