commit 5944e8aa243460a8e374c4a1f616659711f5bdcb parent 7fc37636ce738919efdc38ac6f88d9ffa9b42820 Author: Nick Mathewson <nickm@torproject.org> Date: Thu, 24 Apr 2025 20:41:21 -0400 Fix compilation for nss. Diffstat:
| M | src/lib/tls/tortls_nss.c | | | 11 | +---------- |
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/lib/tls/tortls_nss.c b/src/lib/tls/tortls_nss.c @@ -607,7 +607,7 @@ tor_tls_handshake(tor_tls_t *tls) if (s == SECSuccess) { tls->state = TOR_TLS_ST_OPEN; log_debug(LD_NET, "SSL handshake is supposedly complete."); - return tor_tls_finish_handshake(tls); + return TOR_TLS_DONE; } if (PORT_GetError() == PR_WOULD_BLOCK_ERROR) return TOR_TLS_WANTREAD; /* XXXX What about wantwrite? */ @@ -616,15 +616,6 @@ tor_tls_handshake(tor_tls_t *tls) } int -tor_tls_finish_handshake(tor_tls_t *tls) -{ - tor_assert(tls); - // We don't need to do any of the weird handshake nonsense stuff on NSS, - // since we only support recent handshakes. - return TOR_TLS_DONE; -} - -int tor_tls_get_pending_bytes(tor_tls_t *tls) { tor_assert(tls);