]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compilation for nss.
authorNick Mathewson <nickm@torproject.org>
Fri, 25 Apr 2025 00:41:21 +0000 (20:41 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 25 Apr 2025 00:41:21 +0000 (20:41 -0400)
src/lib/tls/tortls_nss.c

index 051e9b8f34fef19962efaa7eb78a1d8dae900195..87c950dd263f102c3ac46c294addd0ebb585ea93 100644 (file)
@@ -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)
 {