ref: e1633ed338bbac32b1364b9d8a7f365efa4c3778
parent: 0cad8a59ed8f077f75900c563e0be0b9e973da07
author: cinap_lenrek <[email protected]>
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