From: Nick Mathewson Date: Fri, 25 Apr 2025 00:41:21 +0000 (-0400) Subject: Fix compilation for nss. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5944e8aa243460a8e374c4a1f616659711f5bdcb;p=thirdparty%2Ftor.git Fix compilation for nss. --- diff --git a/src/lib/tls/tortls_nss.c b/src/lib/tls/tortls_nss.c index 051e9b8f34..87c950dd26 100644 --- 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? */ @@ -615,15 +615,6 @@ tor_tls_handshake(tor_tls_t *tls) return TOR_TLS_ERROR_MISC; // XXXX } -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) {