git: 9front

Download patch

ref: c4a95022c507cab8407ebe586ede23c074979d25
parent: 081a720a067029e5157952c49d0b9c1ac15564e5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 19 04:14:09 EST 2016

libsec: remove unused tlsSecKill()

--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -394,7 +394,6 @@
 static Bytes*	tlsSecECDHEc(TlsSec *sec, uchar *srandom, int vers, int curve, Bytes *Ys);
 static int	tlsSecFinished(TlsSec *sec, HandshakeHash hsh, uchar *fin, int nfin, int isclient);
 static void	tlsSecOk(TlsSec *sec);
-static void	tlsSecKill(TlsSec *sec);
 static void	tlsSecClose(TlsSec *sec);
 static void	setMasterSecret(TlsSec *sec, Bytes *pm);
 static void	setSecrets(TlsSec *sec, uchar *kd, int nkd);
@@ -2713,15 +2712,6 @@
 {
 	if(sec->ok == 0)
 		sec->ok = 1;
-}
-
-static void
-tlsSecKill(TlsSec *sec)
-{
-	if(!sec)
-		return;
-	factotum_rsa_close(sec->rpc);
-	sec->ok = -1;
 }
 
 static void
--